Compiz uses more CPU and mem since upgrading from 11.10

Bug #989035 reported by autra
This bug report is a duplicate of:  Bug #803943: compiz consuming a lot of cpu. Edit Remove
46
This bug affects 9 people
Affects Status Importance Assigned to Milestone
compiz (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

since I upgrading to 12.04 Compiz uses a lot more CPU : it stays around 15-20% CPU.
The memory usage also increased dramatically, and now reaches 380Mo !!! It has never reached more than 200Mo before

Xorg also has increased memory usage : it uses now around 220 Mo.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: compiz 1:0.9.7.6-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
Uname: Linux 3.2.0-23-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 295.40 Thu Apr 5 21:37:00 PDT 2012
 GCC version: gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
.tmp.unity.support.test.0:

ApportVersion: 2.0.1-0ubuntu5
Architecture: amd64
CompizPlugins: [core,composite,opengl,compiztoolbox,decor,place,grid,staticswitcher,scale,screenshot,mousepoll,resize,snap,regex,wall,imgpng,workarounds,move,expo,unityshell]
CompositorRunning: compiz
CurrentDmesg:
 [ 23.921688] vboxdrv: fAsync=0 offMin=0x231 offMax=0xa19
 [ 23.923501] vboxdrv: TSC mode is 'synchronous', kernel timer mode is 'normal'.
 [ 23.923503] vboxdrv: Successfully loaded version 4.0.12 (interface 0x00180000).
Date: Thu Apr 26 19:07:37 2012
DistUpgraded: 2012-04-26 18:08:04,729 DEBUG enabling apt cron job
DistroCodename: precise
DistroVariant: ubuntu
DkmsStatus:
 nvidia-current, 295.40, 3.0.0-17-generic, x86_64: installed
 nvidia-current, 295.40, 3.2.0-23-generic, x86_64: installed
 vboxhost, 4.0.12, 3.0.0-17-generic, x86_64: installed
 vboxhost, 4.0.12, 3.2.0-23-generic, x86_64: installed
GraphicsCard: NVIDIA Corporation GT218 [GeForce 8400 GS] [10de:10c3] (rev a2) (prog-if 00 [VGA controller])
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
JockeyStatus:
 xorg:nvidia_current - NVIDIA accelerated graphics driver (Proprietary, Enabled, In use)
 xorg:nvidia_current_updates - NVIDIA accelerated graphics driver (post-release updates) (Proprietary, Disabled, Not in use)
MachineType: Dell Inc. OptiPlex 380
PackageArchitecture: all
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-23-generic root=UUID=e653a8d3-1554-4352-a069-e3ae86c6e64e ro quiet splash vt.handoff=7
SourcePackage: compiz
UpgradeStatus: Upgraded to precise on 2012-04-26 (0 days ago)
dmi.bios.date: 12/06/2010
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A03
dmi.board.name: 0HN7XN
dmi.board.vendor: Dell Inc.
dmi.board.version: A01
dmi.chassis.type: 3
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA03:bd12/06/2010:svnDellInc.:pnOptiPlex380:pvr:rvnDellInc.:rn0HN7XN:rvrA01:cvnDellInc.:ct3:cvr:
dmi.product.name: OptiPlex 380
dmi.sys.vendor: Dell Inc.
version.compiz: compiz 1:0.9.7.6-0ubuntu1
version.ia32-libs: ia32-libs 20090808ubuntu35
version.libdrm2: libdrm2 2.4.32-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 8.0.2-0ubuntu3
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 8.0.2-0ubuntu3
version.nvidia-graphics-drivers: nvidia-graphics-drivers N/A
version.xserver-xorg-core: xserver-xorg-core 2:1.11.4-0ubuntu10
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.7.0-0ubuntu1
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.99~git20111219.aacbd629-0ubuntu2
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.17.0-1ubuntu4
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20111201+b5534a1-1build2

Revision history for this message
autra (autra) wrote :
Revision history for this message
Bruce (bruce-blackpage) wrote :

I have the same problem with high CPU usage - ~15% idle, 35% when moving mouse. Running chromium on the background with some flash 55%.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in compiz (Ubuntu):
status: New → Confirmed
Revision history for this message
Evren Yurtesen (eyurtese-g) wrote :

I have exactly the same issue, moving the mouse makes compiz to use 50% CPU

Revision history for this message
Mark Lassiter (mlassiter) wrote :

This may be a different issue, but I can reproduce high CPU every time by doing the following:

1. Installed wine
2. Installed a game (DDO)
3. Run it (runs flawlessly)
4. Exit the wine application
5. compiz process immediately goes to 100% CPU and never comes back

A number of graphic anomolies riddle the desktop as well, rendering it virtually unusable, so at this point, after playing the game, my son is forced to reboot.

Please let me know if I can provide any more information, I would be happy to. I realize wine is in the mix, but hopeing that its making it easier to reproduce the issue.

Revision history for this message
Philippe (raptor200357) wrote :

Same problem here with a fresh install of Ubuntu 12.04. Compiz and Xord use a lot of CPU !

I've never been under 10% at idle without anything opened. (1-2% with 11.04)

I was running with 11.04 before and everything was perfect. I was playing a 720p video with VLC and my CPU was at about 30% max. Now with 12.04 Compiz itself uses something like 15% so that like 55/60 top CPU for the same video.... With flash, my CPU burn.

What's going on? My system is so slow now :(

(nvidia card)

Revision history for this message
autra (autra) wrote :

@Mark Lassiter : I think you don't have the same issue. Our compiz is always quite high. Yours gets high only on wine closing and it stays at 100% (whereas we have only 10-15%). I think your problem is that wine does not properly quit after leaving the game. Have you tried to kill the processes of wine (wine.exe, winedevice, explorer.exe ?) after you son stopped playing ?
Otherwise, I would advise you to post a but report to wine website.

Guys, a workaround for that is of course to use Unity-2d... (but this is not great I know)

Revision history for this message
jhfhlkjlj (fdsuufijjejejejej-deactivatedaccount) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 803943, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

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

Other bug subscribers

Remote bug watches

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