Knowledge Base & Help Desk

Extensions # vmstat
Posted by Ran Hartal | 2019-02-22 13:12:17
Posted by Ran Hartal
2019-02-22 13:12:17

Extensions >> vmstat

vmstat (virtual memory statistics) is a computer system monitoring tool that collects and displays summary information about operating system memory, processes, interrupts, paging and block I/O. Users of vmstat can specify a sampling interval which permits observing system activity in near-real time.

The vmstat tool is available on most Unix and Unix-like operating systems, such as FreeBSD, Linux or Solaris.

Allprobe vmstat SNMP extension is using the OS built-in vmstat command to collect data metrics related to memory and processor usage.

The vmstat extension collects the following 12 values (presented as SNMP extension argument passed to the extension BASH CLI:

user -  Time spent running non-kernel code. (user time, including nice time)
system - Time spent running kernel code. (system time)
idle - Time spent idle. Prior to Linux 2.5.41, this includes IO-wait time
watime - Time spent waiting for IO. Prior to Linux 2.5.41, included in idle

cs - The number of context switches per second
interrupts - The number of interrupts per second, including the clock

si - Amount of memory swapped in from disk (/s)
so - Amount of memory swapped to disk (/s)

bi - Blocks received from a block device (blocks/s)
bo - Blocks sent to a block device (blocks/s)

running - The number of processes waiting for run time
blocked - The number of processes in uninterruptible sleep

vmstat is very useful in finding RAM swapping, IO & CPU bottlenecks.

How To's