linux vmstat - ghdrako/doc_snipets GitHub Wiki
vmstat - tool for monitoring system performance and analyzing
resource usage. When executed, the vmstat command provides a detailed report on various system
statistics, including CPU usage, memory usage, virtual memory, disk I/O, and system processes.
procs: This displays information about processes and process states.- The
rcolumn represents the number of processes in the running state, and - the
bcolumn indicates the number of processes in the uninterruptible sleep or blocked state.
- The
memory: This provides details about memory usage.- The
swpdcolumn shows the amount of virtual memory used (in KB) that has been swapped to the disk. - The
freecolumn displays the amount of free memory (in KB) available for processes. - The
buffcolumn shows the amount of memory (in KB) used as buffer cache by the kernel. - The
cachecolumn displays the amount of memory (in KB) used as page cache by the kernel.
- The
swap: This displays information about swap space usage.- The
sicolumn represents the amount of memory (in KB) swapped in from disk per second, and - the
socolumn represents the amount of memory (in KB) swapped out to disk per second.
- The
io: This provides information about I/O operations.- The
bicolumn shows the number of blocks received from a block device (such as a hard disk) per second, and - the
bocolumn shows the number of blocks sent to a block device per second.
- The
system: This section displays system-related statistics.- The
incolumn represents the number of interrupts per second, and - the
cscolumn represents the number of context switches per second.
- The
cpu: This section provides CPU utilization statistics.- The
uscolumn represents the percentage of CPU time spent in user-level processes. - The
sycolumn represents the percentage of CPU time spent in system-level processes. - The
idcolumn represents the percentage of idle CPU time. - The
wacolumn represents the percentage of CPU time spent waiting for I/O operations. - The
stcolumn represents the percentage of CPU time stolen from a virtual machine (VM).
- The