Throttle the CPU when the system is idle

Erich Dollansky oceanare at pacific.net.sg
Mon Jan 21 07:34:53 PST 2008


Hi,

Andreas Davour wrote:
> On Mon, 21 Jan 2008, Wojciech Puchar wrote:
> 
>>>
>>> I have toyed a bit with the dev.cpu.0.freq sysctl setting, and tried 
>>> to lower it automatically when the system load goes down. For some 
>>> reason it don't seem to work, even though the script works for simple 
>>> debug output.
>>>
>>> Anyone have tried to do something similar?
>>
>> no but anyway - freebsd halts CPU when unused, even at full frequency 
>> it uses very little power wne unused.
> 
> Really? Good to know. I was wondering if I could make this laptop of 
> mine a bit cooler, but then I guess not.

I also believe that the CPU is actually halted when idle but using 
powerd brings the temperatures on my machine still down. As powerd can 
be adjusted in which interval it adjusts the CPU frequency, short tasks 
run actually at the minimum frequency if the CPU was idle.

The negative side effect is, that a click takes some time before the 
machine really starts to react if the expected action results in more 
computing.

Erich


More information about the freebsd-questions mailing list