After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 573472 - gnome-session causes 100% usage of one core
gnome-session causes 100% usage of one core
Status: RESOLVED NOTGNOME
Product: gnome-session
Classification: Core
Component: gnome-session
2.25.x
Other Linux
: Normal normal
: ---
Assigned To: Session Maintainers
Session Maintainers
: 574820 575727 576146 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-02-27 20:02 UTC by Michael Monreal
Modified: 2009-03-21 06:13 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26



Description Michael Monreal 2009-02-27 20:02:45 UTC
With gnome-session > 2.25.3 I constantly see xorg taling 98-100% CPU time of one core.

Version 2.25.3 still works fine, the only bigger change in the next release (2.25.5) seems to be the presence api addition. Could this cause a problem like this?
Comment 1 Joe Marcus Clarke 2009-03-07 21:07:14 UTC
I see this, too.  The problem is with the new idle-monitor code.  When the XSyncAlarms are created, X will loop firing events as fast as it can.

The problem seems to stem from creating both the Positive and Negative transitions at the same time.  In stead, if the code from http://mail.gnome.org/archives/gtk-devel-list/2007-July/msg00017.html is used where the alarms trigger each other, then the problem is not seen.  I'm working on adapting this code to gnome-session.
Comment 2 William Jon McCann 2009-03-07 21:15:29 UTC
An xorg bug.  Please see:
http://mail.gnome.org/archives/desktop-devel-list/2009-January/msg00315.html
Comment 3 Joe Marcus Clarke 2009-03-07 22:46:18 UTC
Thanks for the pointer!
Comment 4 Vincent Untz 2009-03-10 20:47:45 UTC
*** Bug 574820 has been marked as a duplicate of this bug. ***
Comment 5 Dan Winship 2009-03-10 22:24:00 UTC
shouldn't we maybe pop up a "you need a newer xorg, sorry" dialog rather than just hosing the system?
Comment 6 Michael Monreal 2009-03-11 08:38:19 UTC
(In reply to comment #5)
> shouldn't we maybe pop up a "you need a newer xorg, sorry" dialog rather than
> just hosing the system?

Don't know if this is really needed but instead it should be in the GNOME 2.26 release notes and maybe configure could check for the required xorg?

Comment 7 Markus Kanet 2009-03-11 11:30:02 UTC
I run into a similar problem and also thought that is affected to gnome-session but it looks more like on my system that gnome-desktop and gnome-settings-daemon are the problem.

If i downgrade gnome-session on GNOME 2.25.92 to a release prior to 2.25.3 (tested with 2.24.3) then the CPU stays idle for about 10-15seconds after login. After that the CPU load on one CPU core goes up to 100%. So gnome-session is not the only problem.

If i downgrade to gnome-desktop-2.24.3, gnome-settings-daemon-2.24.1, gnome-panel-2.24.3 and gnome-session-2.24.3 then the problem is gone.

There must have been a major change in either one or all of these packages that does now cause that high CPU load.

I don't like the idea to make a specific xorg-server version a dependecy to the GNOME desktop because that would make testing more difficult when using garnome on older systems that do not have a recent version of the xorg-server installed. Upgrade xorg-server with all it's dependencies might cause more problems and isn't that easy.

Isn't it possible to track down that issue and either disable that code by checking when running configure or compile different code depending on which version of xorg is installed?

At least i can confirm that upgrade to XOrg 7.4 with xorg-server-1.5.99.903 will solve that problem on my system (Slackware 12.2, BlueWhite64 12.2) also but that requires to update more then one package on systems that are not up to date, only updating xorg-server doesn't work.

Comment 8 Vincent Untz 2009-03-11 13:23:38 UTC
Jon: is there anything we can do to improve the situation here?
Comment 9 William Jon McCann 2009-03-11 14:10:16 UTC
I'd say the right thing is simply to apply the patch to any xorg that is vulnerable to this bug.  Any application that uses xsync in this way will trigger this problem.  I'm sure the slackware xorg maintainers wouldn't object to this.
Comment 10 Michael Monreal 2009-03-11 14:29:03 UTC
IMHO the problem is actually KNOWING what the problem is here. For a user, this is totally non-obvious. Sure distributions should (and most will) take care of this but some users will build 2.26 from source on, say, the last Ubuntu LTS release which probably never will be patched officially.
Comment 11 Markus Kanet 2009-03-11 15:26:23 UTC
I applied the patch from here
http://cgit.freedesktop.org/xorg/xserver/commit/?id=1f4fb0225b278d1cf4145aebeb0bdd23dc8f62d5

to xorg-1.4.2 which is part of Slackware's XOrg packages. On a first look that patch does fix the problem with GNOME 2.25.92 and gnome-session-2.25.92 without upgrade to a more recent xorg-server release.

For Slackware users i can try to forward that patch to the Slackware maintainer but since that isn't a security update i'm not sure if that will get into the update packages. If i understood comment #10 correct then Slackware would be in the same possition as Ubuntu LTS and may not get patched officially.

Comment 12 Vincent Untz 2009-03-17 18:32:28 UTC
*** Bug 575727 has been marked as a duplicate of this bug. ***
Comment 13 William Jon McCann 2009-03-21 06:13:00 UTC
*** Bug 576146 has been marked as a duplicate of this bug. ***