public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Regression (bisected): Lots of wakeups when using battery
@ 2010-07-30 21:45 Jaime Velasco Juan
  2010-07-31  4:01 ` Mike Galbraith
  0 siblings, 1 reply; 2+ messages in thread
From: Jaime Velasco Juan @ 2010-07-30 21:45 UTC (permalink / raw)
  To: efault, a.p.zijlstra, tglx, linux-kernel

Hi, testing 2.6.35-rc5 I noticed that when my laptop is on battery,
there are bursts of wakeups (they seem random, but usually happens once
each 5 sec. or so; they cause some audible noise). If the laptop is plugged
it behaves well. In single user mode, there are usually 2 wakeups/sec with
the system idle, but on battery an with the bug, it goes to more than 100 w/s.

Bisection points to:

commit 3310d4d38fbc514e7b18bd3b1eea8effdd63b5aa
Author: Peter Zijlstra <peterz@infradead.org>
Date:   Thu Jun 17 18:02:37 2010 +0200

    nohz: Fix nohz ratelimit
    
    Chris Wedgwood reports that 39c0cbe (sched: Rate-limit nohz) causes a
    serial console regression, unresponsiveness, and indeed it does. The
    reason is that the nohz code is skipped even when the tick was already
    stopped before the nohz_ratelimit(cpu) condition changed.
    
    Move the nohz_ratelimit() check to the other conditions which prevent
    long idle sleeps.

Reverting said commit seems to fix the issue.

Regards

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Regression (bisected): Lots of wakeups when using battery
  2010-07-30 21:45 Regression (bisected): Lots of wakeups when using battery Jaime Velasco Juan
@ 2010-07-31  4:01 ` Mike Galbraith
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Galbraith @ 2010-07-31  4:01 UTC (permalink / raw)
  To: Jaime Velasco Juan; +Cc: a.p.zijlstra, linux-kernel, Thomas Gleixner

(corrects cc)

On Fri, 2010-07-30 at 22:45 +0100, Jaime Velasco Juan wrote:
> Hi, testing 2.6.35-rc5 I noticed that when my laptop is on battery,
> there are bursts of wakeups (they seem random, but usually happens once
> each 5 sec. or so; they cause some audible noise). If the laptop is plugged
> it behaves well. In single user mode, there are usually 2 wakeups/sec with
> the system idle, but on battery an with the bug, it goes to more than 100 w/s.
> 
> Bisection points to:
> 
> commit 3310d4d38fbc514e7b18bd3b1eea8effdd63b5aa
> Author: Peter Zijlstra <peterz@infradead.org>
> Date:   Thu Jun 17 18:02:37 2010 +0200
> 
>     nohz: Fix nohz ratelimit
>     
>     Chris Wedgwood reports that 39c0cbe (sched: Rate-limit nohz) causes a
>     serial console regression, unresponsiveness, and indeed it does. The
>     reason is that the nohz code is skipped even when the tick was already
>     stopped before the nohz_ratelimit(cpu) condition changed.
>     
>     Move the nohz_ratelimit() check to the other conditions which prevent
>     long idle sleeps.
> 
> Reverting said commit seems to fix the issue.

And if you revert that, using a serial console becomes.. unpleasant.

The whole ratelimit nohz thing has been dropped for now.  It's a nice
little optimization for high frequency switchers on an underutilized
box, but has caused more irritation than it's worth.

	-Mike


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-07-31  4:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-30 21:45 Regression (bisected): Lots of wakeups when using battery Jaime Velasco Juan
2010-07-31  4:01 ` Mike Galbraith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox