You are hereLongitude Knowledge Book / kb39: Value reported for Linux free memory is higher than expected

kb39: Value reported for Linux free memory is higher than expected


By Chris - Heroix - Posted on 03 November 2009

The Unix memory collector for Linux runs free -k to collect data. The output of this command looks like:

total used free shared buffers cached
Mem: 513920 476196 37724 0 4796 87840
-/+ buffers/cache: 383560 130360
Swap: 1048568 160916 887652

The Mem line lists the amount of memory that is currently allocated. Some of allocated memory may not be in use and is available if needed by another process.

The -/+ buffers/cache line displays the amount of memory that is available, regardless of whether it has already been allocated. Longitude uses the data on this line to display the amount of usable memory available on the managed device.