System administration command. Print report on virtual memory statistics, including information on processes, memory, paging block I/O, traps, system and CPU usage. vmstat initially reports average values since the last system reboot. If given a sampling period interval in seconds, it prints additional statistics for each interval. If specified, vmstat exits when it has completed count reports. Otherwise, it continues until it receives a Ctrl-C, printing a new header line each time it fills the screen.
Display active and inactive memory.
Display disk statistics.
Display the number of forks since the system was booted.
Display the names and sizes of various kernel objects stored in a cache known as the slab layer. Also see the slabtop command.
Don’t print new header lines when the screen is full.
- -p partition
Display detailed statistics for the specified partition.
Display various event counters and memory statistics.
- -S units
Switch the output units. Possible values are k, K, m, or M.
Add a timestamp to output.
Print version number, then exit.
VM mode fields
Processes waiting for runtime.
Uninterruptible sleeping processes.
Virtual memory used, in kilobytes.
Idle memory, in kilobytes.
Memory used as buffers, in kilobytes.
Cache memory, in kilobytes.
Inactive memory, in kilobytes, displayed with -a.
Active memory, in kilobytes; displayed with -a.
Memory swapped in from disk each ...
Get Linux in a Nutshell, 6th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.