Mobile/Powersaving/Wakeups

From MozillaWiki
< Mobile‎ | Powersaving
Revision as of 20:30, 28 May 2010 by Azakai (talk | contribs) (Created page with '= Overview = 'Wakeups' are instances where a thread enters activity. Each such wakeup stops the CPU from sleeping. Several short wakeups are much worse than a single long wakeup…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview

'Wakeups' are instances where a thread enters activity. Each such wakeup stops the CPU from sleeping. Several short wakeups are much worse than a single long wakeup, because each wakeup will prevent sleeping for a short time afterwards, and sleeping can save a lot of power (see powertop docs). So avoiding wakeups is important, and if they are unavoidable then 'clumping' them together is preferable to scattering them at semi-random times.

Some Wakeups of Note

  • Animated images timers remain when unneeded, can cause plenty of wakeups
  • nsUITimerCallback (1/5 seconds)
  • nsIdleService::IdleTimerCallback (~1/5 seconds)
  • xpcom/reflect/xptcall/src/md/unix/xptcstubs_gcc_x86_unix.cpp:101 - likely some JS callbacks

Debugging/Finding Wakeups

Mobile/Powersaving/Wakeups/Debugging