查看CPU、硬盘IO、内存、网络
1 -u参数查看CPU,每间隔5秒采集一次,共采集6次
[admin@v019192.sqa.cm4 ~]$ sar -u 5 6
Linux 2.6.18-164.el5xen (v019192.sqa.cm4) 2012年08月19日
16时24分31秒 CPU %user %nice %system %iowait %steal %idle
16时24分36秒 all 0.00 0.00 0.10 0.00 0.00 99.90
16时24分41秒 all 0.10 0.00 0.00 0.00 0.00 99.90
16时24分46秒 all 0.10 0.00 0.00 0.00 0.00 99.90
16时24分51秒 all 0.00 0.00 0.00 0.00 0.10 99.90
16时24分56秒 all 0.00 0.00 0.00 0.00 0.00 100.00
16时25分01秒 all 0.60 0.00 0.60 0.00 0.00 98.80
Average: all 0.13 0.00 0.12 0.00 0.02 99.73
steal time什么意思? 应该是和超线程相关的概念:实现了超线程的CPU可以认为是多个虚拟的CPU。
IBM's definition of steal time is actually pretty good:
Steal time is the percentage of time a virtual CPU waits for a real CPU while the hypervisor is servicing another virtual processor.
2