vmstat [-s] [delay [count]]
-s:显示自系统启动以来,各项数据的总和。
delay:取样的时间间隔。
vmstat可以在两种模式下运行:sample模式与average模式。如果运行时未提供参数,则vmstat运行在average模式,显示从系统启动以来的各项统计数据的平均值。如果附加了delay参数,则第一次显示内容为系统启动以来各项统计数据的平均值,其他依次为delay秒内的平均值。显然,sample模式对诊断问题更加有用。
[oracle@redhat ~]$ vmstat
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
0 0 0 345496 12976 119776 0 0 24 5 1011 22 0 1 99 1
in:interupt数量
cs:context switch数量
us sy:user模式及system模式的cpu时间使用百分比
id:cpu的idle时间百分比
wa:wait,等待IO的cpu时间百分比
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/37724/viewspace-152628/ ,如需转载,请注明出处,否则将追究法律责任。