Home > Ubuntu > Leaky Unity in Oneiric

Leaky Unity in Oneiric

I monitored the top 5 processes showing the worst cumulative CPU time on my main desktop running Oneiric (32bit):

Results: 200MB leaked in less than 36 hours by compiz/unity with an unexpected CPU load even when totally idle for several hours in a row.

I initially wanted to track dbus-daemon sometimes taking a full core at 100% for several minutes several times a day, but it didn’t happen in this interval.

unity-service-panel seems to be leaking too, but not much in comparison. I’ll keep an eye on it.

I tried the same thing on another desktop, x64 this time, the leak is even worse, ~150MB in 12hours, and 7% CPU (it’s a quad-core @2.66GHz)

(compiz 1:0.9.4+bzr20110606-0ubuntu6, unity 4.2.0-0ubuntu4)

EDIT: Just upgraded to compiz 1: / unity 4.2.0-0ubuntu5, *DON’T*, it’s far worse. It crashed after 2h, and repeatedly froze at 100% cpu inside libgl (nvidia).

Tags: ,
  1. July 18, 2011 at 22:23

    Why Unity is written in C++? Couldn’t it be Vala, like Unity in 10.10?

  2. Arpad Borsos
    July 19, 2011 at 00:17

    Yes, it is really bad with natty as well. I need to log-out every day or so, it just eats up my memory and gets more sluggish every hour.

  3. jerome siriel
    July 19, 2011 at 07:06

    An other bad side effect seen when using AisleRiot (card playing): after a while, grabbing card and drag/drop is quite impossible, the mouse handle is lost or card are wrongly grabbed while dragging

  4. Franck
    July 19, 2011 at 10:08

    Latest unity report says several (5) memory leaks have been fixed recently (http://ubuntu-news.org/2011/07/13/run-ocelot-run-unity-report-for-13-july/). Maybe this problem has been targeted ?

    • fta
      July 19, 2011 at 15:00

      nope, it’s even worse. see the update of my post.

  5. July 19, 2011 at 13:49

    What did you use to collect information and produce these shiny graphs?

    What application indicators do you have installed? I’ve started noticing leaks after I installed indicator-multiload from a PPA; it turned out to be a known bug, and it got fixed a couple of months ago.

  6. July 21, 2011 at 23:25

    Thanks for this article. Your memory usage seems to be quite low compared to the perpetual beta called 11.04 “Final”. After some time, Compiz uses up to 7 Gib of memory, I had to expand my swap so I could work at least some time. Then I have to log out and in again to work again for some time.

    The Ubuntu team should get rid of these leaks in compiz as they make systems unusable! There are bug reports since the alpha stage of 11.04 on this in Launchpad, but nobody is obviously interested!

  7. Tim
    July 26, 2011 at 05:14

    @egalf the unity team is very interested in this.

    My primary task right now is finding and fixing these memory leaks. I have fixed a number in the last few days, and still going.

  8. October 22, 2011 at 14:41

    Good analysis, what tool did you use to output your graphs? RC

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: