All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Tony Lindgren <tony@atomide.com>,
	hugang@soulinfo.com, linux-kernel@vger.kernel.org, "Pallipadi,
	Venkatesh" <venkatesh.pallipadi@intel.com>,
	Jonathan Corbet <corbet@lwn.net>, Pavel Machek <pavel@ucw.cz>,
	Bernard Blackham <b-lkml@blackham.com.au>,
	Christian Hesse <mail@earthworm.de>,
	Zwane Mwaikambo <zwane@arm.linux.org.uk>
Subject: Re: [PATCH] Dynamic tick for x86 version 050610-1
Date: Mon, 20 Jun 2005 19:21:11 -0700	[thread overview]
Message-ID: <20050621022111.GA32021@muru.com> (raw)
In-Reply-To: <1119318560.18247.134.camel@gaston>

On Tue, Jun 21, 2005 at 11:49:20AM +1000, Benjamin Herrenschmidt wrote:
> On Mon, 2005-06-20 at 18:28 -0700, Tony Lindgren wrote:
> > On Sat, Jun 18, 2005 at 04:30:32PM +1000, Benjamin Herrenschmidt wrote:
> > > 
> > > > I'm try to port it powerpc, Here is a patch.
> > > > 
> > > >  Port Dynamic Tick Timer to new platform is easy. :)
> > > >   1) Find the reprogram timer interface.
> > > >   2) do a hook in the idle function.
> > > > 
> > > > That worked on my PowerBookG4 12'.
> > 
> > Cool :)
> > 
> > > Did you get a measurable gain on power consumption ?
> > > 
> > > Last time I toyed with this, I didn't.
> > 
> > Just dyntick alone probably does not do much for power savings. The
> > trick is to figure out what all can be turned off for the longer idle
> > periods. And try to make the idle periods longer by cutting down on
> > polling.
> 
> I would have expected it to actually do increase savings due to avoiding
> the cost of bringing the CPU back from deep NAP mode too often. It's
> possible that my previous experiments were bogus in fact. It would be
> very useful to have some statistics on how long we _actually_ sleep, I
> supspect things like the network stack with all it's slow timer all
> kicking at slightly different times for example are screwing us up a
> little bit.

Yeah, and I've also noticed that my laptop does not stay in C2 mode, but
actually just spins around... Halt works though. Then the x86 keyboard
driver does polling if no keyboard is attached. And I believe netfilter
caused some polling too (unverified).  And then of course any kind of
CPU meter apps keep polling...

One way to test the idle savings is to temporarily disable the timer
interrupt so the system stays in idle while measuring. That does not
help with the other devices though.

I've been thinking about implementing something that would show up the
worst pollers. Maybe then have a program called polltop? :)

Tony

  reply	other threads:[~2005-06-21  3:31 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-02  1:36 [PATCH] Dynamic tick for x86 version 050602-1 Tony Lindgren
2005-06-02  1:54 ` Zwane Mwaikambo
2005-06-02  2:09   ` Tony Lindgren
2005-06-02  8:30 ` Christian Hesse
2005-06-02 17:42   ` [PATCH] Dynamic tick for x86 version 050602-2 Tony Lindgren
2005-06-02 20:03     ` Christian Hesse
2005-06-02 20:32       ` Tony Lindgren
2005-06-03  6:08         ` Christian Hesse
2005-06-03 17:39           ` Tony Lindgren
2005-06-04 12:51             ` Christian Hesse
2005-06-10  4:03               ` Tony Lindgren
2005-06-05  4:06       ` Bernard Blackham
2005-06-10  4:05         ` Tony Lindgren
2005-06-03 22:37     ` Pavel Machek
2005-06-03 22:47       ` Pavel Machek
2005-06-10  4:17       ` Tony Lindgren
2005-06-10  9:15         ` Pavel Machek
2005-06-10 15:17           ` Tony Lindgren
2005-06-10 22:15             ` [PATCH] Dynamic tick for x86 version 050610-1 Tony Lindgren
2005-06-18  3:34               ` hugang
2005-06-18  6:30                 ` Benjamin Herrenschmidt
2005-06-21  1:28                   ` Tony Lindgren
2005-06-21  1:49                     ` Benjamin Herrenschmidt
2005-06-21  2:21                       ` Tony Lindgren [this message]
2005-07-19  6:51                   ` hugang
2005-07-19 13:51                     ` Benjamin Herrenschmidt
2005-07-25 10:11                       ` Tony Lindgren
2005-06-11 17:59           ` [PATCH] Dynamic tick for x86 version 050602-2 Kyle Moffett
2005-06-07 20:36 ` [PATCH] Dynamic tick for x86 version 050602-1 Jonathan Corbet
2005-06-10  4:18   ` Tony Lindgren

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=20050621022111.GA32021@muru.com \
    --to=tony@atomide.com \
    --cc=b-lkml@blackham.com.au \
    --cc=benh@kernel.crashing.org \
    --cc=corbet@lwn.net \
    --cc=hugang@soulinfo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mail@earthworm.de \
    --cc=pavel@ucw.cz \
    --cc=venkatesh.pallipadi@intel.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 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.