vmstat 运行1秒间隔的示例:
# vmstat 1
procs ———–memory———- —swap– —–io—- –system– —-cpu—-
r b swpd free buff cache si so bi bo in cs us sy id wa
0 0 104300 16800 95328 72200 0 0 5 26 7 14 4 1 95 0
0 0 104300 16800 95328 72200 0 0 0 24 1021 64 1 1 98 0
0 0 104300 16800 95328 72200 0 0 0 0 1009 59 1 1 98 0
r 当前运行队列中线程的数目.代表线程处于可运行状态,但CPU 还未能执行.
b 当前进程阻塞并等待IO 请求完成的数目
in 当前中断被处理的数目
cs 当前kernel system中,发生上下文切换的数目
us 利用率的百分比
sys内核和中断利用率的百分比
wa所有可运行状态线程被阻塞在等待IO 请求的百分比
idCPU 空闲时间的百分比