How to lower CPU frequency in Linux

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,255
3,853
75
I just got a nice new i7-6700 (non-K) CPU. Which works great except that I didn't get a good enough cooler for it (stock Intel). I'll look into a new cooler when my tax refund gets here, but for now I need a way to cool it when running PrimeGrid (like Prime95) in Linux (Ubuntu 16.04). It gets up to ~90C, then starts throttling.

I tried these instructions: https://unix.stackexchange.com/ques...rspace-cpufreq-governor-and-set-cpu-frequency

But intel_pstate didn't seem to be turned off. I couldn't load the userspace governor. Other suggestions? I just want to cap frequency at somewhere between 3.0 and 3.4 GHz, I think. I don't suppose Throttlestop works in Linux? It works great on my Windows laptop.
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,255
3,853
75
I think I've figured this out. Turns out the pstate driver I couldn't disable can do just what I wanted. For instance, this sets my i7 to 3.4GHz:

Code:
# echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo

Or this sets it to 3.2GHz:

Code:
# echo 80 > /sys/devices/system/cpu/intel_pstate/max_perf_pct