LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Elias Oltmanns <eo@nebensachen.de>
To: Theodore Tso <tytso@mit.edu>
Cc: linux-kernel@vger.kernel.org,
Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@elte.hu>
Subject: Re: [REGRESSION 2.6.28-rc2-git3] lots of extra timer interrupts costing 2W
Date: Fri, 31 Oct 2008 11:21:34 +0100 [thread overview]
Message-ID: <87mygl2hg1.fsf@denkblock.local> (raw)
In-Reply-To: <20081031031516.GA9781@mit.edu> (Theodore Tso's message of "Thu, 30 Oct 2008 23:15:16 -0400")
Theodore Tso <tytso@mit.edu> wrote:
> On Wed, Oct 29, 2008 at 10:18:10PM -0400, Theodore Ts'o wrote:
>> I've noticed that sometime between 2.6.27-git7 and 2.6.28-rc2-git3,
>
>> powertop is reporting a huge number of excess timer interrupts on my
>> x61s laptop:
>>
>> Wakeups-from-idle per second : 617.8 interval: 3.1s
>> no ACPI power usage estimate available
>>
>> Top causes for wakeups:
>> 71.3% (543.7) <interrupt> : extra timer interrupt
>> 13.5% (103.0) <kernel core> : hrtimer_start_expires (tick_sched_timer)
>> 7.2% ( 55.0) <kernel IPI> : Rescheduling interrupts
>> 1.7% ( 13.0) gnome-terminal : hrtimer_start_expires (hrtimer_wakeup)
>> 1.4% ( 10.3) <interrupt> : PS/2 keyboard/mouse/touchpad
>> 1.1% ( 8.3) <interrupt> : ahci
>> 0.4% ( 3.3) multiload-apple : hrtimer_start_expires (hrtimer_wakeup)
>> 0.3% ( 2.7) Xorg : hrtimer_start (it_real_fn)
>>
>>
>> This is costing me an extra 2 Watts or so. Does this ring a bell with
>> anyone, before I start trying to bisect this problem?
>
> I found the problem via bisection. It's commit fb02fbc1, "NOHZ:
> restart tick device from irq_enter()".
>
> After bisecting the problem, I compiled v2.6.28-rc2 (with the attached
> .config file), verified that I saw the extra 500 or so timer
> interrupts, and then reverted the commit, and the extra timer
> interrupts went away. A more careful measurement of the power drain
> difference makes it appear to be more like 0.8 watts.
Strange, I can't reproduce this problem here (tested next-20081029 and
2.6.27.4 + some commits including the one in question). However, I'm
wondering whether this is simply due to a certain config option since
extra timer interrupts doesn't even show up in my powertop output. This
is with NO_HZ=y and HIGH_RES_TIMERS=y/n. Could SMP possibly make any
difference here? It's disabled in my config.
>
> This is on an Lenovo X61s laptop. I'm not sure that simply reverting
> the commit is the right fix, but it does seem to make the extra timer
> interrupts (and the resulting decrease in average C3 residency time)
> go away.
Well, I'd be rather unhappy, for obvious reasons, if this commit was
simply reverted. But, of course, something has got to be done about it.
Regards,
Elias
next prev parent reply other threads:[~2008-10-31 10:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-30 2:18 Theodore Ts'o
2008-10-31 3:15 ` Theodore Tso
2008-10-31 10:21 ` Elias Oltmanns [this message]
2008-11-17 8:13 ` [Bug 11905] REGRESSION: lots of extra timer interrupts costing power Theodore Tso
2008-11-17 9:36 ` Frans Pop
2008-11-17 19:53 ` Theodore Tso
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=87mygl2hg1.fsf@denkblock.local \
--to=eo@nebensachen.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
--cc=tytso@mit.edu \
--subject='Re: [REGRESSION 2.6.28-rc2-git3] lots of extra timer interrupts costing 2W' \
/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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).