Can't reach max turbo CPU frequency
-
Yes we have that as the recommended setting in the new gui options that will be in 23.09.
It's hard to measure it though since simply running sysctl causes the CPU(cores) to ramp up.
-
@Conjurer I'm in setting up a new CWWK i7-1265u with pfSense 23.09 using fta's 6/8/2023 BIOS . I have got speed shift appearing to work with one quirk that I can't find an answer to:
CPU Type 12th Gen Intel(R) Core(TM) i7-1265U Current: 2806 MHz, Max: 2688 MHz 12 CPUs AES-NI CPU Crypto: Yes (active) IPsec-MB Crypto: Yes (active) QAT Crypto: No
That screen capture was with speed Shift active and a Core Level control power preference setting of 30. The 2688 Mhz response looks suspicious, see dev.cpu freq_levels below.
A "sysctl -a dev.cpu | grep cx" for cpu 0 shows:
dev.cpu.0.cx_method: C1/mwait/hwc C2/mwait/hwc C3/mwait/hwc
dev.cpu.0.cx_usage_counters: 221121 1637025 8068774
dev.cpu.0.cx_usage: 2.22% 16.49% 81.28% last 477us
dev.cpu.0.cx_lowest: C8
dev.cpu.0.cx_supported: C1/1/1 C2/2/127 C3/3/1048A freq_levels response shows:
dev.cpu.0.freq_levels: 2688/-1I was expecting more freq_levels and not a -1 response for the mW value. Is there a BIOS setting I'm missing?
Edit:
with power preference setting of 0:
12th Gen Intel(R) Core(TM) i7-1265U
Current: 4776 MHz, Max: 2688 MHzThe 4776 MHz is expected. I don't understand the 2688 MHz max.
-
AFAIK the frequency levels show there are for speedstep or other OS control methods. You won't see anything there unless powerd is enabled and SpeedShift replaces that.
Those values are passed from the BIOS when speedstep is enabled. -1 indicates no mW value was passed.
-
@rschell said in Can't reach max turbo CPU frequency:
sysctl -a dev.cpu | grep cx
Well to be honest, I don't know either where the
Max: 2688 MHz
is coming from. I just ignore it, and focus on the values presented as current. As for all other readings you posted, I have the same.As @stephenw10 mentions, if you disable Speed Shift (loader tunable
hint.hwpstate_intel.0.disabled
), and enable SpeedStep (PowerD) you'll see various frequencies when performingsysctl -a dev.cpu | grep 'freq_levels\|freq'
. But I wouldn't recommend it, Speed Shift is much more responsive and you can't fully utilize the pontential of this generation of Intel processor with SpeedStep. -
@rschell Maybe of any help or just sharing my knowledge: I found that using command stress would give me best results when it comes to testing boost speeds. In combination with using cpuset for targeting specific cores (P-cores and/or E-cores).
Installing stress:
pkg install stress rehash
Command
cpuset -l 0-3 stress -c 4
would (if hyper-threading is enabled) stress both P-cores with 4 worker processes. -
@Conjurer Hi, would it be possible to get information how you enabled Speed Shift in the bios? So far i could get the option Intel(R) Speed Shift Technology Interrupt Control to show up in the bios menu but enable or disable it doesn't change a thing. For HWP i got the following options: HwP Autonomous Per Core P State, HwP Autonomous EPP Grouping, HwP Fast MSR Support & HwP Lock but couldn't activate SST with those either.
-
You don't see the hwpstate_intel device detected in the boot logs?
-
@stephenw10
If you mean under Status->System Logs->System->OS Boot there is not entry about HWP, Speed Shift or SST. I asked Conjurer since I use a CWWK device as well. -
Hi Tiraga, sorry I did not respond to you sooner. I’ve got limited resources at the moment (on a holiday), but I can point you to my posts on another forum I did in my quest to reach the turbo speeds.
My initial post:
link to postFindings after deeper research:
link to postThen finally a link to the tweaked BIOS I build myself, in which all options are available to reach turbo speeds:
link to postI hope this helps.
-
@Conjurer No worries, thank you for the reply. I was hoping you did the HWP on modification on your own and could help me achive it for my 13th ge. system since the bios from this forum will brick my machine.