CPU性能指标
用户进程使用CPU的比率
系统进程使用CPU的比率
WIO, 等待I/O 而是CPU处于空闲状态的比率。
CPU的空闲率
CPU用于上下文交换的比率
6,nice
7,real-time
8,运行进程队列的长度
9,平均负载
Linux下常用监控CPU性能的工具有
iostat
只能查看所有CPU的平均信息
vmstat
能查看所有CPU的平均信息,
能查看CPU队列信息
mpstat
能查看单个和所有的CPU信息。
sar
与mpstat类似
top
nmon
iostat
iostat
Linux 2.6.18-92.el5 08/30/2012
avg-cpu: %user %nice %system %iowait %steal %idle
1.16 0.01 0.62 0.18 0.00 98.03
vmstat
vmstat -n 5
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------
r b swpd free buff cache si so bi bo in cs us sy id wa st
0 0 96 1261196 981892 3638872 0 0 0 16 1 1 1 1 98 0 0
-n 5 参数的意义是每隔 5 秒刷新一次
procs
r -- 下面的数字代表运行的