This bug makes it particularly painful to use Google Chrome/Chromium as 
reported here:
http://code.google.com/p/chromium/issues/detail?id=98200

One easy test case:
Enable the compiz benchmark plugin (compiz-plugins-extra)

Open google chrome with two tabs, one blank the other one pointing to:
http://www.lri.fr/~kn/test.html (this is a blank page with a bit of javascript 
that changes the title of the page every two seconds).
right click on the tab with the javascript code and choose pin tab. Now bring 
the other, non pinned tab in front. After two seconds.
the pinned tab starts glowing to notify of the title change in the background 
tab. While the background tab is glowing, one can see
1) compiz renders at 60 FPS, burning between 15% and 20% CPU (depending on the 
machine I tested on).
2) strace of compiz shows that it is polling the X server socket at a very high 
rate (see linked bugreport).

I could confirm this on precise, both on my laptop and desktop, both Intel 
graphic cards.
Disabling V-sync does not help.
Also this does not happen with compiz launched alone.

If compiz is launched alone (just X, xterm, compiz and google-chrome),
then compiz stays at a moderate 11FPS when the tab is glowing.


** Bug watch added: code.google.com/p/chromium/issues #98200
   http://code.google.com/p/chromium/issues/detail?id=98200

-- 
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

-- 
Mailing list: https://launchpad.net/~tieto
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~tieto
More help   : https://help.launchpad.net/ListHelp

Reply via email to