← Back to team overview

compiz team mailing list archive

Re: [Bug 888039] Re: Gradual degradation in desktop performance.

 

Thank you Daniel,

I am installing valgrind now. I have used a profiler for another
language.  I 'll see what I can learn with google and man. On the
other hand, if I am attached to the running compiz with gdb, is there
a way to state the currently running function ? I would still like to
test my idea if only for curiosity. Suppose every 30 seconds I have
gdb output the active function. I am curious if as compiz eats more
CPU, the output function will be more likely to be the function that
is the cause.


On Sat, Jan 28, 2012 at 3:01 AM, Daniel van Vugt <vanvugt@xxxxxxxxx> wrote:
> Michael, to find the cause of high CPU usage you need a profiler, not a
> debugger.
>
> Most profilers need special code compiled in to your application, but Valgrind has a plugin Callgrind that works with any existing binary (as do all valgrind plugins):
>    http://valgrind.org/docs/manual/cl-manual.html
>
> Callgrind will give you nice sorted lists of the functions using the
> highest CPU. It is not for beginners though. Maybe later I will write a
> HOWTO on profiling compiz with callgrind so more people can give it a go
> and provide some nice rich data on compiz performance.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/888039
>
> Title:
>  Gradual degradation in desktop performance.
>
> Status in Compiz:
>  Confirmed
> Status in “compiz” package in Ubuntu:
>  Confirmed
>
> Bug description:
>  Over the span of 1-3 days I see my desktop consistently become more
>  sluggish. The functions most affected are window movement, file icon
>  movement, and sometimes window resizing. Other animations (such as
>  minimizing fades, switching desktops, expo mode) are not affected when
>  this degradation occurs. They remain smooth; however, I have let the
>  problem go on as long as to find out that eventually all desktop
>  animations/effects will degrade, it just takes a lot lot longer. I
>  find that my actual 3D gaming goes unaffected (though I have no data
>  to back that up, perhaps it does).
>
>  I have recorded the output of 'ps auxw' and have slowly watched the
>  VSZ and RSS memory columns creep upwards. A fresh compiz session will
>  see 675164 and 169860, respectively. After a day or two it will result
>  in as high as 878552 and 255664. I have attached a log output from an
>  hourly cron job (though I had suspended for a few days because of
>  travel).
>
>  After the degradation has occurred compiz will consistently use higher
>  CPU. Dragging a terminal window while watching top: before: ~10%,
>  after: ~30 percent.
>
>  This has been an issue since 11.04 for me on both my Intel i915 and
>  Nvidia (proprietary) machines (had an 8600 GT and upgraded to 560 GTX,
>  both having the same issue). However, the nvidia machine is where it
>  really hurts, _always_ happening within a day or two, while the i915
>  machine is pretty reliable overall with certain instances of
>  degradation (used to be affected just as badly in 11.04).
>
>  I will attach two videos demonstrating behavior before and after.
>  ---
>  ApportVersion: 1.23-0ubuntu4
>  Architecture: amd64
>  CheckboxSubmission: 33c9cec13de798ee31ce4ea2f2cbd4df
>  CheckboxSystem: 4ed15c40009aa6f7770f606350a390a2
>  CompizPlugins: [core,detection,composite,opengl,decor,regex,winrules,compiztoolbox,animation,grid,vpswitch,snap,place,gnomecompat,resize,move,mousepoll,imgpng,workarounds,session,expo,wall,fade,scale,unityshell]
>  DistroCodename: oneiric
>  DistroRelease: Ubuntu 11.10
>  DistroVariant: ubuntu
>  InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
>  NonfreeKernelModules: nvidia
>  Package: compiz 1:0.9.6+bzr20110929-0ubuntu5vv1
>  PackageArchitecture: all
>  ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
>  Tags:  oneiric running-unity oneiric running-unity ubuntu
>  Uname: Linux 3.0.0-12-generic x86_64
>  UnreportableReason: This is not a genuine Ubuntu package
>  UpgradeStatus: Upgraded to oneiric on 2011-10-13 (26 days ago)
>  UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/compiz/+bug/888039/+subscriptions

-- 
You received this bug notification because you are a member of compiz
packagers, which is subscribed to compiz in Ubuntu.
https://bugs.launchpad.net/bugs/888039

Title:
  Gradual degradation in desktop performance.

To manage notifications about this bug go to:
https://bugs.launchpad.net/compiz/+bug/888039/+subscriptions


References