Top wakeups causers
Dave Jones
davej at redhat.com
Mon May 14 09:11:29 PDT 2007
On Mon, May 14, 2007 at 11:52:41AM -0400, Adam Jackson wrote:
> On Sun, 2007-05-13 at 17:30 +0300, Aaron Baff wrote:
>
> > And below all of those is Xorg, which seems to be split between
> > do_setitimer (it_real_fn) and nv_start_rc_timer (nv_kern_rc_timer)
> > functions.
>
> This is going to come up a lot, so, let's get this one out of the way.
>
> X uses setitimer() when it's actively servicing requests from clients.
> It schedules an alarm for ~20ms in the future so that it can know when a
> significant amount of time has elapsed, and therefore schedule other
> clients if they're ready. So at worst, it'd wake up 50 times a second,
> but it'll only do so when it's already busy doing work.
>
> Getting better accounting information out of X is definitely a goal, but
> right now no one's working on it. Until then you have to work backwards
> from the other wakeup events to figure out what's waking up your X
> server.
Something that you pointed me at before was the -dumbsched option, which made it
not wake up as often. I'm sure you've explained to my sieve-like brain
before, but what were the downsides of using this?
If its not feasible to have this the default, would it make sense to have
the xserver switch to it if the power source changes?
Dave
--
http://www.codemonkey.org.uk
More information about the Power
mailing list