> Source: [sk104316](https://support.checkpoint.com/results/sk/sk104316)

# sk104316 - kipmi0 daemon consumes CPU at 100% on Gaia OS

| Property | Value |
|----------|-------|
| Solution ID | sk104316 |
| Date Created | 2015-02-02 |
| Last Modified | 2024-09-01 |
| Technical Level | General |
| Products | Security Gateway, Security Management Server, Multi-Domain Security Management Server |
| Versions | R82.10, R82, R81.20, R82.20 |
| OS | Gaia |

## Symptoms

- Output of '`top`' command on Gaia OS shows that *kipmi0* daemon consumes CPU at 100%.

## Cause

The following reasons could cause this issue:

1. In some cases, *kipmid* (IPMI system interface driver) can consume the CPU at a very high level ([GitHub reference](https://github.com/torvalds/linux/commit/c305e3d38e5f54a48a4618496cdc1ada970ebf68)).
2. SNMP polling interval was configured to be 1 second as per [sk90860](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk90860).
3. iLO firmware v2.50 on HP Open Server
4. LOM Firmware is out of date

## Solution

Scenario #1: In some cases, kipmid (IPMI system interface driver) can consume the CPU at a very high level
----------------------------------------------------------------------------------------------------------

This problem was fixed. The fix is included in:

* [Check Point R80.10](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk111841)
* [Jumbo Hotfix Accumulator for R77.30](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk106162) - since *Take_63*
* [Jumbo Hotfix Accumulator for R77.20](http://supportcontent.checkpoint.com/solutions?id=sk101975) - since *Take_191*

For the above stated versions or newer versions, please skip to step 5.

For **other [supported](http://www.checkpoint.com/support-services/support-life-cycle-policy/index.html) versions** , [Check Point Support](http://www.checkpoint.com/support-services/contact-support/index.html) can supply a **Hotfix** .  
A Support Engineer will make sure the Hotfix is compatible with your environment before providing the Hotfix.  
For faster resolution and verification, please collect [CPinfo file](http://supportcontent.checkpoint.com/solutions?id=sk92739) from the involved Open Server.

**Hotfix installation instructions:**

1. The Hotfix has to be installed on ***machines running Gaia OS***.

   **Notes:**
   * In a cluster environment, this procedure must be performed on *all* members of the cluster.
   * In a Management HA environment, this procedure must be performed on *both* Management Servers.

   <br />

   <br />

2. Transfer the hotfix package to the machine (into some directory, e.g., */some_path_to_fix/* ).   

3. Unpack and install the hotfix package:

   ***\[Expert@HostName\]# cd /some_path_to_fix/***   
   ***\[Expert@HostName\]# tar -zxvf SecurePlatform_\<HOTFIX_NAME\>.tgz***   
   ***\[Expert@HostName\]# ./SecurePlatform_\<HOTFIX_NAME\>***
   Note: The script will stop all of Check Point services ('*cpstop* ') - read the output on the screen.   

4. Do NOT reboot the machine yet.   

5. Tune how much of CPU time will be used by the *kipmid* daemon:

   1. Backup the current */etc/modprobe.conf* file:

      ***\[Expert@HostName\]# cp /etc/modprobe.conf /etc/modprobe.conf_ORIGINAL***   

   2. Edit the current */etc/modprobe.conf* file:

      ***\[Expert@HostName\]# vi /etc/modprobe.conf***   

   3. Add the following line at the bottom:

      ***options ipmi_si kipmid_max_busy_us=100***

      **Notes:**
      * See explanations about the parameter *kipmid_max_busy_us* below these instructions.
      * **Changing ipmi_si parameters on the fly:**
        1. Parameters that can be modified in the *ipmi_si* module are found in */sys/module/ipmi_si/parameters/* directory.  
        2. Run *echo X \> /sys/module/ipmi_si/parameters/\<parameter_name\>*   
           1. Sets "parameter_name" to X  
              example: `# echo 500 > /sys/module/ipmi_si/parameters/kipmid_max_bu`
        3. These changes will NOT survive a reboot. Use the *modprode.conf* method to have these changes survive reboot. {#_plain_text_marker}

      <br />

      <br />

   4. Save the changes and exit from Vi editor.   

   5. Verify your changes in */etc/modprobe.conf* file:

      ***\[Expert@HostName\]# cat /etc/modprobe.conf***   

   6. Verify that the IPMI driver was replaced and it contains the support for new parameter:

      ***\[Expert@HostName\]# modinfo /lib/modules/$(uname -r)/kernel/drivers/char/ipmi/ipmi_si.ko \| grep kipmid_max_busy_us***

   <br />

   <br />

6. Reboot the machine.

**Explanations:**

* The values that should be set for parameter ***kipmid_max_busy_us*** are between 100 and 500 (in microseconds).  
  Setting the value to 0 (zero) or not setting the value at all does not change the behavior of the *kipmid* daemon (CPU consumption will not be mitigated).   

* From the [IPMI documentation](https://www.kernel.org/doc/Documentation/IPMI.txt):

  When compiled into the kernel, the parameters can be specified on the kernel command line as:

  ```
    ipmi_si.type=<type1>,<type2>...
         ipmi_si.ports=<port1>,<port2>... ipmi_si.addrs=<addr1>,<addr2>...
         ipmi_si.irqs=<irq1>,<irq2>... ipmi_si.trydefaults=[0|1]
         ipmi_si.regspacings=<sp1>,<sp2>,...
         ipmi_si.regsizes=<size1>,<size2>,...
         ipmi_si.regshifts=<shift1>,<shift2>,...
         ipmi_si.slave_addrs=<addr1>,<addr2>,...
         ipmi_si.force_kipmid=<enable1>,<enable2>,...
         ipmi_si.kipmid_max_busy_us=<ustime1>,<ustime2>,...
  ```

  It works the same as the module parameters of the same names.

  ... ... ...

  If your IPMI interface does not support interrupts and is a KCS or SMIC interface, the IPMI driver will start a kernel thread for the interface to help speed things up. This is a low-priority kernel thread that constantly polls the IPMI driver while an IPMI operation is in progress. The *force_kipmid* module parameter will allow the user to force this thread on or off. If you force it off and don't have interrupts, the driver will run VERY slowly.
  Unfortunately, this thread can use a lot of CPU depending on the interface's performance. This can waste a lot of CPU and cause various issues with detecting idle CPU and using extra power. To avoid this, 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 the customer's needs.

Scenario #2: SNMP polling interval was configured to be 1 second
----------------------------------------------------------------

Change the SNMP polling interval to a higher value (recommended 20 seconds) as per [sk90860](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk90860):

***HostName:0\> set snmp traps polling-frequency TIME_in_SECONDS***

*Max: 864000 seconds.*

*Recommended value: 20 seconds (default).*

***HostName:0\> save config***

Scenario #3: iLO firmware v2.50 on HP Open Server
-------------------------------------------------

Check on the Hewlett Packard Enterprise Support Center whether a newer iLO firmware is available for your Open Server.  

<br />

**Scenario #4: Validate LOM Version and Apply Workaround**
----------------------------------------------------------

<br />

When running an older version of the LOM firmware high CPU usage may be seen on kipmi and the Gateway may become unresponsive. Patch the LOM Firmware as outlined in sk88064 or apply workaround.  

Edit /etc/modprobe.conf and add the following entry:  
options ipmi_si force_kipmid=0  

Reboot the Gateway.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
