You are not logged in.

#1 2011-02-13 20:39:32

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,729
Website

limit CPU threshold while compiling to limit temperature

I know I can use renice or htop to set the nice level of gcc while I compile.  Is there a way to throttle the CPU while compiling?  In other words, compile with n threads but only use 75 % of the CPU.  I have an old piece of hardware which I need to use to build a kernel and I don't want to dedicate the 3+ hours @ 100 % which heats the thing up to the red line (OLD OLD HS/Fan which isn't very efficient at cooling).  My thought is that I could limit the % CPU use to keep the temps lower.  I found cpulimit, but I would like to add something to the PKGBUILD itself.

Any tricks folks know are appreciated.

P.S.  I wasn't quite sure where this question belongs, so I took at stab at this section.

Last edited by graysky (2011-02-13 20:44:16)

Offline

#2 2011-02-13 21:23:50

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: limit CPU threshold while compiling to limit temperature

Cpufreq-utils can limit your CPU speed (and thus prevent speed and voltage switching). You can also up the treshold, in /sys somewhere, but that's merely cosmetic, I don't think you can tell an app nicely (pun not intended) to use not more than 75% of your CPU.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

Board footer

Powered by FluxBB