Show/edit CPU governor profile [SCALE Bluefin]

rsolva

Cadet
Joined
Dec 14, 2022
Messages
5
TL;DR: How do I check which CPU governor profile is used and how do I edit it?

I tried CORE first and it was relatively easy to use sysctl to display the current CPU frequency and I enabled PowerD by adding a tunable to the rc.conf. I then installed SCALE as I wanted the benefits it has over CORE, but now I can figure how to make similar adjustment to the CPU governor on SCALE.

I have search the docs without finding an answer so I naturally signed up to the community forum to ask you guys to point me in the right direction :)
 

sammael

Explorer
Joined
May 15, 2017
Messages
76
Add a postinit command in System Settings - Advanced - Init/Shutdown Scripts:
Code:
echo "performance" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

I use the same command on Proxmox node as well. On my systems only performance and powersave are available, powersave was default. YMMV

You can use this to see what's available on your system:
Code:
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
 

rsolva

Cadet
Joined
Dec 14, 2022
Messages
5
Thanks @sammael, I had two available governors, "schedutil" and "performance". It looks like the schedutil is quite good at keeping the CPU frequency at a low state most of the time, which is what I want. I checked this with cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq. Since schedutil is the default I do not need to change anything.
 
Top