Skip to content

Instantly share code, notes, and snippets.

@khorsmann
Forked from maxp/kipimi0-100-cpu
Created July 20, 2017 14:31
Show Gist options
  • Save khorsmann/9e8dfca07d5c1fe14ae444589a9a392a to your computer and use it in GitHub Desktop.
Save khorsmann/9e8dfca07d5c1fe14ae444589a9a392a to your computer and use it in GitHub Desktop.
kipmi0 100% CPU workaround
echo 100 > "/sys/module/ipmi_si/parameters/kipmid_max_busy_us"
@khorsmann
Copy link
Author

https://github.com/firehol/netdata/wiki/monitoring-IPMI

[...]

kipmi0 CPU usage

There have been reports that kipmi is showing increased CPU when the IPMI is queried.

IBM has given a few explanations.

Check also this stackexchange post.

To lower the CPU consumption of the system you can issue this command:

echo 10 > /sys/module/ipmi_si/parameters/kipmid_max_busy_us

You can also permanently set the above setting by creating the file /etc/modprobe.d/ipmi.conf with this content:

# prevent kipmi from consuming 100% CPU
options ipmi_si kipmid_max_busy_us=10

This instructs the kernel IPMI module to pause for a tick between checking IPMI. Querying IPMI will be a lot slower now (e.g. several seconds for IPMI to respond), but kipmi will not use any noticeable CPU. You can also use a higher number (this is the number of microseconds to poll IPMI for a response, before waiting for a tick).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment