I want to limit my CPU clock speed, but it ignores all the settings I apply. I tried using cpufreq and cpupower and the following commands:
sudo sh -c 'echo 1500000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq'
sudo sh -c 'echo 1500000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq'
sudo sh -c 'echo 1500000 > /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq'
sudo sh -c 'echo 1500000 > /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq'
I've tried all governors, but it still goes over the limit I set. it was working fine with windows 10 (by setting the maximum state to 60-70%)
cpu: i5-2410m
grep . /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freqand show us the actual CPU frequency,grep . /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq. And show us which CPU frequency scaling driver,grep . /sys/devices/system/cpu/cpu*/cpufreq/scaling_driver. And it's details,grep . /sys/devices/system/cpu/intel_pstate/*if it is the intel_pstate driver, for example. – Doug Smythies Oct 18 '24 at 23:40grep . cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq– Doug Smythies Oct 19 '24 at 14:26/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq:2693895 /sys/devices/system/cpu/cpu1/cpufreq/scaling_cur_freq:2693751 /sys/devices/system/cpu/cpu2/cpufreq/scaling_cur_freq:2693880 /sys/devices/system/cpu/cpu3/cpufreq/scaling_cur_freq:2693880 – newlinuxuser Oct 20 '24 at 10:21
echo 51 | sudo tee /sys/devices/system/cpu/intel_pstate/max_perf_pct. The two methods for setting the max CPU frequency are supposed to be coupled, but for some kernel versions they weren't. What kernel version? – Doug Smythies Oct 20 '24 at 14:50