[INFO] -- CPU-Cores running in Turbo-Mode 24/7

Post new topic   Reply to topic    DD-WRT Forum Index -> X86 based Hardware
Author Message
Sp1derman
DD-WRT User


Joined: 16 Jun 2006
Posts: 224
Location: Germany, BW

PostPosted: Tue Sep 03, 2024 18:58    Post subject: [INFO] -- CPU-Cores running in Turbo-Mode 24/7 Reply with quote
newest Build while writing this Info: 58283

Since a few Builds the CPU is nonstop running in Turbo-Mode.

That happens because of the cpufreq-Governor is set to "performance".
In former Builds the Gopvernor was set to "schedutil".

You can check your active Governor with this command, it shows the Info for all Cores:
Code:
root@WLAN-AP1:~# cat /sys/devices/system/cpu/cpu[0-9]*/cpufreq/scaling_governor
ondemand
ondemand
ondemand
ondemand

To see the Gonernors available on your system:
Code:
root@WLAN-AP1:~# cat /sys/devices/system/cpu/cpu[0-9]*/cpufreq/scaling_available_governors
ondemand userspace powersave performance schedutil
ondemand userspace powersave performance schedutil
ondemand userspace powersave performance schedutil
ondemand userspace powersave performance schedutil

To solve this issue flood404 posted in some Topics the code to switch the Governor from "performance" to "ondemand".
The ondemand-Governor seems to be a really good solution, I did some tests and after these tests I also switched to ondemand on systems running with schedutil.

Here is the code posted by flood404:
Code:
for CPUGOV in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do [ -f $CPUGOV ] || continue; echo -n ondemand > $CPUGOV; done
You can also use:
Code:
cpupower frequency-set -g ondemand

To prevent the CPU in Load-situation to jump up with the MHz too early here additional code:
Code:
echo 55 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
echo 15 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
I set the value to 55 as our Intel-CPUs are so powerful, there is no need to increase MHz earlier. In some other posts the Value is about 35.

So my code in the Startup-script is:
Code:
cpupower frequency-set -g ondemand
echo 55 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
echo 15 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor

To get some Infos about the CPU/Cores:
Code:
cpupower frequency-info
cat /proc/cpuinfo
grep -e processor -e MHz /proc/cpuinfo
grep -m 1 -e 'model name' /proc/cpuinfo && grep -e processor -e MHz /proc/cpuinfo

To monitor the CPU-Clock in 2-second-intervall:
Code:
watch grep -e processor -e MHz /proc/cpuinfo
watch cat /sys/devices/system/cpu/cpu[0-9]*/cpufreq/scaling_cur_freq
Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> X86 based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum