high cpu usage on intrepid

Bug #250876 reported by Andreas Hasenack
4
Affects Status Importance Assigned to Milestone
Landscape Client
Fix Released
Medium
Unassigned
Landscape Server
Fix Released
Medium
Unassigned
PyGTK
Fix Released
Medium
pygobject (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The client part of landscape has a very high CPU usage when run on intrepid:

5611 landscap 20 0 34080 13m 4204 R 49.7 1.3 1:06.24 landscape-monit
 5655 landscap 20 0 83940 59m 4724 R 49.7 5.9 0:07.56 landscape-packa

and most of the time it's:
 5611 landscap 20 0 34080 13m 4204 R 99.7 1.3 1:43.87 landscape-monit

Changed in landscape:
importance: Undecided → Medium
milestone: none → thames-pre-5
Changed in landscape-client:
importance: Undecided → Medium
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

It's the same as bug #203647, which was fixed in python-gobject back then for hardy:

pygobject (2.14.1-2ubuntu1) hardy; urgency=low

  * debian/patches/61_dont_use_setwakeupfd.patch:
    - don't use SetWakeupFd, it creates abnormal cpu usage in some situations

 -- Sebastien Bacher < <email address hidden>> Wed, 19 Mar 2008 22:17:53 +0100

Here is a test case:
http://launchpadlibrarian.net/12725702/testcase.py

Changed in pygtk:
status: Unknown → Confirmed
Changed in landscape-client:
status: New → Confirmed
Changed in landscape:
status: New → Confirmed
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Pushed for thames-pre-6.

Changed in landscape:
milestone: thames-pre-5 → thames-pre-6
Revision history for this message
Loïc Minier (lool) wrote :

I've merged a fix from Debian which was sent upstream already:

pygobject (2.15.1-0ubuntu2) intrepid; urgency=low

  * New patch, 61_wakeupfd-fctnl-and-read, merge back parts of patch
    61_wakeupfd-fix (named "Do not use the wakeup fd if it not initialised" in
    GNOME #481569) which still apply (setting the read end of the pipe() as
    non-blocking and actually reading bytes from it); LP: #250876;
    GNOME #481569.
  * Refresh patch 03_maintainer_mode.

 -- Loic Minier <email address hidden> Mon, 11 Aug 2008 17:28:02 +0200

Changed in pygobject:
status: New → Fix Released
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Confirmed working. After installing the new package and restarting landscape-client, its CPU usage was back to normal. The test case is also working properly.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

A new release of pygobject for Intrepid fixed this in landscape.

Changed in landscape:
status: Confirmed → Fix Released
Changed in landscape-client:
status: Confirmed → Fix Released
Changed in pygtk:
importance: Unknown → Medium
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.