NOTES
vmstat does not require special permissions.
These reports are intended to help identify system bottlenecks. Linux vmstat
does not count itself as a running process.
All linux blocks are currently 1024 bytes. Old kernels may report blocks as 512
bytes, 2048 bytes, or 4096 bytes.
Since procps 3.1.9, vmstat lets you choose units (k, K, m, M) default is K (1024
bytes) in the default mode
vmstat uses slabinfo 1.1 FIXME
vmstat 不需要特定的权限。
这些报告有助于确认系统瓶颈。
所有的Linux 块是当前的1024 bytes
vmstat 让你选择单位,默认是K
[root@backoffice01 ~]# vmstat -M 1 10000
usage: vmstat [-V] [-n] [delay [count]]
-V prints version.
-n causes the headers not to be reprinted regularly.
-a print inactive/active page stats.
-d prints disk statistics
-D prints disk table
-p prints disk partition statistics
-s prints vm table
-m prints slabinfo
-t add timestamp to output
-S unit size
delay is the delay between updates in seconds.
unit size k:1000 K:1024 m:1000000 M:1048576 (default is K)
count is the number of updates.