You are not logged in.
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
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