Linux - Vmstat (Virtual memory statistics)
About
vmstat (Virtual Memory Stats) reports virtual memory statistics.
It shows:
Most important, you can observe page-ins and page-outs as they happen.
Using this resource monitor, it is possible to get an overview of process, memory, swap, I/O, system, and CPU activity.
Articles Related
Syntax
The process-related fields are:
r — The number of runnable processes waiting for access to the CPU
b — The number of processes in an uninterruptible sleep state
w — The number of processes swapped out, but runnable
The memory-related fields are:
swpd — The amount of virtual memory used
free — The amount of free memory
buff — The amount of memory used for buffers
cache — The amount of memory used as page cache
The swap-related fields are:
The I/O-related fields are:
The system-related fields are:
The CPU-related fields are:
us — The percentage of the time the CPU ran user-level code
sy — The percentage of the time the CPU ran system-level code
id — The percentage of the time the CPU was idle