You are not logged in.

#1 2025-02-09 03:11:58

andmars
Member
Registered: 2012-03-13
Posts: 369

[Solved]AMD PSTATE not utilizing Lowest Performance (AMD Ryzen 5 3600)

I did a fresh install of arch and didn't enter any kernel parameters, so it utilizes driver: amd-pstate-epp. (before that I had amd_pstate=guided in my arch.conf but that doesn't make any difference now).

By entering cpupower frequency-info I noticed that it doesn't utilize: AMD PSTATE Lowest Performance: 22. Lowest Frequency: 550 MHz.

[andreas@andreas-pc ~]$ cpupower frequency-info
analyzing CPU 10:
  driver: amd-pstate-epp
  CPUs which run at the same hardware frequency: 10
  CPUs which need to have their frequency coordinated by software: 10
  maximum transition latency:  Cannot determine or is not supported.
  hardware limits: 550 MHz - 4.21 GHz
  available cpufreq governors: performance powersave
  current policy: frequency should be within 1.72 GHz and 4.21 GHz.
                  The governor "powersave" may decide which speed to use
                  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 3.99 GHz (asserted by call to kernel)
  boost state support:
    Supported: yes
    Active: yes
    AMD PSTATE Highest Performance: 166. Maximum Frequency: 4.21 GHz.
    AMD PSTATE Nominal Performance: 142. Nominal Frequency: 3.60 GHz.
    AMD PSTATE Lowest Non-linear Performance: 68. Lowest Non-linear Frequency: 1.72 GHz.
    AMD PSTATE Lowest Performance: 22. Lowest Frequency: 550 MHz.

So now I wonder why it is stuck at 1.72GHz as lowest frequency and doesn't scale the frequency withing it's full hardware limits? (I have a laptop with an intel cpu and utilizes the full hardware limits with driver: intel-pstate-epp).
amd-ucode is of course installed:

# lsinitcpio --early /boot/initramfs-linux.img | grep microcode 
kernel/x86/microcode/
kernel/x86/microcode/AuthenticAMD.bin

I can bring the frequency down with:

# cpupower frequency-set -d 550MHz

but that lasts only until next reboot. Changing the governor also doesn't change the range of 1.72GHz - 4.21GHz.

So, is this a bug? A safety measure maybe?

Last edited by andmars (2025-02-28 11:42:11)

Offline

#2 2025-02-27 08:47:40

Strauchdieb
Member
Registered: 2024-03-23
Posts: 2

Re: [Solved]AMD PSTATE not utilizing Lowest Performance (AMD Ryzen 5 3600)

Same here with an AMD Ryzen 7 5700X with 6.13.4-arch1-1.

CPU 3 wird analysiert:
  driver: amd-pstate-epp
  CPUs, die mit der gleichen Hardwarefrequenz laufen: 3
  CPUs, die ihre Frequenz mit Software koordinieren müssen: 3
  Maximale Dauer eines Taktfrequenzwechsels:  Cannot determine or is not supported.
  Hardwarebegrenzungen: 550 MHz - 4.87 GHz
  verfügbare cpufreq-Regler: performance powersave
  momentane Richtlinie: Frequenz sollte innerhalb 1.76 GHz und 4.87 GHz.
                    sein. Der Regler "powersave" kann frei entscheiden,
                    welche Geschwindigkeit er in diesem Bereich verwendet.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 3.91 GHz (asserted by call to kernel)
  boost state support:
    Unterstützt: ja
    Aktiv: ja
    AMD PSTATE Highest Performance: 166. Maximum Frequency: 4.87 GHz.
    AMD PSTATE Nominal Performance: 116. Nominal Frequency: 3.40 GHz.
    AMD PSTATE Lowest Non-linear Performance: 60. Lowest Non-linear Frequency: 1.76 GHz.
    AMD PSTATE Lowest Performance: 19. Lowest Frequency: 550 MHz.

With 6.12.16-1-lts it works as expected.

CPU 6 wird analysiert:
  driver: amd-pstate-epp
  CPUs, die mit der gleichen Hardwarefrequenz laufen: 6
  CPUs, die ihre Frequenz mit Software koordinieren müssen: 6
  Maximale Dauer eines Taktfrequenzwechsels:  Cannot determine or is not supported.
  Hardwarebegrenzungen: 550 MHz - 4.87 GHz
  verfügbare cpufreq-Regler: performance powersave
  momentane Richtlinie: Frequenz sollte innerhalb 550 MHz und 4.87 GHz.
                    sein. Der Regler "powersave" kann frei entscheiden,
                    welche Geschwindigkeit er in diesem Bereich verwendet.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 550 MHz (asserted by call to kernel)
  boost state support:
    Unterstützt: ja
    Aktiv: ja
    AMD PSTATE Highest Performance: 186. Maximum Frequency: 4.87 GHz.
    AMD PSTATE Nominal Performance: 116. Nominal Frequency: 3.40 GHz.
    AMD PSTATE Lowest Non-linear Performance: 60. Lowest Non-linear Frequency: 1.76 GHz.
    AMD PSTATE Lowest Performance: 19. Lowest Frequency: 550 MHz.

Offline

#3 2025-02-27 12:33:30

andmars
Member
Registered: 2012-03-13
Posts: 369

Re: [Solved]AMD PSTATE not utilizing Lowest Performance (AMD Ryzen 5 3600)

Hi, thanks for the reply. I also reverted back to linux-lts and lowest frequencies is at 550MHz now. Let's see what 6.14 will have in store for us. I read on phoronix that some work on the amd-pstate is being done.

Offline

#4 2025-02-27 15:34:05

Pyntux
Member
From: Serbia
Registered: 2008-12-21
Posts: 415

Re: [Solved]AMD PSTATE not utilizing Lowest Performance (AMD Ryzen 5 3600)

Same here on latest kernel with Ryzen 5 5600....

Last edited by Pyntux (2025-02-27 15:34:22)


I do not speak English, but I understand...

Offline

#5 2025-02-27 19:03:56

rfx
Member
Registered: 2023-11-21
Posts: 4

Re: [Solved]AMD PSTATE not utilizing Lowest Performance (AMD Ryzen 5 3600)

Hi!
i have a MiniPC with Ryzen5 7430u, as Kernel i use 6.12.12-hardened. I use KDE Plasma and this wonderful slider next to the clock that is activated when you enable the power-profiles-daemon.

My CPU's range is between 400 and 4390 MHz.
With Powersafe it shows a minimum of 400 MHz and reaches this even when idle. With Balanced it shows a minimum of 1110 MHz but it still clocks down to 400 MHz. With Performance it shows a minimum of 1110 MHz and also uses this as the lowest possible clock speed.

Did you really monitor the clock speed to make sure it doesn't go below 1720 MHz? I think if you don't activate the power profiles daemon, a balanced profile is always selected. For me, "cpupower frequency info" also indicates a higher minimum clock speed, but in reality the CPU clocks even lower, so in my opinion this is perhaps just a display error from the cpupower software.

#powersafe

CPU 2 wird analysiert:
  driver: amd-pstate-epp
  CPUs, die mit der gleichen Hardwarefrequenz laufen: 2
  CPUs, die ihre Frequenz mit Software koordinieren müssen: 2
  Maximale Dauer eines Taktfrequenzwechsels:  Cannot determine or is not supported.
  Hardwarebegrenzungen: 400 MHz - 2.30 GHz
  verfügbare cpufreq-Regler: performance powersave
  momentane Richtlinie: Frequenz sollte innerhalb 400 MHz und 2.30 GHz.
                    sein. Der Regler "powersave" kann frei entscheiden,
                    welche Geschwindigkeit er in diesem Bereich verwendet.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 1.40 GHz (asserted by call to kernel)
  boost state support:
    Unterstützt: ja
    Aktiv: nein
    AMD PSTATE Highest Performance: 166. Maximum Frequency: 4.39 GHz.
    AMD PSTATE Nominal Performance: 87. Nominal Frequency: 2.30 GHz.
    AMD PSTATE Lowest Non-linear Performance: 42. Lowest Non-linear Frequency: 1.11 GHz.
    AMD PSTATE Lowest Performance: 16. Lowest Frequency: 400 MHz.

#balanced

CPU 2 wird analysiert:
  driver: amd-pstate-epp
  CPUs, die mit der gleichen Hardwarefrequenz laufen: 2
  CPUs, die ihre Frequenz mit Software koordinieren müssen: 2
  Maximale Dauer eines Taktfrequenzwechsels:  Cannot determine or is not supported.
  Hardwarebegrenzungen: 400 MHz - 4.39 GHz
  verfügbare cpufreq-Regler: performance powersave
  momentane Richtlinie: Frequenz sollte innerhalb 1.11 GHz und 4.39 GHz.
                    sein. Der Regler "powersave" kann frei entscheiden,
                    welche Geschwindigkeit er in diesem Bereich verwendet.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 2.54 GHz (asserted by call to kernel)
  boost state support:
    Unterstützt: ja
    Aktiv: ja
    AMD PSTATE Highest Performance: 166. Maximum Frequency: 4.39 GHz.
    AMD PSTATE Nominal Performance: 87. Nominal Frequency: 2.30 GHz.
    AMD PSTATE Lowest Non-linear Performance: 42. Lowest Non-linear Frequency: 1.11 GHz.
    AMD PSTATE Lowest Performance: 16. Lowest Frequency: 400 MHz.

#performance

CPU 5 wird analysiert:
  driver: amd-pstate-epp
  CPUs, die mit der gleichen Hardwarefrequenz laufen: 5
  CPUs, die ihre Frequenz mit Software koordinieren müssen: 5
  Maximale Dauer eines Taktfrequenzwechsels:  Cannot determine or is not supported.
  Hardwarebegrenzungen: 400 MHz - 4.39 GHz
  verfügbare cpufreq-Regler: performance powersave
  momentane Richtlinie: Frequenz sollte innerhalb 1.11 GHz und 4.39 GHz.
                    sein. Der Regler "performance" kann frei entscheiden,
                    welche Geschwindigkeit er in diesem Bereich verwendet.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 3.97 GHz (asserted by call to kernel)
  boost state support:
    Unterstützt: ja
    Aktiv: ja
    AMD PSTATE Highest Performance: 171. Maximum Frequency: 4.39 GHz.
    AMD PSTATE Nominal Performance: 87. Nominal Frequency: 2.30 GHz.
    AMD PSTATE Lowest Non-linear Performance: 42. Lowest Non-linear Frequency: 1.11 GHz.
    AMD PSTATE Lowest Performance: 16. Lowest Frequency: 400 MHz.

MiniPC: Ryzen 7430U, 64GB DDR4, Samsung 990 Evo 2TB
Laptop: Intel Core i5 6200u, 8GB DDR4

Arch hardened <3

Offline

#6 2025-02-28 11:48:10

andmars
Member
Registered: 2012-03-13
Posts: 369

Re: [Solved]AMD PSTATE not utilizing Lowest Performance (AMD Ryzen 5 3600)

rfx wrote:

Did you really monitor the clock speed to make sure it doesn't go below 1720 MHz? I think if you don't activate the power profiles daemon, a balanced profile is always selected. For me, "cpupower frequency info" also indicates a higher minimum clock speed, but in reality the CPU clocks even lower, so in my opinion this is perhaps just a display error from the cpupower software.

Right you are. I din't have power-profiles-daemon installed. I never had to in the past because the CPU always utilized the lowest frequencies. After installing it and enabling/starting the systemd-service I did:

andreas@andreas-pc ~]$ powerprofilesctl set power-saver

And now there is no need for the lts-kernel anymore since it's just how I want it.

[andreas@andreas-pc ~]$ cpupower frequency-info
analyzing CPU 10:
  driver: amd-pstate-epp
  CPUs which run at the same hardware frequency: 10
  CPUs which need to have their frequency coordinated by software: 10
  maximum transition latency:  Cannot determine or is not supported.
  hardware limits: 550 MHz - 3.60 GHz
  available cpufreq governors: performance powersave
  current policy: frequency should be within 550 MHz and 3.60 GHz.
                  The governor "powersave" may decide which speed to use
                  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 3.57 GHz (asserted by call to kernel)
  boost state support:
    Supported: yes
    Active: no
    AMD PSTATE Highest Performance: 166. Maximum Frequency: 4.21 GHz.
    AMD PSTATE Nominal Performance: 142. Nominal Frequency: 3.60 GHz.
    AMD PSTATE Lowest Non-linear Performance: 68. Lowest Non-linear Frequency: 1.72 GHz.
    AMD PSTATE Lowest Performance: 22. Lowest Frequency: 550 MHz.

Offline

Board footer

Powered by FluxBB