Vmstat command: Used to obtain information about processes, virtual storage, paging space, and CPU activity
Vmstat Usage and Parameters:
Vmstat [-A] [-n] [-s unit] [delay [count]]
Vmstat [-S] [-n] [-s unit]
Vmstat [-M] [-n] [delay [count]]
Vmstat [-d] [-n] [delay [count]]
Vmstat [-P disk partition] [-n] [delay [count]]
Vmstat [-F]
Vmstat [-v]
-A: Show active and inactive memory
-F: Shows the number of fork from system start up to now
-M: Display Slabinfo
-N: Displays the field names only once at the beginning
-S: Displays memory-related statistics and number of system activities
Delay: Refresh time interval. If not specified, only one result is displayed
Count: Number of refreshes. If you do not specify a refresh time, but the refresh interval is specified, the number of refreshes is infinite
-D: Display disk-related statistics
-P: Display specified disk partition statistics
-S: Displayed using the specified units. The parameters are K, K, M, M, respectively, representing 1000, 1024, 1000000, 1048576 bytes (byte). The default unit is K (1024x768 bytes)
-V: Show Vmstat version information
Interpretation of output parameters
[[Email protected]~]# vmstat 3 5 #每隔3秒刷新一次数据 Brush 5 times
procs-----------Memory-------------Swap-------IO-----system------CPU----
R b swpd free buff cache si so bi bo in CS US sy ID WA
1 0 0 3499840 325189 3695860 0 0 0 1 2 0 0 0 100 0
0 0 0 3499584 325189 3695860 0 0 0 0 88 168 0 0 100 0
0 0 0 3499708 325189 3695860 0 0 0 2 86 162 0 0 100 0
0 0 0 3499708 325189 3695860 0 0 0 10 81 161 0 0 100 0
1 0 0 3499732 325189 3695860 0 0 0 2 83 164 0 0 100 0
R means running the queue (that is, how many processes are really allocated to the CPU), the server I am testing is currently idle, there is no program running, when this value exceeds the number of CPUs, there will be a CPU bottleneck
b represents a blocked process
SWPD The size of virtual memory used
free physical memory size
buff buffer memory size
Cache Cache Memory Size
The size of the virtual memory that si reads from disk per second, if this value is greater than 0, indicates that physical memory is insufficient or memory leaks
so per second the virtual memory is written to the size of the disk, if this value is greater than 0, ibid.
Number of blocks received by BI block devices per second
Number of blocks sent by Bo block devices per second
in CPU interrupts per second, including time interrupts
CS -per-second number of context switches
US users using CPU time
sy system uses CPU time
ID Idle CPU time, in general, ID + US + sy = 100, can be understood as: ID is idle CPU usage, US is User CPU usage, SY is System CPU utilization
wa waits for IO to consume CPU time
This article is from the "Practical Linux knowledge and Skills sharing" blog, please be sure to keep this source http://superleedo.blog.51cto.com/12164670/1889383
Detailed interpretation of Linux vmstat commands