Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Possible Duplicate:
How to understand the memory usage and load average in linux server

I'm running Debian and I'm wondering why so much of my memory is being used (8GB of the 8GB)

Is there any way I can check and see why so much RAM is being used?

share|improve this question

marked as duplicate by Iain, Ben Pilbrow, Scott Pack, EEAA, Tom O'Connor Mar 13 '11 at 19:38

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3 Answers 3

Linux uses a lot of RAM for cache. Please check the output of free -m to see how much you actually have free.

For example, look at the line at "-/+ buffers/cache under free vs. the "Mem" line free.

$ free -m
             total       used       free     shared    buffers     cached
Mem:         12040      11904        136          0        418       9641
-/+ buffers/cache:       1844      10195
Swap:        22889          0      22889

Also, check out http://www.linuxatemyram.com/

share|improve this answer
    
Well done sir. :) –  EEAA Mar 13 '11 at 14:58

You haven't posted any details (say, for instance, the output of $ free -m), but I'm 99% certain most of that is being used by the kernel for a disk read cache. Memory being used this way is instantly released to any applications that request it. More info on this below.

Linux Ate My RAM!

share|improve this answer

Regardless of the operating system, memory that isn't being used is memory you wasted good money purchasing. A modern operating system will try and use as much memory as possible to keep recently used (and likely to be used again) items in memory for fast access.

Caching stuff like this into memory that isn't currently needed for other things and freeing it up when a better use for it comes along is what makes your system perform so well.

share|improve this answer

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