doc-exports/docs/bms/image-creation-guide/en-us_topic_0081116680.html
guoyanyan fe8c0cf45c BMS Image Creation Guide 1109
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: guoyanyan <guoyanyan3@huawei.com>
Co-committed-by: guoyanyan <guoyanyan3@huawei.com>
2022-11-16 08:53:42 +00:00

5.2 KiB

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