My Ivy Bridge CPU isn't using the scaling governor set for Intel CPUs in rc.cpufreq.
by RadicalDreamer from LinuxQuestions.org on (#5FB3P)
Code:bash-5.1$ uname -srvmpi
Linux 5.10.23 #1 SMP Thu Mar 11 17:00:08 CST 2021 x86_64 Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz GenuineIntel
rc.cpufreq:
Code:SCALING_GOVERNOR=ondemand
# For CPUs using intel_pstate, always use the performance governor. This also
# provides power savings on Intel processors while avoiding the ramp-up lag
# present when using the powersave governor (which is the default if ondemand
# is requested on these machines):
if [ "$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver 2> /dev/null)" = "intel_pstate" ];
then
SCALING_GOVERNOR="performance"
fi
Code:bash-5.1$ cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
driver: intel_cpufreq
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 20.0 us.
hardware limits: 1.60 GHz - 3.90 GHz
available cpufreq governors: conservative, ondemand, userspace, powersave, performance, schedutil
current policy: frequency should be within 1.80 GHz and 3.90 GHz.
The governor "ondemand" may decide which speed to use
within this range.Code:bash-5.1# sh /etc/rc.d/rc.cpufreq
Enabled CPU frequency scaling governor: ondemandThen I set the scaling governor to powersave.
rc.cpufreq:
Code:SCALING_GOVERNOR=powersave
# For CPUs using intel_pstate, always use the performance governor. This also
# provides power savings on Intel processors while avoiding the ramp-up lag
# present when using the powersave governor (which is the default if ondemand
# is requested on these machines):
if [ "$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver 2> /dev/null)" = "intel_pstate" ];
then
SCALING_GOVERNOR="performance"
fi
Code:bash-5.1# sh /etc/rc.d/rc.cpufreq
Enabled CPU frequency scaling governor: powersaveCode:bash-5.1# cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
driver: intel_cpufreq
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 20.0 us.
hardware limits: 1.60 GHz - 3.90 GHz
available cpufreq governors: conservative, ondemand, userspace, powersave, performance, schedutil
current policy: frequency should be within 1.80 GHz and 3.90 GHz.
The governor "powersave" may decide which speed to use
within this range.


Linux 5.10.23 #1 SMP Thu Mar 11 17:00:08 CST 2021 x86_64 Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz GenuineIntel
rc.cpufreq:
Code:SCALING_GOVERNOR=ondemand
# For CPUs using intel_pstate, always use the performance governor. This also
# provides power savings on Intel processors while avoiding the ramp-up lag
# present when using the powersave governor (which is the default if ondemand
# is requested on these machines):
if [ "$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver 2> /dev/null)" = "intel_pstate" ];
then
SCALING_GOVERNOR="performance"
fi
Code:bash-5.1$ cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
driver: intel_cpufreq
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 20.0 us.
hardware limits: 1.60 GHz - 3.90 GHz
available cpufreq governors: conservative, ondemand, userspace, powersave, performance, schedutil
current policy: frequency should be within 1.80 GHz and 3.90 GHz.
The governor "ondemand" may decide which speed to use
within this range.Code:bash-5.1# sh /etc/rc.d/rc.cpufreq
Enabled CPU frequency scaling governor: ondemandThen I set the scaling governor to powersave.
rc.cpufreq:
Code:SCALING_GOVERNOR=powersave
# For CPUs using intel_pstate, always use the performance governor. This also
# provides power savings on Intel processors while avoiding the ramp-up lag
# present when using the powersave governor (which is the default if ondemand
# is requested on these machines):
if [ "$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver 2> /dev/null)" = "intel_pstate" ];
then
SCALING_GOVERNOR="performance"
fi
Code:bash-5.1# sh /etc/rc.d/rc.cpufreq
Enabled CPU frequency scaling governor: powersaveCode:bash-5.1# cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
driver: intel_cpufreq
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 20.0 us.
hardware limits: 1.60 GHz - 3.90 GHz
available cpufreq governors: conservative, ondemand, userspace, powersave, performance, schedutil
current policy: frequency should be within 1.80 GHz and 3.90 GHz.
The governor "powersave" may decide which speed to use
within this range.