From: "Theodore Ts'o" <tytso@mit.edu>
To: Dominik Brodowski <linux@dominikbrodowski.net>,
Con Kolivas <kernel@kolivas.org>,
linux kernel mailing list <linux-kernel@vger.kernel.org>,
Daniel Petrini <d.pensator@gmail.com>,
Tony Lindgren <tony@atomide.com>,
vatsa@in.ibm.com, ck list <ck@vds.kolivas.org>,
Pavel Machek <pavel@ucw.cz>, Adam Belay <abelay@novell.com>,
Zwane Mwaikambo <zwane@arm.linux.org.uk>
Subject: Re: [PATCH] i386 No Idle HZ aka dynticks 051221
Date: Mon, 26 Dec 2005 19:33:49 -0500 [thread overview]
Message-ID: <20051227003348.GA7951@thunk.org> (raw)
In-Reply-To: <20051226221942.GA16837@dominikbrodowski.de>
On Mon, Dec 26, 2005 at 11:19:43PM +0100, Dominik Brodowski wrote:
> Hi,
>
> On Sun, Dec 25, 2005 at 09:55:26PM -0500, Theodore Ts'o wrote:
> > With dyntick enabled, the laptop never enters the C4 state, but
> > instead bounces back and forth between C2 and C3 (and I notice that we
> > never enter C1 state, even when the CPU is completely pegged, but
> > that's true with or without dyntick).
>
> Could you try out this patch on top of it? It also adds some debug output to
> /proc/acpi/processor/CPU0/power which I'd be interested in during normal
> usage on your notebook.
Sure! Before I tried your patch, I first tried commenting out the
fast demotion test, as you had suggested, but that had essentially no
effect.
The patch which you sent does seem to help. Now with dynticks
enabled, my T40p is now entering C4, and although I haven't done a
careful controlled power test (that takes more time than I had at the
time), I can say that in maximal power saving configuration (USB and
sound drivers disabled and unloaded, network ifconfig'ed down,
laptop_mode enabled, screen brightness turned all the way down, etc.)
the minimal power utilization went from approximately 9900 mW/hr
(dynticks disabled) to approximately 9500 mW/hr (dynticks enabled).
If I could keep the system at 9500 mW/hr continuously, that would
translate to approximately 7.5 hours on the extended battery, which
wouldn't be bad; unfortunately this doesn't take into account random
things like cron waking up and driving the power utilization up, and
it's not fair to do a power test when the laptop is not doing anything
at all. A much more interesting number would be with my entire
mailbox in cache, how long could I read and respond to email while on
battery and with minimal disk usage.
Here's the status of /proc/acpi/processor/CPU/power after a number of
tests, with and without dynticks enabled:
<tytso@think> {/home/tytso}, level 3
515% cat /proc/acpi/processor/CPU/power
active state: C4
max_cstate: C8
bus master activity: 68890a90
promotion: 00002463
demotion: 00000621
bm_demotion: 00019522
fastpath_demotion: 00000214
fastpath: 00004495
sfastpath: 00001775
kickback: 00012525
states:
C1: type[C1] promotion[C2] demotion[--] latency[001] usage[00000010] time[00000000000000000000]
C2: type[C2] promotion[C3] demotion[C1] latency[001] usage[00002129] time[00000000000036902671]
C3: type[C3] promotion[C4] demotion[C2] latency[085] usage[00000430] time[00000000000003215582]
*C4: type[C3] promotion[--] demotion[C3] latency[185] usage[00001486] time[00000000000036966581]
BTW, I noticed this time around at least on my T40p, when I go from on
to off AC mains, and C4 disappears/appears, all of the ACPI C states
usage/time counters reset; however, the promotion/demotion/
bm_demotion/fast_demotion/fastpath/sfastpath/kickback counters do
_not_ reset. Probably not a serious issue, but I thought I should
mention it in case the numbers looked inconsistent.
One other strange thing happened I noticed while testing your patch.
One of the times when I was switching between on and off battery
power, I ended up in a wierd state where I was on AC mains, but the
bus master activity was reading something like fffffffe, and the
asterick by the last active C state completely disappeared, presumably
because the system wasn't entering sleep state at all. (And I from
the OS level, I couldn't see any reason for this behavior; the disk
wasn't active, and as near as I could tell the system was completely
idle.) Scary, but I was only able to reproduce it once or twice, and
the only times I saw it was when I was on AC power, so if in fact I
was drawing extra power, the only thing that would have noticed would
be the heatsink fan....
I'll keep an eye on it, but for now, your patch definitely seems to be
helpful. I'll keep using it and see what else I might find.
Thanks, regards,
- Ted
prev parent reply other threads:[~2005-12-27 0:33 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-20 16:10 [PATCH] i386 No Idle HZ aka dynticks 051221 Con Kolivas
2005-12-20 17:27 ` Jan De Luyck
2005-12-20 19:39 ` Daniel Petrini
2005-12-20 20:46 ` Jan De Luyck
2005-12-25 17:16 ` Theodore Ts'o
2005-12-26 2:55 ` Theodore Ts'o
2005-12-26 18:47 ` Matthew Garrett
2005-12-26 18:56 ` Theodore Ts'o
2005-12-26 20:03 ` Dominik Brodowski
2005-12-26 20:38 ` Pavel Machek
2005-12-26 22:52 ` Theodore Ts'o
2005-12-26 23:27 ` Pavel Machek
2005-12-27 14:03 ` Pavel Machek
2005-12-27 14:22 ` C4 strangeness [was Re: [PATCH] i386 No Idle HZ aka dynticks 051221] Pavel Machek
2005-12-27 15:33 ` C4 non-strangeness [was: " Dominik Brodowski
2005-12-27 16:13 ` Pavel Machek
2005-12-26 22:19 ` [PATCH] i386 No Idle HZ aka dynticks 051221 Dominik Brodowski
2005-12-27 0:33 ` Theodore Ts'o [this message]
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=20051227003348.GA7951@thunk.org \
--to=tytso@mit.edu \
--cc=abelay@novell.com \
--cc=ck@vds.kolivas.org \
--cc=d.pensator@gmail.com \
--cc=kernel@kolivas.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@dominikbrodowski.net \
--cc=pavel@ucw.cz \
--cc=tony@atomide.com \
--cc=vatsa@in.ibm.com \
--cc=zwane@arm.linux.org.uk \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox