Finding Why a Linux CPU Drops to 400 MHz Under Load
A Linux machine whose CPU drops to 400 MHz under load has most likely hit one of the processor's performance limits. The limit can be temperature, a power limit set by the firmware, a current limit, or a PROCHOT (processor hot) signal from another part of the board. This post covers how to confirm the drop, how to tell a thermal limit from a power limit, how to read which limit is active on an Intel CPU, and where Windows records the same kind of limit.
A recent Fedora Discussion thread describes an ASUS Vivobook 16X with an Intel Core i5-12500H on Fedora 45 KDE. The CPU dropped to 400 MHz for one to two minutes at a time while gaming, with package temperatures around 72°C. The same laptop didn't throttle on Windows. Switching to the performance power profile didn't change it. The BIOS was current and the laptop was on its original charger.
Confirm the drop with turbostat
Install kernel-tools on Fedora to get turbostat, and run it while the slowdown is happening. Each 5 second interval is one line with the average busy clock in Bzy_MHz, the package temperature in PkgTmp, and the power the whole package draws in PkgWatt.
sudo dnf install kernel-tools sudo turbostat --quiet --show Busy%,Bzy_MHz,PkgTmp,PkgWatt --interval 5
Keep it running through one full drop and the recovery after it. A drop where PkgWatt falls to a few watts while PkgTmp stays well under the CPU's thermal limit most likely comes from a power or current limit. A drop where PkgTmp climbs to the thermal limit first is most likely heat.
The --quiet option leaves out the system configuration header. Run it without that option to see the header.
Check the thermal throttle counters
On Intel CPUs the kernel counts each time the processor's thermal status flag turns on. The kernel documentation on thermal throttle events describes the files under /sys/devices/system/cpu/cpuX/thermal_throttle/. Each core and each package has a count, a longest time, and a total time in milliseconds. Read them before a drop and again after it.
grep . /sys/devices/system/cpu/cpu0/thermal_throttle/*
The counters can't be reset, so compare the values from one drop to the next. A package_throttle_count that goes up with every drop means the package reached its thermal trip temperature during that drop. When PkgTmp also climbs during the same drops, clean the heatsink and fan, and check that the fans spin up under load. When the count goes up while PkgTmp stays low, read the limit reasons register next, because more than one limit can be involved.
Read the limit reasons register
Intel CPUs record which limits are reducing the core clock in model specific register (MSR) 0x64F, named MSR_CORE_PERF_LIMIT_REASONS. Read it during a drop with rdmsr from the msr-tools package, after loading the msr kernel module.
sudo dnf install msr-tools sudo modprobe msr sudo rdmsr -p 0 0x64f
The value is hexadecimal. The low 16 bits are the limits active at the moment of the read. The next 16 bits are log bits, which stay set after a limit has ended. The bit names below come from the decode in turbostat's source.
- Bit 0, PROCHOT. A PROCHOT signal from outside the CPU asked it to slow down.
- Bit 1, ThermStatus. The CPU reached its own thermal limit.
- Bit 8, Amps. The CPU reached its electrical current limit.
- Bit 10, PkgPwrL1. The package long-term power limit (PL1) is in effect.
- Bit 11, PkgPwrL2. The package short-term power limit (PL2) is in effect.
Each of those bits has a log bit 16 positions higher. Bit 16 is the logged PROCHOT and bit 26 is the logged PL1.
In the Fedora thread the register read 15030400 during a drop. Bit 10 is the only active bit in that value, so PL1 was the limit in effect while the CPU ran at 400 MHz. The log bits show that PROCHOT, thermal, current, and PL1 limits had all been reached at some point before the read. The next check is the PL1 value itself.
Check the package power limit
When PL1 is the active limit, check what PL1 is set to. The RAPL (running average power limit) constraints are under /sys/devices/virtual/powercap/intel-rapl/, as the kernel's power capping documentation describes. Each constraint has a name, a power limit in microwatts, and a time window.
sudo grep . /sys/devices/virtual/powercap/intel-rapl/intel-rapl:0/constraint_*
Run it during a drop and again after the clock recovers. A long_term limit that falls to a few watts during the drop and returns to its usual value afterwards is likely being lowered by the firmware. Check the laptop maker's BIOS settings and power profile options for a setting that changes the CPU power limit, and keep the BIOS updated. In the Fedora thread, starting the game with Feral GameMode appeared to prevent the drop.
When PROCHOT is the active bit, the signal comes from another component on the board. Check the GPU temperature at the time of the drop before changing any CPU setting.
Where Windows records it
Windows logs event 37 from Microsoft-Windows-Kernel-Processor-Power in the System log when the firmware limits the processor speed. The message starts with "The speed of processor" and continues with "is being limited by system firmware", followed by how many seconds the processor has been in that reduced state. List the recent events with their times.
Get-WinEvent -FilterHashtable @{LogName='System'; ProviderName='Microsoft-Windows-Kernel-Processor-Power'; Id=37} -MaxEvents 20 | Select-Object TimeCreated,Message
Match the times against the reported slowdowns. Microsoft's article on event 37 recommends checking for a power capping policy from the hardware manufacturer and for a power policy that is set to system firmware.
Where ET Ducky shows it
I build ET Ducky. You can open a Live Session shell to a Linux agent from the browser and send the turbostat, rdmsr, and grep commands with "Run as root" while the user is reporting the slowdown. Run as root needs its own privilege in your organization and an opt-in file on the host. On a Windows agent you'd run the Get-WinEvent query from the same shell.
Try it on one server
One Windows or Linux server costs $5 a month with no query subscription.
See pricing