Linux automatic CPU temperature regulation

Message boards : Questions and problems : Linux automatic CPU temperature regulation
Message board moderation

To post messages, you must log in.

AuthorMessage
USTL-FIL (Lille Fr)

Send message
Joined: 3 Jun 13
Posts: 12
France
Message 110096 - Posted: 13 Oct 2022, 14:00:26 UTC

Hi,
Is there any news on the possibility of limiting the CPU usage of BOINC according to the CPU temperature.
I saw in these forums that this is a feature requested for a very long time.
A native implementation in the BOINC client of this feature would be highly appreciated.
Thanks!
ID: 110096 · Report as offensive
Profile Dave
Help desk expert

Send message
Joined: 28 Jun 10
Posts: 2534
United Kingdom
Message 110097 - Posted: 13 Oct 2022, 15:01:38 UTC - in response to Message 110096.  
Last modified: 13 Oct 2022, 15:10:27 UTC

if you go to the git-hub site and look at feature requests there you could see if anyone is down as working on it. It does sort of happen with lots of modern CPUs as they automagically throttle speed if they get too hot.

Edit:Worth looking at this feature request. Doesn't look like anyone is actively working on it at least at a quick glance.
ID: 110097 · Report as offensive
Profile Keith Myers
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 17 Nov 16
Posts: 868
United States
Message 110098 - Posted: 14 Oct 2022, 7:01:19 UTC
Last modified: 14 Oct 2022, 7:01:49 UTC

I wonder if the impetus to develop a native BOINC solution is diminished by the popular TThrottle application that provides exactly what you request.

No reason to reinvent the wheel as it were . . . . .

https://efmer.com/download-tthrottle/

BoincTasks and TThrottle


ID: 110098 · Report as offensive
USTL-FIL (Lille Fr)

Send message
Joined: 3 Jun 13
Posts: 12
France
Message 110099 - Posted: 14 Oct 2022, 13:29:31 UTC - in response to Message 110098.  

Hi,

I had looked into this possibility, unfortunately TThrottle works only on Microsoft Wndows computer, not on GNU Linux.
I also tested boinctask, but it is not adapted and not able to support a park of more than 400 Linux workstations.
ID: 110099 · Report as offensive
Ian&Steve C.

Send message
Joined: 24 Dec 19
Posts: 228
United States
Message 110100 - Posted: 14 Oct 2022, 13:44:19 UTC

CPU temperature control should be down to the cooling solution. if you have to limit application execution/performance then there's something wrong with your cooling solution.
ID: 110100 · Report as offensive
USTL-FIL (Lille Fr)

Send message
Joined: 3 Jun 13
Posts: 12
France
Message 110102 - Posted: 14 Oct 2022, 14:35:48 UTC - in response to Message 110100.  

CPU temperature control should be down to the cooling solution. if you have to limit application execution/performance then there's something wrong with your cooling solution.

The cooling is good, the aim of the limitation is to limit the noise of the fans so as not to disturb the users near a station with boinc in operation in a public environment.
ID: 110102 · Report as offensive
Profile Keith Myers
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 17 Nov 16
Posts: 868
United States
Message 110124 - Posted: 18 Oct 2022, 1:07:56 UTC - in response to Message 110102.  

I run BoincTasks in Linux using the Wine emulator with great success. But I have never tried to run eFMer's TThrottle under WINE as I directly control my cooling solutions for both the cpus and gpus.


ID: 110124 · Report as offensive
Dr Who Fan
Avatar

Send message
Joined: 10 May 07
Posts: 1346
United States
Message 110125 - Posted: 18 Oct 2022, 2:05:06 UTC - in response to Message 110124.  

I also currenttly run one instance of BOINC on WINE and not had any success with Efmers tthrottle working.

I have tried several other Windows apps/programs with same result under WINE that cannot 'see' the temperature sensors.
ID: 110125 · Report as offensive
dasy2k1

Send message
Joined: 28 May 08
Posts: 6
United Kingdom
Message 110258 - Posted: 27 Oct 2022, 19:49:28 UTC

My solution is to set the flag in
/sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load to 1

this has the effect of stopping boinc jobs (that run at nice level 19) from throttling up the CPU (and so keeps the temp down, and the energy bill too!)
ID: 110258 · Report as offensive
USTL-FIL (Lille Fr)

Send message
Joined: 3 Jun 13
Posts: 12
France
Message 110307 - Posted: 3 Nov 2022, 14:52:48 UTC - in response to Message 110258.  

My solution is to set the flag in
/sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load to 1

this has the effect of stopping boinc jobs (that run at nice level 19) from throttling up the CPU (and so keeps the temp down, and the energy bill too!)

Thank you,
it's a good idea and could have been useful to me, but apparently this possibility has unfortunately been removed from recent kernels.
ID: 110307 · Report as offensive
computezrmle

Send message
Joined: 2 Feb 22
Posts: 81
Germany
Message 110310 - Posted: 3 Nov 2022, 15:36:26 UTC - in response to Message 110307.  

... apparently this possibility has unfortunately been removed from recent kernels.

You may need to activate the 'ondemand' governor first.
The cpupower utility tells you which governors are available.

Example run on an intel i7:
cpupower frequency-info
analyzing CPU 0:
  driver: intel_cpufreq
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 20.0 us
  hardware limits: 1.60 GHz - 3.90 GHz
  available cpufreq governors: ondemand performance schedutil
  current policy: frequency should be within 1.60 GHz and 3.90 GHz.
                  The governor "schedutil" may decide which speed to use
                  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 3.70 GHz (asserted by call to kernel)
  boost state support:
    Supported: yes
    Active: yes
    3700 MHz max turbo 4 active cores
    3800 MHz max turbo 3 active cores
    3900 MHz max turbo 2 active cores
    3900 MHz max turbo 1 active cores


To activate 'ondemand' run
cpupower frequency-set -g ondemand


/sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load should then be available again.
On my AMD Threadripper systems it appears that 'ignore_nice_load' has no effect.
Instead, the CPU frequency change is controlled via XFR.
ID: 110310 · Report as offensive

Message boards : Questions and problems : Linux automatic CPU temperature regulation

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.