memory. Free includes cache and buffers as used memory,
leading to artificially higher readings than it should, because
Linux will drop cache and buffers to make room for a new
processes.
Full featured 'free' utilities factor out the buffers and
cache by default. (Conky does also) I've attached a simple
little script which outputs the same calculations as the full
featured free, thus giving the user a way of calculating
memory usage the same way the a full version
such as 'procps free' does. Output example below.
Code: Select all
MemTotal: 515964
-/+ buffers/cache
MemUsed: 97668
MemFree: 418296
~