← Back to team overview

tieto team mailing list archive

[Bug 803943] Re: compiz consuming a lot of cpu

 

Okay, so I tried messing around with some options, and here's something
that worked for me (on fglrx driver):

- The problem goes away when I turn off Sync to VBlank (ccsm, OpenGL
section).  I don't remember having the high CPU usage while idle, but I
did have the usage spikes while dragging windows.  On my desktop (Radeon
2600XT), and my laptop (Radeon 4670), turning off Sync to VBlank dropped
compiz's CPU usage while dragging windows from 25-70% to around 3-9%.

I found the following workaround to be effective for me on both my desktop and laptop to both get rid of the tearing, and :  
(requires proprietary ATi drivers.)
1. Turn off Sync to VBlank in ccsm.
2. Open up the Catalyst control center, (command:  amdcccle)
3.  Turn TearFree Desktop on  (it's under Display Options)
4.  Change the "Wait for vertical refresh" setting to "On, unless application specifies."  (I had issues with compiz starting up, and changing that fixed it.)

The result will be:  compiz running with acceptable CPU usage and no
tearing.  The only side effect I've noticed is that sometimes while
moving windows very rapidly, the cursor will jump and the little hand
will become separated from the window it is dragging.

-- 
You received this bug notification because you are a member of Tieto,
which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/803943

Title:
  compiz consuming a lot of cpu

Status in Compiz:
  Confirmed
Status in Compiz Core:
  Confirmed
Status in Unity:
  Confirmed
Status in “compiz” package in Ubuntu:
  Confirmed
Status in “unity” package in Ubuntu:
  Confirmed

Bug description:
  This problem is exclusive to unity (when running compiz with gnome-
  panel, this doesn't happen).

  1. Close all windows opened, if any
  2. Open a terminal and run 'top'
  3. Notice that compiz is consuming a lot of CPU time (although there is nothing special running). In my case, it's consuming about 13% when idle.
  4. Unmaximize the terminal window, if maximized, and start moving the window slowly
  5. Notice that compiz is now consuming much more CPU than before (in my case, arround 50%).
  6. Open a video.
  7. Notice that compiz consume much more CPU than idle (about 25% in my case), although I'm not doing anything related to window management.
  8. (optional) Install the gnome-panel package and choose "GNOME classic" in login screen. Start compiz with "compiz --replace" and follow the steps from 1 to 7. Notice that the CPU consuming is much lower (in my case, 1% when idle, 25% when moving the window and 9% with the video).

  ProblemType: Bug
  DistroRelease: Ubuntu 11.10
  Package: unity 4.0.1-0ubuntu2 [modified: usr/bin/unity-preferences usr/share/applications/unity-preferences.desktop]
  ProcVersionSignature: Ubuntu 3.0-2.3-generic 3.0.0-rc4
  Uname: Linux 3.0-2-generic i686
  Architecture: i386
  CompizPlugins: [core,bailer,detection,composite,opengl,compiztoolbox,decor,vpswitch,imgpng,resize,snap,grid,regex,move,gnomecompat,mousepoll,animation,unitydialog,wall,workarounds,place,expo,ezoom,session,staticswitcher,fade,scale]
  Date: Thu Jun 30 11:54:20 2011
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha i386 (20110610)
  ProcEnviron:
   LANGUAGE=pt_BR:en
   LANG=pt_BR.UTF-8
   SHELL=/bin/bash
  SourcePackage: unity
  UpgradeStatus: No upgrade log present (probably fresh install)

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