Adjust CPU scaling governor

Is there a way to adjust a balenaOS’ CPU frequency scaling profile permanently without recompiling?

(For my own benefit…) I have got the following output on an Intel NUC running balenaOS 2.32.0:

root@b1878c6:~# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
performance powersave

Which I take to mean that there are two CPU scaling governors to choose from: performance and powersave.

@kazazes, just to confirm, are you asking how to persistently configure balenaOS to automatically select between, for example, those two available governors? (I.e., which configuration file to modify…)

I’d like it to persist across boots, ideally.

Hi @kazazes, my teammate says that you could set the CPU governor within your application at every boot. You need to make the container privileged to do that.