[Linux] kipmi0プロセスのCPU使用率が100%になる

kipmi0のプロセスのCPU使用率が100%に張り付くことがあります。kipmi0プロセスのCPU使用率を下げる方法を紹介します。

top -p <kipmi0のPID>
   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
  4023 root      39  19     0    0    0 R 100.0  0.0  16804:00 kipmi0

kipmid_max_busy_usパラメータを調整することで、CPU使用率を下げることができます

echo 100 > /sys/module/ipmi_si/parameters/kipmid_max_busy_us
top -p <kipmi0のPID>
   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
  4023 root      34  19     0    0    0 R  0.0  0.0  16804:29 kipmi0

kipmid_max_busy_usパラメータにはkipmidのスリープ間隔をマイクロ秒で設定します。パラメータの説明は、The Linux IPMI Driverのドキュメントに記載されています。

 the kipmid_max_busy_us sets the maximum amount of time, in microseconds, that kipmid will spin before sleeping for a tick. This value sets a balance between performance and CPU waste and needs to be tuned to your needs. Maybe, someday, auto-tuning will be added, but that’s not a simple thing and even the auto-tuning would need to be tuned to the user’s desired performance.

タイトルとURLをコピーしました