CPU stuck at 2001

Started by fadern, August 10, 2024, 09:50:47 PM

Previous topic - Next topic
August 10, 2024, 09:50:47 PM Last Edit: August 10, 2024, 10:00:22 PM by fadern
Hi,
I have a Intel i7 5550U that seems to be stuck at 2001mhz even when the system are idling. The temperature are always very high, around ~80C.
Its a Qotom hw, Q5500UG4-P V1.1 with the latest BIOS (2024-01-02).

Quote
kalle@OPNsense:~ $ sysctl dev.cpufreq.0.freq_driver
dev.cpufreq.0.freq_driver: est0
kalle@OPNsense:~ $ sysctl dev.cpu.0.freq_levels
dev.cpu.0.freq_levels: 2001/15000 2000/15000 1900/14088 1800/13193 1700/12317 1600/11459 1500/10617 1400/9796 1200/8199 1100/7426 1000/6670 900/5932 800/5209 700/4502 600/3812 500/3137
kalle@OPNsense:~ $ sysctl dev.cpu.0.freq
dev.cpu.0.freq: 2001
kalle@OPNsense:~ $ sysctl dev.cpu.1.freq
dev.cpu.1.freq: 2001

Quote
kalle@OPNsense:~ $ sysctl dev.cpu | grep cx
dev.cpu.1.cx_method: C1/mwait/hwc C2/mwait/hwc C3/mwait/hwc
dev.cpu.1.cx_usage_counters: 251704 352780 1194540
dev.cpu.1.cx_usage: 13.99% 19.60% 66.39% last 4766us
dev.cpu.1.cx_lowest: C3
dev.cpu.1.cx_supported: C1/1/1 C2/2/148 C3/3/506
dev.cpu.0.cx_method: C1/mwait/hwc C2/mwait/hwc C3/mwait/hwc
dev.cpu.0.cx_usage_counters: 203383 253748 1245289
dev.cpu.0.cx_usage: 11.94% 14.90% 73.14% last 8539us
dev.cpu.0.cx_lowest: C3
dev.cpu.0.cx_supported: C1/1/1 C2/2/148 C3/3/506

I have added the following tunables but they doesn't seem to help.

Quote
dev.hwpstate_intel.0.epp = 99
dev.hwpstate_intel.1.epp = 99
hw.acpi.cpu.cx_lowest = C3 

Do any of you have any suggestions how to get the cpu go lower?
Intel i7-8550U - Intel I211 - RAM 16GB - NVMe 120Gb
Intel i7-5550U - Intel I211 - RAM 8GB - NVMe 50Gb

August 10, 2024, 10:49:54 PM #1 Last Edit: August 11, 2024, 08:33:54 PM by dinguz
I would suggest going through all the system bios options. Start with a reset to default to have a baseline and go from there. Possibly power management is currently disabled. Unfortunately, Qotom seems to have a tendency to leave each and every possible bios option visible, so this may be quite laborious.

In System - Settings - Miscellaneous, have you enabled 'powerd' and selected an appropriate governor (adaptive or high adaptive)?
In theory there is no difference between theory and practice. In practice there is.

Quote from: dinguz on August 10, 2024, 10:49:54 PM
I would suggest going through all the system bios options. Start with a reset to default to have a baseline and go from there. Possibly power management is currently disabled. Unfortunately, Qotom seems to have a tendency to leave each and every possible bios option visible, so this may be quite laborious.

In System - Settings - Miscellaneous, have you enabled 'powerd' and selected an appropriate governor (adaptive or high adaptive)?

I have now tried many settings in the bios but it seem to not help.
Could it be that the CPU doesent support "hwpstate_intel" (Intel Speed Shift Technology driver) and I need to disable it in OPNS?
https://ark.intel.com/content/www/us/en/ark/products/84992/intel-core-i7-5550u-processor-4m-cache-up-to-3-00-ghz.html
Intel i7-8550U - Intel I211 - RAM 16GB - NVMe 120Gb
Intel i7-5550U - Intel I211 - RAM 8GB - NVMe 50Gb

That CPU doesn't support Intel SpeedShift. Which means even if FreeBSD supports it the CPU will not load it. In the boot log you can see if Intel SpeedShift is recognized and used just grep it out.

However if you CPU doesn't use Intel SpeedShift than it can be controlled by PowerD. Usually if you have CPU with Intel SpeedShift you disable PowerD. And if not its vise versa (Its not mandatory to use PowerD if Intel SpeedShift is not present)

Check if you have PowerD enabled and what setting is choosed. Try to disable it, or if its enabled change it to HiAdaptive.

Regards,
S.
Networking is love. You may hate it, but in the end, you always come back to it.

OPNSense HW
APU2D2 - deceased
N5105 - i226-V | Patriot 2x8G 3200 DDR4 | L 790 512G - VM HA(SOON)
N100   - i226-V | Crucial 16G  4800 DDR5 | S 980 500G - PROD

September 16, 2024, 05:03:24 PM #4 Last Edit: September 16, 2024, 05:12:11 PM by fadern
ok, now the hwpstate_intel (hint.hwpstate_intel.0.disabled =1) is disabled and powerd enabled.


$ sysctl dev.cpufreq.0.freq_driver
dev.cpufreq.0.freq_driver: est0


sysctl dev.cpu.0.freq_levels
dev.cpu.0.freq_levels: 2001/15000 2000/15000 1900/14088 1800/13193 1700/12317 1600/11459 1500/10617 1400/9796 1200/8199 1100/7426 1000/6670 900/5932 800/5209 700/4502 600/3812 500/3137



sysctl dev.cpu.0.freq
dev.cpu.0.freq: 2001
sysctl dev.cpu.1.freq
dev.cpu.1.freq: 1400
sysctl dev.cpu.1.freq
dev.cpu.1.freq: 2001
sysctl dev.cpu.1.freq
dev.cpu.1.freq: 2001
sysctl dev.cpu.1.freq
dev.cpu.1.freq: 2001


kalle@OPNsense:~ $ sysctl dev.cpu | grep cx
dev.cpu.1.cx_method: C1/mwait/hwc C2/mwait/hwc C3/mwait/hwc
dev.cpu.1.cx_usage_counters: 389873 923520 7477225
dev.cpu.1.cx_usage: 4.43% 10.50% 85.05% last 6625us
dev.cpu.1.cx_lowest: C3
dev.cpu.1.cx_supported: C1/1/1 C2/2/148 C3/3/506
dev.cpu.0.cx_method: C1/mwait/hwc C2/mwait/hwc C3/mwait/hwc
dev.cpu.0.cx_usage_counters: 442746 917207 7759320
dev.cpu.0.cx_usage: 4.85% 10.05% 85.08% last 125us
dev.cpu.0.cx_lowest: C3
dev.cpu.0.cx_supported: C1/1/1 C2/2/148 C3/3/506


