Help Center/ Bare Metal Server/ Private Image Creation Guide/ FAQ/ How Do I Set the BMS CPU Frequency Governor?
Updated on 2022-09-09 GMT+08:00

How Do I Set the BMS CPU Frequency Governor?

Generally, CPU frequency governors include performance, powersave, and ondemand. You can select a one based on service requirements.

Assume that you want to set the CPU frequency governor to performance.

  • Red Hat 6

    Make the following modification in the /etc/sysconfig/cpuspeed file:

    GOVERNOR=performance
  • Red Hat 7

    Make the following modification in the /etc/sysconfig/cpupower file:

    CPUPOWER_START_OPTS="frequency-set -g performance"
  • Debian Gnu/Linux 8

    Make the following modification in the /etc/init.d/cpufrequtils file:

    GOVERNOR="performance"
  • You can run the yum install Software name command to install the software you need, or download the software (.rpm package) from the official website and install it.
  • You can configure a script for Red Hat 6 to automatically load the intel_pstate driver and make the preceding configurations take effect upon OS startup.
    1. Run the following command to create the intel_pstate.modules file:

      vi /etc/sysconfig/modules/intel_pstate.modules

    2. Add the following information into the file:
      /sbin/modprobe intel_pstate > /dev/null 2>&1
    3. Press Esc and enter :wq! to save the configuration.
    4. Run the following commands to modify the file permission:

      chmod 755 /etc/sysconfig/modules/intel_pstate.modules