Linux and Unix vmstat command
Quick links
About vmstat
Syntax
Examples
Related commands
Linux and Unix main page
Display information about the kernel threads, virtual memory, disks, traps, and CPU activity.
vmstat [-V] [-n] [delay [count]]
| -V | Print version information. |
| -n | causes the headers not to be reprinted regularly. |
| -a | print inactive/active page stats. |
| -d | prints disk statistics |
| -D | prints disk table |
| -p | prints disk partition statistics |
| -s | prints vm table |
| -m | prints slabinfo |
| -S | unit size unit size k:1000 K:1024 m:1000000 M:1048576 (default is K) |
| delay | delay between updates in seconds. |
| count | number of updates. |
vmstat
Running the vmstat command with no extra options would display information similar to the below information.
| procs | -----------memory---------- | ---swap-- | -----io---- | --system-- | ----cpu---- |
| r b 0 0 | swpd free buff cache 7412 18872 18044 110132 | si so 0 0 | bi bo 2 7 | in cs us 26 22 2 | sy id wa 1 96 0 |
