• Bare Metal Server

bms
  1. Help Center
  2. Bare Metal Server
  3. Private Image Creation Guide (BMS)
  4. FAQ
  5. How Can I Set the Mode of Adjusting the BMS CPU Frequency?

How Can I Set the Mode of Adjusting the BMS CPU Frequency?

Common CPU frequency adjustment modes include performance, powersave, and ondemand. You can select an appropriate one based on the BMS scenario.

To set the CPU frequency adjustment mode to performance, perform the following operations:

  • Red Hat 6

    Modify the following parameter in the /etc/sysconfig/cpuspeed file:

    GOVERNOR=performance
  • Red Hat 7

    Modify the following parameter in the /etc/sysconfig/cpupower file:

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

    Modify the following parameter in the /etc/init.d/cpufrequtils file:

    GOVERNOR="performance"
NOTE:
  • If you do not have relevant software, run the yum install xxx (software name) command or download the RPM package to install the software.
  • For Red Hat 6, to enable the intel_pstate driver to automatically load and make the configured parameters take effect upon OS startup, you can configure a script.
    1. Run the following command to create the intel_pstate.modules file:

      vi /etc/sysconfig/modules/intel_pstate.modules

    2. Add the following content:
      /sbin/modprobe intel_pstate > /dev/null 2>&1
    3. Press Esc and enter :wq! to save the configuration.
    4. Run the following command to modify permissions of the file:

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