From: Andreas Steinmetz <ast@domdv.de>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: <dglidden@illusionary.com ((Derek Glidden))>,
linux-kernel@vger.kernel.org
Subject: Re: kapm-idled no longer idling CPU?
Date: Fri, 30 Nov 2001 16:46:03 +0100 (CET) [thread overview]
Message-ID: <XFMail.20011130164603.ast@domdv.de> (raw)
In-Reply-To: <E169ndI-0003WU-00@the-village.bc.nu>
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
next prev parent reply other threads:[~2001-11-30 15:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-29 18:58 kapm-idled no longer idling CPU? Derek Glidden
2001-11-30 11:50 ` Alan Cox
2001-11-30 12:34 ` Andreas Steinmetz
2001-11-30 13:23 ` Alan Cox
2001-11-30 15:46 ` Andreas Steinmetz [this message]
2001-12-03 7:03 ` Tim Connors
-- strict thread matches above, loose matches on Subject: below --
2001-11-30 12:57 Borsenkow Andrej
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=XFMail.20011130164603.ast@domdv.de \
--to=ast@domdv.de \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=dglidden@illusionary.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.