Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

monitor

In the above menu, what does the difference between Mem and cache? Are they both use memory from my RAM? Which program use cache?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

cache is where linux uses some of your RAM to keep a cache of data recently read from the disk.

It's a good thing. cache is as good as free RAM. No, it's better. free is wasted memory, it's RAM sitting there with zeroes or some other useless crap in it. cache is where you keep data recently read from the disk, where there would otherwise be useless garbage, in case the system wants to read that part of the disk again any time soon.

Whenever a process wants more memory, cache is given to it as readily as free. free is the money you spent on RAM being utterly useless, cache is Linux making some use of it (so long as nothing else wants it).

More info here: http://www.linuxatemyram.com/

share|improve this answer
    
So it's actually a good thing, what a relieve. Because sometime cache size is so big that it takes 75% of my small 2 Gb RAM. Thanks for your explanation. –  Nur Jun 20 '13 at 7:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.