介绍
今天就跟大家聊聊有关mpstat命令怎么在linux中使用,可能很多人都不太了解,为了让大家更加了解,小编给大家总结了以下内容,希望大家根据这篇文章可以有所收获。
<强> 1。mpstat命令
强>
<强> 1.1命令格式强>
mpstat [, -A ], [, -u ], [, -V ],[,小姐,{,SUM |, CPU |, SCPU |, ALL },], [, -P {, CPU […], |,提醒|,ALL },], [[, count ], interval ,]
选项:
——:等同于- u - i - p所有
引用>
我:可以指定CPU SCPU所有四个参数,和表示每个处理器的中断总数,CPU表示每个核的每秒中断数量,SCPU表示每个核每秒的软中断数量,内核版本在2.6.31之后才支持。
- p:统计的CPU编号,一般用
- u:输出列的信息
- v:查看工具版本号
<强> 2。使用
强><强> 2.1每隔1 s输出所有cpu的使用情况强>
,美元mpstat -P ALL 1 Linux 3.10.0-693.el7.x86_64 (公司),,,2019年02月26日,,,_x86_64_ , (2, CPU) 12时42分03秒,CPU , % usr , % nice , % sys % iowait , % irq , % soft % steal % guest % gnice %闲置 12时42分04秒,all , 0.00,, 0.00,, 0.00,, 0.00,, 0.00,, 0.00,, 0.00,, 0.00, 0.00, 100.00 12时42分04秒,,0,,,0.00,0.00,,0.00,,0.00,,0.00,,0.00,,0.00,,0.00,0.00,100.00 12时42分04秒,,1,,,0.00,0.00,,0.00,,0.00,,0.00,,0.00,,0.00,,0.00,0.00,100.00 12时42分04秒,CPU , % usr , % nice , % sys % iowait , % irq , % soft % steal % guest % gnice %闲置 12时42分05秒,all , 0.00,, 0.00,, 0.00,, 0.00,, 0.00,, 0.00,, 0.00,, 0.00, 0.00, 100.00 12时42分05秒,,0,,,0.00,0.00,,0.00,,0.00,,0.00,,0.00,,0.00,,0.00,0.00,100.00 12时42分05秒,,1,,,0.00,0.00,,0.00,,0.00,,0.00,,0.00,,0.00,,0.00,0.00,100.00 12时42分05秒,CPU , % usr , % nice , % sys % iowait , % irq , % soft % steal % guest % gnice %闲置 12时42分06秒,all , 0.00,, 0.00,, 0.00,, 0.50,, 0.00,, 0.00,, 0.00,, 0.00,, 0.00, 99.50 12时42分06秒,,0,,,0.00,0.00,,0.00,,0.00,,0.00,,0.00,,0.00,,0.00,0.00,100.00 12时42分06秒,,1,,,0.00,0.00,,0.00,,0.00,,0.00,,0.00,,0.00,,0.00,0.00,100.00 12时42分06秒,CPU , % usr , % nice , % sys % iowait , % irq , % soft % steal % guest % gnice %闲置 12时42分07秒,all , 0.00,, 0.00,, 0.00,, 0.00,, 0.00,, 0.00,, 0.00,, 0.00, 0.00, 100.00 12时42分07秒,,0,,,0.00,0.00,,0.00,,0.00,,0.00,,0.00,,0.00,,0.00,0.00,100.00 12时42分07秒,,1,,,0.00,0.00,,0.00,,0.00,,0.00,,0.00,,0.00,,0.00,0.00,100.00 12时42分07秒,CPU , % usr , % nice , % sys % iowait , % irq , % soft % steal % guest % gnice %闲置 12时42分08秒,all , 0.00,, 0.00,, 0.00,, 0.00,, 0.00,, 0.00,, 0.00,, 0.00, 0.00, 100.00 12时42分08秒,,0,,,0.00,0.00,,0.00,,0.00,,0.00,,0.00,,0.00,,0.00,0.00,100.00 null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null nullmpstat命令怎么在linux中使用