【Linux】mpstat コマンド

公開日時:2019年11月23日 / 最終更新日時:2019年11月23日

mpstat コマンドについて解説します。

mpstat コマンドは、CPU ごとの使用率や割り込みの統計情報を表示するコマンドです。

 

■ mpstat コマンドのインストール

[root@RedHat8SV ~]# yum install sysstat

 

yum コマンドでインストールできます。

 

[root@RedHat8SV ~]# mpstat 
Linux 4.18.0-80.11.2.el8_0.x86_64 (RedHat8SV)   2019年11月23日  _x86_64_        (1 CPU) 
 
14時20分40秒  CPU    %usr   %nice    %sys %iowait    %irq   %soft  %steal  %guest  %gnice   %idle 
14時20分40秒  all    0.65    0.49    0.36    0.15    0.08    0.02    0.47    0.00    0.00   97.78 
[root@RedHat8SV ~]#

 

 

man コマンドで mpstat コマンドの解説を確認してみても、かなり分かりにくいです。

DESCRIPTION
The mpstat command writes to standard output activities for each available processor, processor 0 being the first one.

mpstatコマンドは、使用可能な各プロセッサー(プロセッサー0が最初のもの)の標準出力アクティビティに書き込みます。

Global average activities among all processors are also reported.

すべてのプロセッサ間のグローバルな平均アクティビティも報告されます。

The mpstat command can be used both on SMP and UP machines, but in the latter, only global average activities will be printed.

mpstatコマンドはSMPマシンとUPマシンの両方で使用できますが、後者では、グローバルな平均アクティビティのみが出力されます。

If no activity has been selected, then the default report is the CPU utilization report.

アクティビティが選択されていない場合、デフォルトのレポートはCPU使用率レポートです。

The interval parameter specifies the amount of time in seconds between each report.

intervalパラメーターは、各レポート間の時間を秒単位で指定します。
A value of 0 (or no parameters at all) indicates that processors statistics are to be reported for the time since system startup (boot).

値0(またはパラメーターがまったくない)は、システムの起動(ブート)からの経過時間についてプロセッサー統計が報告されることを示します。

The count parameter can be specified in conjunction with the interval parameter if this one is not set to zero.

このパラメーターがゼロに設定されていない場合、countパラメーターはintervalパラメーターと組み合わせて指定できます。
The value of count determines the number of reports generated at interval seconds apart.

countの値は、interval秒間隔で生成されるレポートの数を決定します。

If the interval parameter is specified without the count parameter, the mpstat command generates reports continuously.

intervalパラメーターがcountパラメーターなしで指定された場合、mpstatコマンドはレポートを継続的に生成します。

 

 

Posted by 100%レンタルサーバーを使いこなすサイト管理人

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

AlphaOmega Captcha Medica  –  What Do You See?
     
 

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください

Secured By miniOrange