Worried that your memory usage seems high?
Don't be - Linux is quite smart in the way it handles memory - it will
use all that it can in order to speed up basic operation. If you add more memory, the system will use it up too, same with taking out memory.
So - If high memory usage doesn't indicate a problem what does?
High or climbing swap usage are the "memory problem" in Linux. Swap
space is a section of the hard drive used as memory when the machine
has run out of physical RAM, Hard drrives are however much slower than
RAM, so this needs to be looked at.
Climbing SWAP usage
- If your SWAP file is monotonically increasing (i.e. it NEVER falls)
then this might indicate a problem. - when this situation has been
ongoing for a few months (and you've tried increasing the SWAP space,
but it's been filled again then come and ask questions...
Details: For speed and efficiency, any available physical memory (RAM) is used
to speed up file throughput and access times. In other words, you will
usually see your physical memory usage at 90% or higher.
Explanation: RAM is 100x faster than any harddrive in existence
with avg read/write speeds measured in nanoseconds, compared to
harddrive read/write speeds measured in microseconds. It makes much
more sense to keep more of the operating system in the ultra highspeed
RAM space, rather than swapping it to the harddrive and back. Thus,
linux will attempt to completely fill the RAM, leaving a tiny bit
available as a buffer. When all available RAM is used, it will then
write to the swap space on the HD. This increases the overall system
performance.