Checking memory usage with vmstat
My sys admin doesn't have top available for us so I've had to get used to using vmstat to check memory usage on Unix. It's definitely less user friendly than top, but you can find you need from it.
Here's some sample output from vmstat:
The swap column shows the amount of available swap space. The free column is the amount of memory available from the free list (physical memory). Both are listed in kilobytes.
Here's some sample output from vmstat:
kthr memory page disk faults cpu
r b w swap free re mf pi po fr de sr m0 m1 m3 m1 in sy cs us sy id
0 0 0 6344224 925064 90 1188 68 0 0 0 0 0 0 0 0 693 6219 2155 13 2 85
0 0 0 6344416 924360 94 753 880 0 0 0 0 0 0 0 0 526 4779 1575 5 1 93
0 0 0 6348552 928080 94 1223 147 0 0 0 0 0 0 0 0 706 8063 2139 19 2 79
The swap column shows the amount of available swap space. The free column is the amount of memory available from the free list (physical memory). Both are listed in kilobytes.
Comments