[lkml]   [2001]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: kapm-idled no longer idling CPU?
Not really. It depends on 'how in sync' kapm-idled is running with other
processes. It's easy to monitor on the laptop as the bios changes the color of
a LED during idle calls. Quite often when the laptop is nearly fully idle (a
bit of CPU for kmix and the dhcp client, easily verified with top) there are no
idle calls. When there's idle calls in this state (0.00<load<0.1) it's always
less than 50% idle time.
Maybe taking the load average into account for going idle or introducing some
jitter around HZ for the kamp-idled sleep can help.
What may irritate other people furthermore is that if the system idles via
kapm-idled this is accounted as system cpu time instead of idle time so it does
look like the system is constantly under load when it actually does idle calls.

On 30-Nov-2001 Alan Cox wrote:
>> system_idle itself just checks, if nr_running is 1. This means that if any
>> single other process is runnable every HZ time when apm_idled checks the
>> system
>> state it won't switch to idle state even if the system is otherwise idle. I
>> do
>> see this behaviour e.g. all the time with KDE.
> Uggh - yes, that makes horrible sense. Does it behave any better if you
> check say load average for the past 15 seconds < .1 ?

Andreas Steinmetz
D.O.M. Datenverarbeitung GmbH
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:13    [W:0.066 / U:1.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site