kevinlekiller / amdctl

Set P-State voltages and clock speeds on recent AMD CPUs on Linux.
GNU General Public License v3.0
241 stars 22 forks source link

Setting P-State Frequency Has No Effect, According to All CPU Frequency Monitoring Tools #29

Open gardotd426 opened 2 years ago

gardotd426 commented 2 years ago

Checking with nmon, zenmonitor, and cat /proc/cpuinfo | grep -i mhz all reports the frequency being the stock P-State frequency.

sudo amdctl -g -c23

Voltage ID encodings: SVI (serial)
Detected CPU model 21h, from family 19h with 24 CPU cores.

Core 23 | P-State Limits (non-turbo): Highest: 0 ; Lowest 2 | Current P-State: 0
 Pstate Status CpuFid CpuDid CpuVid CpuMult CpuFreq CpuVolt IddVal IddDiv CpuCurr CpuPower
      0      1    152      8     70  38.00x 3800MHz  1112mV     37     10  47.00A   52.29W
      1      1    140     10     88  28.00x 2800MHz  1000mV     28     10  38.00A   38.00W
      2      1    132     12    104  22.00x 2200MHz   900mV     22     10  32.00A   28.80W
Northbridge:
No P-States on Zen Northbridge.

As you can see I've set P-State 0 to 3800MHz and 1112 mV. Stock for the 5900X is 3700 and 1100, respectively.

However, the P-State is clearly not at 3800MHz:

nmon: Screenshot_20211115_200437

zenmonitor even seems to think it's 3.5GHz:

Screenshot_20211115_200632

cat /proc/cpuinfo | grep MHz

cpu MHz         : 3700.000
cpu MHz         : 3700.000
cpu MHz         : 3700.000
cpu MHz         : 3700.000
cpu MHz         : 3700.000
cpu MHz         : 3700.000
cpu MHz         : 3700.000
cpu MHz         : 3700.000
cpu MHz         : 3700.000
cpu MHz         : 3700.000
cpu MHz         : 3700.000
cpu MHz         : 3700.000
cpu MHz         : 3700.000
cpu MHz         : 3700.000
cpu MHz         : 3700.000
cpu MHz         : 3700.000
cpu MHz         : 3700.000
cpu MHz         : 4010.737
cpu MHz         : 3700.000
cpu MHz         : 3700.000
cpu MHz         : 3700.000
cpu MHz         : 3700.000
cpu MHz         : 3700.000
cpu MHz         : 3700.000

I haven't been able to find a tool that reports 3.8GHz, other than cpupower, and amdctl itself.

Another (maybe) weird thing is that amdctl -g shows:

Core 23 | P-State Limits (non-turbo)

for every core, even though all forms of "boost"/"turbo" are enabled (CPB, PBO, etc.) and cpupower shows "Boost" is active.

5900X, Linux 5.14.17