[Bug 309796] New: GNOME mixer_applet2 prevents CPU from going idle
https://bugzilla.novell.com/show_bug.cgi?id=309796 Summary: GNOME mixer_applet2 prevents CPU from going idle Product: openSUSE 10.3 Version: Beta 3 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Mobile Devices AssignedTo: behlert@novell.com ReportedBy: pbaudis@novell.com QAContact: qa@suse.de Found By: --- mixer_applet2 of GNOME keeps polling the CPU and prevents it from idling, which has serious power management impact. powertop shows it as the second top offender: 16.6% ( 16.0) mixer_applet2 : schedule_timeout (process_timeout) and true enough, tracing it shows gettimeofday({1189591286, 245694}, NULL) = 0 poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, events=POLLIN|POLLPRI}, {fd=10, events=POLLIN|POLLPRI}, {fd=11, events=POLLIN|POLLPRI}, {fd=12, events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POLLPRI}, {fd=16, events=POLLIN|POLLPRI}], 10, 2) = 0 gettimeofday({1189591286, 252509}, NULL) = 0 read(18, 0xbfc748a0, 72) = -1 EAGAIN (Resource temporarily unavailable) read(3, 0x806f9a4, 4096) = -1 EAGAIN (Resource temporarily unavailable) looping. The poll() has timeout of 10ms, so this in theory loops as often as 100x per second! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=309796 Stefan Behlert <behlert@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fseidel@novell.com, behlert@novell.com, | |trenn@novell.com AssignedTo|behlert@novell.com |bnc-team-gnome@forge.provo.novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=309796#c1 Thomas Renninger <trenn@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tiwai@novell.com --- Comment #1 from Thomas Renninger <trenn@novell.com> 2007-09-13 13:42:29 MST --- Mobile team cannot do much here IMO. Adding Takashi, but he is also not in charge of that, we probably need a GNOME developer -> adding gnome maintainers. I darkly can remember when Adrian van de Ven (powertop author) gave a talk a year ago that the mixer applet was one of the offenders of keeping CPU busy and he fixed it. Hmm, a year ago is a lot time, but maybe we need just a version updated (or if too late, just compare latest sources). Increasing severity, this "should" be easy to fix. According to Takashi, this file does not need to actively be polled, but it can be waited for a event using select, can a gnome guy fix this up please. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=309796 Thomas Renninger <trenn@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Normal |Critical -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=309796#c2 Federico Mena Quintero <federico@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |federico@novell.com URL| |http://bugzilla.gnome.org/show_bug.cgi?id=370937 --- Comment #2 from Federico Mena Quintero <federico@novell.com> 2007-09-13 14:15:09 MST --- Upstream bug: http://bugzilla.gnome.org/show_bug.cgi?id=370937 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=309796#c3 Federico Mena Quintero <federico@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-gnome@forge.provo.novell.com |federico@novell.com Status|NEW |ASSIGNED --- Comment #3 from Federico Mena Quintero <federico@novell.com> 2007-09-13 14:15:26 MST --- I'll take care of this. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=309796#c4 --- Comment #4 from Federico Mena Quintero <federico@novell.com> 2007-09-13 19:38:49 MST --- Created an attachment (id=164022) --> (https://bugzilla.novell.com/attachment.cgi?id=164022) gnome-applets-309796-mixer-applet-reduce-wakeups.diff This is not the best fix possible, but it reduces wakeups to 1 per second. The upstream bug has the complete fix (which adds support for GStreamer/ALSA notifications instead of polling), but it is still under discussion. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=309796#c5 Federico Mena Quintero <federico@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #5 from Federico Mena Quintero <federico@novell.com> 2007-09-13 19:45:01 MST --- Submitted for 10.3 to autobuild. * Thu Sep 13 2007 - federico@novell.com - Added gnome-applets-309796-mixer-applet-reduce-wakeups.diff to fix https://bugzilla.novell.com/show_bug.cgi?id=309796 - the mixer applet would wake up 10 times per second to poll the volume on the sound card. This reduces polling to once per second, and helps reduce power consumption on mobile processors. A complete fix to use GStreamer/ALSA notifications instead of polling will be available in the future. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=309796 JP Rosevear <jpr@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |should_go_upstream -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com