Memory usage goes up

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
2009tester
Posts: 25
Joined: 15. Nov 2012, 11:34

Memory usage goes up

Post by 2009tester »

free command reveals that
i hv 250mb occupied after boot up.

After opening and closing app, the memory usage goes up to 1 gb.

But , after closing all the apps, the memory usage remains high with little decrease.

Why is that, memory remains occupied?
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: Memory usage goes up

Post by gapan »

Of course. RAM isn't useful if it's not being used.
Image
Image
User avatar
hakerdefo
Posts: 91
Joined: 9. Dec 2012, 08:12
Contact:

Re: Memory usage goes up

Post by hakerdefo »

Hi! Just read following and your worries regarding the ram usage will go away,
http://www.linuxatemyram.com/
Cheers!!!
2009tester
Posts: 25
Joined: 15. Nov 2012, 11:34

Re: Memory usage goes up

Post by 2009tester »

it is interesting.

is the disk caching something like "preloading"
or "adaptive read-ahead" package in Ubuntu and Fedora?
Those distro have separate package for preload.
User avatar
Atip
Posts: 539
Joined: 5. Jun 2011, 04:27

Re: Memory usage goes up

Post by Atip »

Free Memory

as root

Code: Select all

echo 3 >/proc/sys/vm/drop_caches
sojurn
Posts: 41
Joined: 15. Aug 2012, 22:43

Re: Memory usage goes up

Post by sojurn »

Atip wrote:Free Memory

as root

Code: Select all

echo 3 >/proc/sys/vm/drop_caches
You can and this won't disable caching but except for maybe testing or benchmarking I don't know why you would.

The memory with cached data is already free if something needs it, explicitly clearing cache seems an unnecessary action first of all, and if you need the cached data again it would take much longer to get it from disk than from memory, giving you the worst of two worlds, not the best of them. In my understanding anyway.

I can't resist.... This is my Salix 13.37 LXDE on a fresh boot (old Sempron machine):

-/+ buffers/cache: 95 used, 2162 free.
Post Reply