0

Possible Duplicate:
Why is Linux reporting “free” memory strangely?

I have noticed that the cache memory on my vps always stays around the max value. I have nothing running at the moment and the memory breakdown is:

Mem: 1024 | used: 7MB | buffers: 0MB | cache 1013MB

Is this normal? If not, how can I fix this?

Adam
  • 3
  • 3

1 Answers1

1

Yes, this is normal. Since the system has nothing else to do with the RAM, it just leaves data read from disk in it. That way, if the system needs the data again, it can save a disk access.

David Schwartz
  • 31,215
  • 2
  • 53
  • 82
  • I see the cache go up when I am running a download program. Would this be normal too? Cache slowly creeps up but the used mem stays stable at around 10MB – Adam Dec 28 '12 at 23:10
  • Yes. As you download things, you wind up with stuff that you downloaded in memory. There is nothing useful the operating system can do, so it just leaves it there. (There's no point in making the memory free, that's just work the system would have to do that it would have to undo if it wanted to use that memory later.) – David Schwartz Dec 29 '12 at 01:05