I set amd-pstate=active to test. Using zen3 CPU here.
I’m using all the defaults and it seems to be ok.
cpupower.service shows amd_pstate_epp driver with powersave governor.
/sys/devices/system/cpu/cpufreq/policy0/energy_performance_preference shows balance_performance.
cpu frequency
cpu MHz : 550.000
cpu MHz : 3966.583
cpu MHz : 3709.286
cpu MHz : 550.000
cpu MHz : 550.000
cpu MHz : 550.000
cpu MHz : 550.000
cpu MHz : 550.000
cpu MHz : 550.000
cpu MHz : 550.000
cpu MHz : 550.000
cpu MHz : 550.000
cpu MHz : 3578.267
cpu MHz : 550.000
cpu MHz : 550.000
cpu MHz : 550.000
[ricklinux@eos-plasma ~]$ cpupower frequency-info
analyzing CPU 3:
driver: amd_pstate_epp
CPUs which run at the same hardware frequency: 3
CPUs which need to have their frequency coordinated by software: 3
maximum transition latency: Cannot determine or is not supported.
hardware limits: 550 MHz - 4.56 GHz
available cpufreq governors: performance powersave
current policy: frequency should be within 550 MHz and 4.56 GHz.
The governor "powersave" may decide which speed to use
within this range.
current CPU frequency: Unable to call hardware
current CPU frequency: 550 MHz (asserted by call to kernel)
boost state support:
Supported: yes
Active: no
[ricklinux@eos-plasma ~]$
[ricklinux@eos-plasma ~]$ systemctl status cpupower.service
× cpupower.service - Apply cpupower configuration
Loaded: loaded (/usr/lib/systemd/system/cpupower.service; enabled; preset: disabled)
Active: failed (Result: exit-code) since Sat 2023-05-06 11:19:36 EDT; 8min ago
Process: 3564 ExecStart=/usr/lib/systemd/scripts/cpupower (code=exited, status=1/FAILURE)
Main PID: 3564 (code=exited, status=1/FAILURE)
CPU: 3ms
May 06 11:19:36 eos-plasma systemd[1]: Starting Apply cpupower configuration...
May 06 11:19:36 eos-plasma systemd[1]: cpupower.service: Main process exited, code=exited, status=1/FAILURE
May 06 11:19:36 eos-plasma systemd[1]: cpupower.service: Failed with result 'exit-code'.
May 06 11:19:36 eos-plasma systemd[1]: Failed to start Apply cpupower configuration.
[ricklinux@eos-plasma ~]$
That tool lost its value when using epp for me as we shouldn’t change governor anyway and frequencies are mostly non-relevant numbers anyway (the power level that the CPU uses doesn’t depend on frequencies for some generations now)
depends on what you want to achieve - but most options it offers are non-relevant now.
It can’t change the energy_performance_preference which is the only value that makes sense to modify now. I use a self-written systemd-service with a self-written bash script for that:
I’m using cpupower to check the driver and the governor being used.
You can leave it installed and disabled just to check these values in case you need.
To check it, issue the following command: cpupower frequency-info
As you can see below, cpupower doesn’t provide the options such as, balance_power balance_performance…
So i should leave this commented then because it’s now controlled by the kernel?
Edit: I get this when run.
[ricklinux@eos-plasma ~]$ cpupower frequency-info
analyzing CPU 12:
driver: amd_pstate_epp
CPUs which run at the same hardware frequency: 12
CPUs which need to have their frequency coordinated by software: 12
maximum transition latency: Cannot determine or is not supported.
hardware limits: 550 MHz - 4.56 GHz
available cpufreq governors: performance powersave
current policy: frequency should be within 550 MHz and 4.56 GHz.
The governor "powersave" may decide which speed to use
within this range.
current CPU frequency: Unable to call hardware
current CPU frequency: 3.46 GHz (asserted by call to kernel)
boost state support:
Supported: yes
Active: no
[ricklinux@eos-plasma ~]$
I’m not using it… I would leave it commented since governor “ondemand” is not available anymore for amd_pstate_epp, Actually, cpupower does not even show the options we are using now as available in that config file…
I suppose that cpupower.service is failing to launch because of that… You probably set a governor that amd_pstate_epp doesn’t support.
It should be working… At least this is all I have done here, updated my kernel cmdline, reinstalled kernels and next boot it was already set.
Are you using zen3?
Yes.
Since those options (balance_power balance_performance…) are not available for cpupower, I thought maybe one could switch between them using powerprofilesctl. But it doesn’t seem so …
powerprofilesctl --help
Usage:
powerprofilesctl COMMAND [ARGS…]
Commands:
help Print help
version Print version
get Print the currently active power profile
set Set the currently active power profile
list List available power profiles
list-holds List current power profile holds
launch Launch a command while holding a power profile