DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Vmstat Output And Column Meaning In Linux

06.18.2006
| 21323 views |
  • submit to reddit
        Here's some vmstat output I just got:

procs                      memory      swap          io     system         cpu
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa
 2  5 375912  19548  17556 477472    0    1     0     0    1     1  1  0  0  1
 0  4 375912  18700  17556 478264    0    0  1044     0  774  1329  8  1  0 91
 0  5 375912  17664  17556 479168    0    0  1160     0  764  1110  8  1  0 91
 1  8 375912  15836  17568 479796    0    0  1144   840  751  1622 16  7  0 78
 0  7 375912  19340  17576 480224    0    0  1224   148  587  1958 17 18  0 65
 2  0 375912  18288  17588 481036    0    0   812     0  845  1732 18  3 21 59
 0  2 375912  15868  17588 481528    0    0  1012     0  588   941  4  1  5 90 

r - processes waiting to run but that are held up by the CPU
b - processes sleeping (usually waiting for IO)
swpd - total swap used (in KB)
free - total free memory
buff - total buffer memory
cache - total disk cache memory usage
si - memory swapped in from disk (in KB/sec)
so - memory swapped out to disk (in KB/sec)
bi - blocks read in from IO devices (blocks per sec)
bo - blocks written to IO devices (blocks per sec)
in - interrupts per second
cs - context switches per second
us - userland CPU usage in %
sy - kernelspace CPU usage in %
id - CPU idle %
wa - CPU IO wait %