BOINC-AUSTRALIA FORUM

Members Only => ALL ABOUT HARDWARE => ALL THINGS LINUX => Topic started by: jave808 on December 21, 2019, 10:20:29 AM

Title: CPU throttling in Linux to control CPU temps
Post by: jave808 on December 21, 2019, 10:20:29 AM
Hi,
Last night I was looking for something to throttle the CPU in order to control the CPU temps whilst crunching.  Remembering that Google was my friend, I discovered this shell script here - https://github.com/Sepero/temp-throttle

All good I thought. After some initial testing I wanted the script to startup at boot.  I initially added the script to a rc.local file located in /etc/init.d. But that didn't work.

So I posted a question on the Linux Mint forums and I was quickly given a solution.  You can view the post here - https://forums.linuxmint.com/viewtopic.php?f=46&p=1731265

The trick is to start up the script as a "service".  That's it!  :BigGrin

Title: Re: CPU throttling in Linux to control CPU temps
Post by: Dingo on December 21, 2019, 02:57:56 PM
Thanks jave808 that could be very good to run in the summer.  I will give it a try and what temperature did you pick and did the script work ??
Title: Re: CPU throttling in Linux to control CPU temps
Post by: jave808 on December 22, 2019, 07:40:59 AM
@Dingo - temp I chose was 60 degC but that's the ideal temp for my AMD FX8350 CPU, yours will probably differ.  And yes, the script works and now I'm one happy chappy!

Also, you may have to install a package called cpufrequtils with

sudo apt-get install cpufrequtils

Note that I'm using an Ubuntu based distro. Others versions of Linux may need a different setup to get the script to work at boot up.