Simple use of the Vmstat command
Vmstat command is a common system monitoring tool for Linux/unix, which can easily view CPU, memory, swap partition, IO reading and writing.
Vmstat commonly used parameters are two: 1. Time interval of acquisition 2. Number of acquisitions, e.g.
2. Indicates that the server state is collected 2 seconds per cell, 3 means that it collects 3 times, if it is #vmstat 2, it is collected every 2 seconds.
Keep collecting until you have finished the procedure manually.
The meaning of each parameter
R: A running queue can also be understood as how many processes are actually allocated to CPU resources
B: The process that represents blocking
SWAPD: The size of virtual memory already used, if greater than 0 indicates insufficient physical memory.
Free: Idle physical memory
Buff: Cache Size
Cache:cache records the buffering of our open files, etc.
Si: The size of virtual memory read from disk per second
So: the size of the disk written from virtual memory per second
Bi: Number of blocks received per second from a block device, i.e. read block device
Bo: Number of blocks sent to block device per second, i.e. write block device
In: Number of interrupts per second CPU
Cs: Is the number of context switches that occur per second for the CPU
Us: CPU time consumed by the user
Sy: System CPU Time
ID: Idle CPU Time
Wt: Wait iocpu time
Linux Vmstat Use