Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Control amount of compile jobs depending on temperature
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Chris1969
n00b
n00b


Joined: 31 Dec 2017
Posts: 33
Location: switzerland

PostPosted: Fri Sep 25, 2020 10:16 am    Post subject: Control amount of compile jobs depending on temperature Reply with quote

I have since about two years the following mobo processor combination: ASUS PRIME B350-PLUS + Ryzen 5 1600 (AM4, AMD B350, ATX).

Until beginning of this summer I had in use an "exotic" definition of MAKEOPTS jobs which I found somewhere . Then suddenly I started experiencing temperatures above 95°C. I therefore did reduce the number of jobs in MAKEOPTS in order to remain below 90°C. In consequence compile times increased (for gcc e.g +25%).

Now to my question: Would it be possible to define the number of jobs in MAKEOPTS depending on the temperature of the system? Maybe someone has done this?
Back to top
View user's profile Send private message
Ionen
Veteran
Veteran


Joined: 06 Dec 2018
Posts: 1273

PostPosted: Fri Sep 25, 2020 11:54 am    Post subject: Reply with quote

Downclocking until it can't near-overheat sound like a generally safer approach (next to fixing the cooling that is, which you should.. assuming those temp readings are right anyway).
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46349
Location: 56N 3W

PostPosted: Fri Sep 25, 2020 4:49 pm    Post subject: Reply with quote

Chris1969,

MAKEOPTS is only read once per emerge run, so you cannot use it for dynamic control.
Even if you could, that's doingitwrong.

Clean the grot out of your cooling system.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6722

PostPosted: Fri Sep 25, 2020 11:13 pm    Post subject: Reply with quote

Disable the CPU's boost states. They tend not to help much anyway.
Back to top
View user's profile Send private message
Chris1969
n00b
n00b


Joined: 31 Dec 2017
Posts: 33
Location: switzerland

PostPosted: Sat Sep 26, 2020 9:17 am    Post subject: Reply with quote

Thanks for your suggestions.

I especially love the grot :lol: , I had to look it up. Thanks I will check.

How do I disable the boost states?
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6722

PostPosted: Sat Sep 26, 2020 9:46 am    Post subject: Reply with quote

Code:
echo 0 >| /sys/devices/system/cpu/cpufreq/boost


You can run `cpupower frequency-info` or just cat that file to see if it's enabled or not. That tool doesn't let you change it for some reason.
Back to top
View user's profile Send private message
s|mon
Apprentice
Apprentice


Joined: 04 Jul 2004
Posts: 157
Location: Bayern [de]

PostPosted: Sat Sep 26, 2020 10:41 am    Post subject: Reply with quote

Besides the already mentioned tips where cleaning the cooling would be number 1, you could of course check if your cooling can be improved by changing fan speeds in bios.
On recent boards/cpu one can also limit the maximum power drawn by the CPU - therefore limiting boost speed if done properly - not sure if this is an option on your board. Name would be PPT package power tracking.
Back to top
View user's profile Send private message
Chris1969
n00b
n00b


Joined: 31 Dec 2017
Posts: 33
Location: switzerland

PostPosted: Sat Sep 26, 2020 3:43 pm    Post subject: Reply with quote

Code:
cat /sys/devices/system/cpu/cpufreq/boost
0

so boost states were not enabled

I will check the grot in my cooling system and the bios; thanks again
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum