Throttling CPU based on temperature?

Bo Berglund bo.berglund at gmail.com
Wed Aug 17 05:45:55 UTC 2022


I have several Ubuntu server boxes involved with video rendering using ffmpeg.

Sometimes there are concurrent rendering jobs running and they use the CPU to
the max...
This results in a high temperature over fairly long times (jobs run for 5-10
minutes) and I am worried that the computer might shut down due to overtemp,
especially now in the summer heat climate.

So is there some daemon or such one can install, which limits the CPU usage for
active threads when the CPU temperature reaches a set limit, like 90C or
similar?

I have seen mention of a "cpu governor" function and using this googled command
I see:

$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
ondemand

But I don't know if this is the solution (to modify this setting)...

My systems run Ubuntu 20.04 LTS currently.

Any suggestions welcome.


-- 
Bo Berglund
Developer in Sweden





More information about the ubuntu-users mailing list