System information
System Monitoring Utilities 29
Swap: 2104472 0 2104472
The options -b, -k, -m, -g show the output in bytes, KB, MB, or GB, respective-
ly. The parameter -d delay ensures that the display is refreshed every delay sec-
onds. For example, free -d 1.5 produces an update every 1.5 seconds.
2.4.2 Detailed Memory Usage: /proc/
meminfo
Use /proc/meminfo to get more detailed information on memory usage than with
free. Actually free uses some of the data from this file. See an example output
from a 64-bit system below. Note that it slightly differs on 32-bit systems due to dif-
ferent memory management):
tux@mercury:~> cat /proc/meminfo
MemTotal: 8182956 kB
MemFree: 1045744 kB
Buffers: 364364 kB
Cached: 5601388 kB
SwapCached: 1936 kB
Active: 4048268 kB
Inactive: 2674796 kB
Active(anon): 663088 kB
Inactive(anon): 107108 kB
Active(file): 3385180 kB
Inactive(file): 2567688 kB
Unevictable: 4 kB
Mlocked: 4 kB
SwapTotal: 2096440 kB
SwapFree: 2076692 kB
Dirty: 44 kB
Writeback: 0 kB
AnonPages: 756108 kB
Mapped: 147320 kB
Slab: 329216 kB
SReclaimable: 300220 kB
SUnreclaim: 28996 kB
PageTables: 21092 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 6187916 kB
Committed_AS: 1388160 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 133384 kB
VmallocChunk: 34359570939 kB
HugePages_Total: 0
HugePages_Free: 0