Polling gettimeofday Often, powertop report

Bug #194938 reported by Bryan Quigley
2
Affects Status Importance Assigned to Milestone
GNOME Games
Fix Released
Medium
Rhythmbox
Fix Released
Medium
Totem
Unknown
Medium
epiphany-browser (Ubuntu)
Invalid
Undecided
Unassigned
glibc (Ubuntu)
Invalid
Undecided
Unassigned
gnome-games (Ubuntu)
Fix Released
Low
Unassigned
rhythmbox (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs
totem (Ubuntu)
Fix Released
Low
Unassigned
vlc (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: totem, rhytmbox, iagno, same-gnome, glines, gnobots2, vlc

powertop reports many wakeups per second, when doing nothing.
To reproduce run application and then run powertop.

After doing strace I found that each of these is running gettimeofday alot.

Also, moving the mouse over the window causes some of these applications to call gettimeofday alot.

description: updated
description: updated
description: updated
Revision history for this message
Sebastien Bacher (seb128) wrote :

That's not really a bug nor clear that's due to those and not to a common library, not really an useful bug and lack informations on what should be changed

Revision history for this message
Bruce Cowan (bruce89-deactivatedaccount) wrote :

Must be something GNOMEy, perhaps GVFS.

Changed in epiphany-browser:
status: New → Invalid
Changed in gnome-games:
status: New → Invalid
Changed in rhythmbox:
status: New → Invalid
Changed in totem:
status: New → Invalid
Revision history for this message
Bruce Cowan (bruce89-deactivatedaccount) wrote :

On investigation, moving the mouse around in any GTK+ program causes gettimeofday to be called a lot.

Changed in vlc:
status: New → Invalid
Revision history for this message
Pedro Villavicencio (pedro) wrote :

May you tell us what should be changed?

Changed in gtk+2.0:
status: New → Incomplete
Revision history for this message
Bruce Cowan (bruce89-deactivatedaccount) wrote :

I'm not sure really, this probably is a bug in glib in fact.

Revision history for this message
Bruce Cowan (bruce89-deactivatedaccount) wrote :

Sorry, gettimeofday results in EAGAIN, probably either a glibc or kernel issue.

Revision history for this message
Bruce Cowan (bruce89-deactivatedaccount) wrote :

After my brother doing a lot of ferreting, this is normal behaviour.

Changed in glibc:
status: Incomplete → Invalid
Revision history for this message
Bryan Quigley (bryanquigley) wrote :

Totem waking up appears to be caused by it checking "/home/username/.recently-used.xbel" several times every second.

Changed in totem:
status: Invalid → New
Revision history for this message
Bryan Quigley (bryanquigley) wrote :

This may be considered normal behavior right now, but this greatly can reduce battery life/LTSP functionality and is not desirable functionality.

Changed in gnome-games:
status: Invalid → New
Changed in rhythmbox:
status: Invalid → New
Revision history for this message
Sebastien Bacher (seb128) wrote :

currently this bug is not really useful, softwares need to listen to events and disk changes, that's not really a bug. You should rather take this discussion to a mailing list and discuss what calls are normal behaviour and which ones could be reduced

Changed in gnome-games:
status: New → Invalid
Changed in totem:
status: New → Invalid
Changed in rhythmbox:
status: New → Invalid
Revision history for this message
Bruce Cowan (bruce89-deactivatedaccount) wrote :

Looking at PowerTOP, I see a lot of wakeups (~500) caused by "Rescheduling interrupts". Would this be caused by this, or is this a separate bug.

Revision history for this message
Bryan Quigley (bryanquigley) wrote :

Bruce
I believe that would be a bug in the kernel on a multiprocessor system. Doing a search for it comes up with a discussion about it on the lkml that get's over my head rather quickly.

I won't be pursuing this bug anymore for a while (school work), if anyone else wants to take this please do. Thanks.

Revision history for this message
Bruce Cowan (bruce89-deactivatedaccount) wrote :

That's strange, I saw the same thread (I think).

I suspect this is really bug #177895.

Revision history for this message
Bryan Quigley (bryanquigley) wrote :

Nope, that's the bug you are talking about. Unfortunately, when you run powertop that bug takes precedence as it is MUCH worse than this bug.

Revision history for this message
Bruce Cowan (bruce89-deactivatedaccount) wrote :

There is something wrong with Epiphany, it polls gettimeofday very often, which causes it to appear in PowerTOP under "futex_wait (hrtimer_wakeup)".

Revision history for this message
Bruce Cowan (bruce89-deactivatedaccount) wrote :

Sorry for the spam, but the screenshot on http://www.lesswatts.org/projects/powertop/ shows firefox-bin causing this. I will file a new bug in xr1.9.

Changed in totem:
status: Invalid → Confirmed
Changed in rhythmbox:
status: Invalid → Confirmed
Changed in gnome-games:
status: Invalid → Confirmed
Changed in gnome-games:
status: Unknown → New
Changed in rhythmbox:
status: Unknown → Confirmed
Changed in totem:
status: Unknown → Invalid
Revision history for this message
Sebastien Bacher (seb128) wrote :

could you guys move those discussions to a mailing list rather? it seems that you don't know how to interpret those number and just see bugs everywhere, that's not really constructive comments in a bug report

Changed in rhythmbox:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: Confirmed → Triaged
Changed in gnome-games:
importance: Undecided → Low
status: Confirmed → Triaged
Revision history for this message
Sebastien Bacher (seb128) wrote :

the totem upstream bug has been closed, closing the ubuntu bug now

Changed in totem:
importance: Undecided → Low
status: Confirmed → Fix Released
Changed in gnome-games:
status: New → Fix Released
Revision history for this message
Pedro Villavicencio (pedro) wrote :

gnome-games upstream bug was fixed.

Changed in gnome-games:
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-games - 1:2.25.5-0ubuntu1

---------------
gnome-games (1:2.25.5-0ubuntu1) jaunty; urgency=low

  * New upstream release (LP: #298331, #280755, #237785, #194938, #189734,
    #262932)
  * debian/patches/01_lpi.patch:
    - adapt to new upstream version
    - remove old LPI implementation for gnothello (depending on libgnomeui)
      to use GtkBuilder
    - add Launchpad integration for glchess (using glade) and gnome-sudoku (using
      GtkBuilder) (LP: #155269)
  * debian/patches/02_desktop-path.patch: adapt to new .desktop upstream version
  * debian/patches/70_autotools.patch:
   - run autoreconf in jaunty (libtool 2.2.6) to update the configure and a
     bunch of files
  * debian/gnome-cards-data.install: take the whole gnome-games-common directory as
    being only used for card games. theme-install.ini is now in gnome-cards-data
    package.
  * debian/control.in:
   - remove libgnome* dependencies
   - bump libgtk2.0-dev prereq to 2.14.0
   - add python-launchpad-integration dependency to satisfy glchess and
     gnome-soduko python games LPI
   - regenerate debian/control

 -- Didier Roche <email address hidden> Wed, 21 Jan 2009 21:44:02 +0100

Changed in gnome-games:
status: Fix Committed → Fix Released
Changed in rhythmbox:
importance: Unknown → Medium
Changed in totem:
importance: Unknown → Medium
status: Invalid → Unknown
Changed in gnome-games:
importance: Unknown → Medium
Changed in rhythmbox (Ubuntu):
status: Triaged → Fix Released
Changed in rhythmbox:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.