24. CPU - USE - Utilization
24
出典:Systems Performance: Enterprise and the Cloud [ISBN-10: 0133390098]
http://www.brendangregg.com/USEmethod/use-linux.html
vmstat: us + sy + st
sar -u: 100% - (%idle + %iowait)
mpstat -P ALL 1: 100% - (%idle + %iowait)
sar -P ALL: 100% - (%idle + %iowait)
システム全体のCPU使用率は低くても、CPU別に見ると特定
のCPUだけ使用率が高い場合がある。例えば、2CPUのマシン
でシステム全体のCPU使用率が50%の場合、CPU別に見る
と、1CPUは100%で張り付いていることがある。
※CPU:論理CPU
25. CPU - USE - Saturation
2525
出典:Systems Performance: Enterprise and the Cloud [ISBN-10: 0133390098]
http://www.brendangregg.com/USEmethod/use-linux.html
vmstat : r
sar -q: runq-sz
Linux のランキュー数には On-CPU と Ready to run の両方が含まれる。例
えば、2CPUでランキューが4の場合、2プロセスは On-CPU、残り2プロセス
はCPU待ちとなる(Systems Performance: Enterprise and the Cloud -
6.6.2. vmstat “On Linux, the r column is the total number of tasks
waiting plus those running")。
ランキューの数 > 論理CPU数 の場合、サチっていると言える。常に「ラン
キュー数 > 論理CPU数」の状態では、CPU使用率は100%になり、常にラン
キューでCPU待ちになっているプロセスが存在することになる。
26. CPU - USE - Errors
262626
出典:Systems Performance: Enterprise and the Cloud [ISBN-10: 0133390098]
http://www.brendangregg.com/USEmethod/use-linux.html
perf perf コマンドでエラーをチェックできるら
しい
“perf (LPE) if processor specific error
events (CPC) are available; eg, AMD64's
"04Ah Single-bit ECC Errors Recorded by
Scrubber" [4]”
http://www.brendangregg.com/USEmet
hod/use-linux.html