Hi,
I followed archwiki to set governor on boot to performance, but it doesn’t work.
My /etc/default/cpupower looks like this:
# Define CPUs governor
# valid governors: ondemand, performance, powersave, conservative, userspace.
governor='performance'
# Limit frequency range
# Valid suffixes: Hz, kHz (default), MHz, GHz, THz
#min_freq="2.25GHz"
#max_freq="3GHz"
# Specific frequency to be set.
# Requires userspace governor to be available.
# Do not set governor field if you use this one.
#freq=
# Utilizes cores in one processor package/socket first before processes are
# scheduled to other processor packages/sockets.
# See man (1) CPUPOWER-SET for additional details.
#mc_scheduler=
# Utilizes thread siblings of one processor core first before processes are
# scheduled to other cores. See man (1) CPUPOWER-SET for additional details.
#smp_scheduler=
# Sets a register on supported Intel processore which allows software to convey
# its policy for the relative importance of performance versus energy savings to
# the processor. See man (1) CPUPOWER-SET for additional details.
#perf_bias=
# vim:set ts=2 sw=2 ft=sh et:
I enabled systemd service with sudo systemctl enable --now cpupower.service
, yet after reboot this is cpupower frequency-info
output:
analyzing CPU 0:
driver: intel_pstate
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: Cannot determine or is not supported.
hardware limits: 800 MHz - 4.30 GHz
available cpufreq governors: performance powersave
current policy: frequency should be within 800 MHz and 4.30 GHz.
The governor “powersave” may decide which speed to use
within this range.
current CPU frequency: Unable to call hardware
current CPU frequency: 4.10 GHz (asserted by call to kernel)
boost state support:
Supported: yes
Active: yes
For my noob’s eye it looks like service works:
systemctl status cpupower
cpupower.service - Apply cpupower configuration
Loaded: loaded (/usr/lib/systemd/system/cpupower.service; enabled; vendor preset: disabled)
Active: active (exited) since Thu 2022-06-16 17:21:23 CEST; 14min ago
Process: 500 ExecStart=/usr/lib/systemd/scripts/cpupower (code=exited, status=0/SUCCESS)
Main PID: 500 (code=exited, status=0/SUCCESS)
CPU: 4ms
Jun 16 17:21:23 asusB560 systemd[1]: Starting Apply cpupower configuration…
Jun 16 17:21:23 asusB560 systemd[1]: Finished Apply cpupower configuration.