Bug 204948 (wakeup) - Userspace sucks (wakeups)
Summary: Userspace sucks (wakeups)
Alias: wakeup
Product: Fedora
Classification: Fedora
Component: distribution
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Jaroslav Škarvada
QA Contact:
URL: http://www.energystar.gov/index.cfm?c...
: 204949 (view as bug list)
Depends On: 201860 204725 204748 204752 204850 204858 204862 204906 204908 204936 204946 204968 halpolling 204990 205008 205064 205068 205182 205184 205449 205588 205909 205910 210019 210029 213042 213058 214756 214760 218406 227476 227487 227504 239893 239945 240073 240385 242377 242397 242398 246341 248315 249634 251534 251580 251617 251725 252127 252129 252140 252258 252352 253445 254216 267041 281001 313381 313421 335551 335591 390711 391571 394681 408131 417321 426049 426051 426968 427477 486111 512616 521952 917709
Blocks: F11PowerSaving OLPCTracker F9Target
TreeView+ depends on / blocked
Reported: 2006-09-01 16:47 UTC by David Woodhouse
Modified: 2014-07-10 15:11 UTC (History)
19 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2014-07-10 15:11:28 UTC
Type: ---

Attachments (Terms of Use)
powertop showing the improvements from Fedora 7 to Fedora 8 Test 1 (159.79 KB, image/jpeg)
2007-08-14 03:03 UTC, William Lovaton
no flags Details

Description David Woodhouse 2006-09-01 16:47:06 UTC
Our userspace sucks. It keeps waking up to poll things it really doesn't need to.
We should strive to be _entirely_ event-driven, as much as possible.

Constant wakeups will screw power consumption -- especially once we have the
kernel timer tick eliminated so we're actually waking the CPU for each userspace

Comment 1 David Woodhouse 2006-09-01 16:50:49 UTC
*** Bug 204949 has been marked as a duplicate of this bug. ***

Comment 2 Arjan van de Ven 2006-12-13 13:31:52 UTC

this systemtap script (run with "stap -v cstop.stp") reports the top 20 context
switchers very 10 seconds. With this script you don't need kernel hacks or any
tricks to check your own OS for this type of bug.

(you do need the kernel-debuginfo package installed though)

Comment 3 Bill Nottingham 2007-02-27 23:16:49 UTC
This stap script doesn't work with current kernels - even after fixing

Comment 4 Arjan van de Ven 2007-05-13 00:15:37 UTC
PowerTOP is a useful tool to work on this stuff:


Comment 5 Richard Hughes 2007-05-14 08:55:13 UTC
See bug https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=204908 also,
regarding g-p-m and DPMS state checking. I've changed g-p-m 2.18.3 (soon to be
released) to poll every 10s rather than 500ms, although this is just a hack.

Comment 6 William Lovaton 2007-08-14 03:03:32 UTC
Created attachment 161243 [details]
powertop showing the improvements from Fedora 7 to Fedora 8 Test 1

I just updated to rawhide with the latest updates as of today and wanted to
show the improvements made so far in the power consumption area.  The attached
image shows 2 powertop instances, the left one from Fedora 7 and the right one
from Fedora 8 Test 1 both running the same desktop, SELinux disabled (just for
now) and firewall up and running with a Gnome desktop with little tweaks that
differ from the defaults.

Note: I had to disable assistive technologies in F8T1 because it was causing
some wake ups (at-spi-registryd) and making X to wake up too.

Conclusion: F7 did 48.3 wps whilst F8T1 did 20.2 wps, for F7 that was the
lowest mark I ever saw.  F8 sometimes gets to score under 20.  The biggest
improvement being here the mixer_applet thing in the new version of Gnome.

The other ones are already reported but I wonder what is the kernel doing in
that "clocksource_register (clocksource_watchdog)"???  is that fixable?  maybe
it's there because my hardware is a little old: AMD Athlon(TM) XP 2000+

Can anyone spot some other problems from looking at this two screen shots??

Congratulations everyone!.

Comment 7 Alan Jenkins 2008-01-12 14:49:15 UTC
I speculated on the clocksource wakeups on the powertop related mailing list.  
<http://www.bughost.org/pipermail/power/2007-October/001080.html>.  I can make 
them go away with no ill effects (disclaimer: only tested on my hardware). 
It's a one-line change in the named function (replace init_timer with 
init_timer_deferrable).  I've not had any response though :-(.

Comment 11 Matthew Miller 2014-07-09 17:37:31 UTC
Looks like all of the bugs against this have been closed. Does userspace no longer suck? :)

In seriousness, should we keep this tracker open for future work, or close it? It's been six and a half years since there was any real activity.

Comment 12 Matthias Clasen 2014-07-10 14:50:00 UTC
Its software, do you need to ask ? It'll suck forever. However, +1 from me for closing this bug.

Comment 13 Matthew Miller 2014-07-10 15:11:28 UTC
(In reply to Matthias Clasen from comment #12)
> Its software, do you need to ask ? It'll suck forever. 

I guess given that fatalism, WORKSFORME is the most fitting resolution. :)

Note You need to log in before you can comment on or make changes to this bug.