On 7/8/06, Etaoin Shrdlu <[EMAIL PROTECTED]> wrote:
The problem is that some very CPU-consuming apps, even if started with
the lowest priority (eg, nice -n 19), still eat up 100% CPU (with
subsequent overheating, fan start, throttling, etc.) if the system is
not busy and has nothing else to do. What I'd like to know is whether it
is possible to impose such a CPU percentage usage limit.

Well, I would first upgrade my cooling fans so the processor couldn't
overheat! :-)

But you could also enable "CPU freqency scaling" in the kernel, with
the ondemand governor, and use the various settings in
/sys/devices/system/cpu/cpu0/cpufreq to control the clock speed and
behavior of the system.  You can use scaling_max_freq to specify the
maximum frequency of the processor so that it will not overheat or
throttle, no matter what the load is, and the
ondemand/ignore_nice_load setting will tell the governor not to
increase the clock speed for niced processes.

-Richard
--
[email protected] mailing list

Reply via email to