sudo powerd -v
powerd: unable to determine AC line status
load   0%, current freq 2001 MHz ( 0), wanted freq 1938 MHz
changing clock speed from 2001 MHz to 2000 MHz
load   0%, current freq 2000 MHz ( 1), wanted freq 1877 MHz
changing clock speed from 2000 MHz to 1900 MHz
load   0%, current freq 1900 MHz ( 2), wanted freq 1818 MHz
load   0%, current freq 1900 MHz ( 2), wanted freq 1761 MHz
changing clock speed from 1900 MHz to 1800 MHz
load   0%, current freq 1800 MHz ( 3), wanted freq 1705 MHz
load   3%, current freq 1800 MHz ( 3), wanted freq 1651 MHz
changing clock speed from 1800 MHz to 1700 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 1599 MHz
changing clock speed from 2001 MHz to 1600 MHz
load   0%, current freq 1600 MHz ( 5), wanted freq 1549 MHz
load   3%, current freq 1600 MHz ( 5), wanted freq 1500 MHz
changing clock speed from 1600 MHz to 1500 MHz
load   3%, current freq 1500 MHz ( 6), wanted freq 1453 MHz
load  45%, current freq 1500 MHz ( 6), wanted freq 1743 MHz
changing clock speed from 1500 MHz to 1800 MHz
load   0%, current freq 1800 MHz ( 3), wanted freq 1688 MHz
changing clock speed from 1800 MHz to 1700 MHz
load   0%, current freq 1700 MHz ( 4), wanted freq 1635 MHz
load   3%, current freq 1700 MHz ( 4), wanted freq 1583 MHz
changing clock speed from 1700 MHz to 1600 MHz
load   0%, current freq 1600 MHz ( 5), wanted freq 1533 MHz
load   0%, current freq 1600 MHz ( 5), wanted freq 1485 MHz
changing clock speed from 1600 MHz to 1500 MHz
load   0%, current freq 1500 MHz ( 6), wanted freq 1438 MHz
load   0%, current freq 1500 MHz ( 6), wanted freq 1393 MHz
changing clock speed from 1500 MHz to 1400 MHz
load   0%, current freq 1400 MHz ( 7), wanted freq 1349 MHz
load   0%, current freq 1400 MHz ( 7), wanted freq 1306 MHz
load   5%, current freq 1400 MHz ( 7), wanted freq 1265 MHz
load  14%, current freq 1400 MHz ( 7), wanted freq 1225 MHz
load  82%, current freq 1400 MHz ( 7), wanted freq 4002 MHz
changing clock speed from 1400 MHz to 2001 MHz
load   4%, current freq 2001 MHz ( 0), wanted freq 3876 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3754 MHz
load   3%, current freq 2001 MHz ( 0), wanted freq 3636 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3522 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3411 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3304 MHz
load  26%, current freq 2001 MHz ( 0), wanted freq 3304 MHz
load  66%, current freq 2001 MHz ( 0), wanted freq 4002 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3876 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3754 MHz
load  20%, current freq 2001 MHz ( 0), wanted freq 3636 MHz
load  51%, current freq 2001 MHz ( 0), wanted freq 4002 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3876 MHz
load   4%, current freq 2001 MHz ( 0), wanted freq 3754 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3636 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3522 MHz
load   3%, current freq 2001 MHz ( 0), wanted freq 3411 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3304 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3200 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3100 MHz
load   3%, current freq 2001 MHz ( 0), wanted freq 3003 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2909 MHz
load   4%, current freq 2001 MHz ( 0), wanted freq 2818 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2729 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2643 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2560 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2480 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2402 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2326 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2253 MHz
load  44%, current freq 2001 MHz ( 0), wanted freq 2643 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2560 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2480 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2402 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2326 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2253 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2182 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2113 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2046 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 1982 MHz
changing clock speed from 2001 MHz to 2000 MHz
load   0%, current freq 2000 MHz ( 1), wanted freq 1920 MHz
load  56%, current freq 2000 MHz ( 1), wanted freq 2867 MHz
changing clock speed from 2000 MHz to 2001 MHz
load  15%, current freq 2001 MHz ( 0), wanted freq 2777 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2690 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2605 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2523 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2444 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2367 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2293 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2221 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2151 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2083 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2017 MHz
load 120%, current freq 2001 MHz ( 0), wanted freq 4002 MHz
load  38%, current freq 2001 MHz ( 0), wanted freq 4002 MHz
load   3%, current freq 2001 MHz ( 0), wanted freq 3876 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3754 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3636 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3522 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3411 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3304 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3200 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3100 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3003 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2909 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2818 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2729 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2643 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2560 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2480 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2402 MHz
load   3%, current freq 2001 MHz ( 0), wanted freq 2326 MHz
load  45%, current freq 2001 MHz ( 0), wanted freq 2791 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2703 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2618 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2536 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2456 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2379 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2304 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2232 MHz
load   4%, current freq 2001 MHz ( 0), wanted freq 2162 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2094 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2028 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 1964 MHz
changing clock speed from 2001 MHz to 2000 MHz
load  63%, current freq 2000 MHz ( 1), wanted freq 3299 MHz
changing clock speed from 2000 MHz to 2001 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3195 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3095 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2998 MHz
load   8%, current freq 2001 MHz ( 0), wanted freq 2904 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2813 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2725 MHz
load  14%, current freq 2001 MHz ( 0), wanted freq 2639 MHz
load 154%, current freq 2001 MHz ( 0), wanted freq 4002 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3876 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3754 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3636 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3522 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3411 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3304 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3200 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3100 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 3003 MHz
load   4%, current freq 2001 MHz ( 0), wanted freq 2909 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2818 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2729 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2643 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2560 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2480 MHz
load   3%, current freq 2001 MHz ( 0), wanted freq 2402 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2326 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2253 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2182 MHz
load   6%, current freq 2001 MHz ( 0), wanted freq 2113 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2046 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 1982 MHz
changing clock speed from 2001 MHz to 2000 MHz
load  47%, current freq 2000 MHz ( 1), wanted freq 2484 MHz
changing clock speed from 2000 MHz to 2001 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2406 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2330 MHz
load   0%, current freq 2001 MHz ( 0), wanted freq 2257 MHz


PS.
"sysctl dev.cpu | grep temp" gives me another temperature then the webgui?!

sysctl dev.cpu | grep temp
dev.cpu.1.temperature: 43.0C
dev.cpu.1.coretemp.throttle_log: 1
dev.cpu.1.coretemp.tjmax: 105.0C
dev.cpu.1.coretemp.resolution: 1
dev.cpu.1.coretemp.delta: 62
dev.cpu.0.temperature: 46.0C
dev.cpu.0.coretemp.throttle_log: 1
dev.cpu.0.coretemp.tjmax: 105.0C
dev.cpu.0.coretemp.resolution: 1
dev.cpu.0.coretemp.delta: 59





Intel i7-8550U - Intel I211 - RAM 16GB - NVMe 120Gb
Intel i7-5550U - Intel I211 - RAM 8GB - NVMe 50Gb