Compiz using large amounts of CPU when running Chrome

Bug #863192 reported by Marcus Sharpe on 2011-09-30
76
This bug affects 15 people
Affects Status Importance Assigned to Milestone
compiz (Ubuntu)
Low
Unassigned

Bug Description

Description: Ubuntu oneiric (development branch)
Release: 11.10

As of the more recent Google Chrome beta and dev channel releases, Chrome, compiz and Xorg will sporadically use large amounts of CPU up. The problem only manifests itself in compiz and Xorg when it appears in Chrome, so one would suspect it's something Chrome is doing, but maybe compiz could be more resilient.

If it is a Chrome problem, it would be nice if I could squeeze some debugging out of compiz to prove this. Unfortunately, it appears to be non-deterministic, so I can't provide any steps to reproduce.

For reference, here's the output of top:

  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
 4470 xxxxxxxx 20 0 1152m 78m 36m R 42 1.6 8:33.02 chrome
 2943 xxxxxxxx 20 0 864m 324m 65m R 34 6.5 16:31.23 compiz
 2120 root 20 0 411m 203m 42m S 26 4.1 9:13.03 Xorg

Let me know if you need me to provide any more info.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: compiz 1:0.9.6+bzr20110929-0ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-12.19-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
NonfreeKernelModules: nvidia
.proc.driver.nvidia.gpus.0: Error: [Errno 21] Is a directory: '/proc/driver/nvidia/gpus/0'
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86_64 Kernel Module 280.13 Wed Jul 27 16:53:56 PDT 2011
 GCC version: gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
.tmp.unity.support.test.0:

ApportVersion: 1.23-0ubuntu2
Architecture: amd64
CompizPlugins: [core,bailer,detection,composite,opengl,decor,grid,move,place,gnomecompat,session,mousepoll,compiztoolbox,wall,vpswitch,snap,regex,resize,imgpng,animation,workarounds,expo,ezoom,staticswitcher,fade,scale,unityshell]
CompositorRunning: compiz
Date: Fri Sep 30 12:01:12 2011
DistUpgraded: Fresh install
DistroCodename: oneiric
DistroVariant: ubuntu
DkmsStatus:
 nvidia-current, 280.13, 3.0.0-11-generic, x86_64: installed
 nvidia-current, 280.13, 3.0.0-12-generic, x86_64: installed
 vboxhost, 4.1.2, 3.0.0-12-generic, x86_64: installed
GraphicsCard:
 nVidia Corporation G71 [Quadro FX 1500] [10de:029e] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: nVidia Corporation Device [10de:032c]
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20110921.2)
MachineType: Sun Microsystems Ultra20 M2
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.0.0-12-generic root=UUID=3998efb6-0b03-4533-9f64-971be98bb454 ro quiet splash vt.handoff=7
SourcePackage: compiz
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 11/24/2008
dmi.bios.vendor: Sun Microsystems
dmi.bios.version: 1.61.0
dmi.board.name: Ultra20 M2
dmi.board.vendor: Sun Microsystems
dmi.board.version: 1.61.0
dmi.chassis.type: 17
dmi.chassis.vendor: Sun Microsystems
dmi.modalias: dmi:bvnSunMicrosystems:bvr1.61.0:bd11/24/2008:svnSunMicrosystems:pnUltra20M2:pvr1.61.0:rvnSunMicrosystems:rnUltra20M2:rvr1.61.0:cvnSunMicrosystems:ct17:cvr:
dmi.product.name: Ultra20 M2
dmi.product.version: 1.61.0
dmi.sys.vendor: Sun Microsystems
version.compiz: compiz 1:0.9.6+bzr20110929-0ubuntu1
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.26-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 7.11-0ubuntu3
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 7.11-0ubuntu3
version.nvidia-graphics-drivers: nvidia-graphics-drivers N/A
version.xserver-xorg: xserver-xorg 1:7.6+7ubuntu7
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.6.0-1ubuntu13
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.99~git20110811.g93fc084-0ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.15.901-1ubuntu2
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20110411+8378443-1

Marcus Sharpe (marcus-sharpe) wrote :
Alex Launi (alexlauni) on 2011-10-03
Changed in compiz (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Stepan Roucka (rouckas) wrote :

On my machine, this problem seems to be related to chromium app tabs - when the app tab is blinking with notification, the cpu usage by compiz goes to ~ 50 %. Otherwise it is < 10 %.
17.0.963.79 (Developer Build 125985 Linux) Ubuntu 11.10 with Unity

Jorge García (jorgegarciar) wrote :

This is happening in 12.04 too.

Jorge García (jorgegarciar) wrote :

By the way, it is completely related to the small bright on pinned tabs when notification any update in the page. Once you put the focus on that tabs, Compiz goes back to a normal CPU consume.

Depending on how many cores or threaded-cores you have in your computer, you can see different CPU use (25, 50, ... 100%).

Another behavior that might be related, it's that exposing the windows works perfectly for every window but Chrome, where I usually get a white rectangle.

Andrew Schulman (andrex) wrote :

Confirmed that this is still a problem in 12.04. It's definitely the same as http://code.google.com/p/chromium/issues/detail?id=98869. When a pinned tab starts flashing, CPU usage jumps. To bring it back down again, you have to select the pinned tab, then select a different tab.

There's no fix yet and no option to stop pinned tabs from flashing when their content changes. The workaround is to unpin the tabs.

uMac (uvaio) wrote :

still here (chrome Version 27.0.1453.110)
shame cos pinned tabs are very useful. Would be enough to just turn the blinking off as I do not need it and is almost not visible anyway.

Xi (tracytsang-whu) wrote :

Same problem with Ubuntu 14.04.1, Chrome Version 39.0.2171.65 (64-bit)

I think this issue is related to the driver of video card. I am using Nvidia GForce 8400 GS.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.