News:

If you are a member of the Team on BOINC you still need to register on this forum to see the member posts.  The posts available for visitors are not posted to much by members.
 Remember to answer the questions when Registering and also you must be a active member of Team BOINC@AUSTRALIA on BOINC.

Main Menu

CPU throttling in Linux to control CPU temps

Started by jave808, December 21, 2019, 10:20:29 AM

Previous topic - Next topic

jave808

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

PC1: AMD Ryzen 9 5950X @3.4GHz, 128GB DDR4, RTX3070, RTX3060, Linux Mint 21.2 64-bit
PC2: Lenovo M700 SFF, Intel i5-6400 @2.7GHz, 16GB DDR3, Intel graphics, Linux Mint 21.2 64-bit

Dingo

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 ??


Radioactive@home graph
Have a look at the BOINC@AUSTRALIA Facebook Page and join and also the Twitter Page.

Proud Founder and member of BOINC@AUSTRALIA

My Luck Prime 1,056,356 digits.
Have a look at my  Web Cam of Parliament House Ottawa, CANADA

jave808

@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.
PC1: AMD Ryzen 9 5950X @3.4GHz, 128GB DDR4, RTX3070, RTX3060, Linux Mint 21.2 64-bit
PC2: Lenovo M700 SFF, Intel i5-6400 @2.7GHz, 16GB DDR3, Intel graphics, Linux Mint 21.2 64-bit