Compiz process continuously uses too much cpu.

Bug #1294311 reported by Mau
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Compiz
New
Undecided
Unassigned
compiz (Ubuntu)
Triaged
Critical
Unassigned
Nominated for Trusty by Adolfo Jayme Barrientos

Bug Description

cpu = AMD Athlon(tm) 64 X2 Dual Core Processor 4600+
ram = 6GB

uname -r
Linux 3.13.0-17-generic #37-Ubuntu SMP Mon Mar 10 21:44:01 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

lsb_release -rd
Description: Ubuntu Trusty Tahr (development branch)
Release: 14.04

apt-cache policy compiz
compiz:
  Instaŀlat: 1:0.9.11+14.04.20140310-0ubuntu1
  Candidat: 1:0.9.11+14.04.20140310-0ubuntu1
  Taula de versió:
 *** 1:0.9.11+14.04.20140310-0ubuntu1 0
        500 http://es.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status

Compiz proces is always using too much cpu.

Some examples:
- When I use ALT+F2 and I type something compiz uses 170% cpu.
- When I use ALT+TAB compiz uses 120% cpu.
- While I'm writing this text compiz is using 30% cpu
- My system running only a terminal with top but compiz using 12% cpu

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: compiz-core 1:0.9.11+14.04.20140310-0ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-17.37-generic 3.13.6
Uname: Linux 3.13.0-17-generic x86_64
.tmp.unity.support.test.1:

ApportVersion: 2.13.3-0ubuntu1
Architecture: amd64
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: compiz
CompositorUnredirectDriverBlacklist: '(nouveau|Intel).*Mesa 8.0'
CompositorUnredirectFSW: true
CurrentDesktop: Unity
Date: Tue Mar 18 20:01:47 2014
DistUpgraded: Fresh install
DistroCodename: trusty
DistroVariant: ubuntu
EcryptfsInUse: Yes
ExecutablePath: /usr/bin/compiz
GraphicsCard:
 NVIDIA Corporation G72 [GeForce 7200 GS / 7300 SE] [10de:01d3] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: ZOTAC International (MCO) Ltd. Device [19da:5001]
InstallationDate: Installed on 2014-03-17 (1 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140317)
Lsusb:
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: MSI MS-7369
ProcEnviron:
 LANGUAGE=ca
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=ca_ES.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.13.0-17-generic root=UUID=65b6b4ee-5d53-4762-8b40-e5d13e0035c3 ro quiet splash vt.handoff=7
SourcePackage: compiz
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 03/17/2009
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: V2.9
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: MS-7369
dmi.board.vendor: MSI
dmi.board.version: 1.0
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrV2.9:bd03/17/2009:svnMSI:pnMS-7369:pvr1.0:rvnMSI:rnMS-7369:rvr1.0:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
dmi.product.name: MS-7369
dmi.product.version: 1.0
dmi.sys.vendor: MSI
version.compiz: compiz 1:0.9.11+14.04.20140310-0ubuntu1
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.52-1
version.libgl1-mesa-dri: libgl1-mesa-dri 10.1.0-1ubuntu1
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 10.1.0-1ubuntu1
version.xserver-xorg-core: xserver-xorg-core 2:1.15.0-1ubuntu7
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.8.2-1ubuntu2
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.3.0-1ubuntu3
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.910-0ubuntu1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.10-1ubuntu2
xserver.bootTime: Tue Mar 18 19:55:32 2014
xserver.configfile: default
xserver.devices:
 input Power Button KEYBOARD, id 6
 input Power Button KEYBOARD, id 7
 input AT Translated Set 2 keyboard KEYBOARD, id 8
 input ImPS/2 Generic Wheel Mouse MOUSE, id 9
xserver.errors:
 Failed to load module "nvidia" (module does not exist, 0)
 Failed to load module "nvidia" (module does not exist, 0)
xserver.logfile: /var/log/Xorg.0.log
xserver.version: 2:1.15.0-1ubuntu7
xserver.video_driver: nouveau

Revision history for this message
Mau (maugarta-cc) wrote :
Revision history for this message
Mau (maugarta-cc) wrote :

Hi,
After upgrading compiz to 1:0.9.11+14.04.20140328-0ubuntu1, important improvements to solve this have been achieved.

Thanks.

Revision history for this message
Mau (maugarta-cc) wrote :

Hi,
After installing several Ubuntu trusty I must tell you that this problem could be due to the graphic card driver (nouveau).

I have tried this release with others PC and compiz works fine, so I think that my problem could be related with my graphic card (NVIDIA Corporation G72 [GeForce 7200 GS / 7300 SE] (rev a1))

04:00.0 VGA compatible controller: NVIDIA Corporation G72 [GeForce 7200 GS / 7300 SE] (rev a1) (prog-if 00 [VGA controller])
 Subsystem: ZOTAC International (MCO) Ltd. Device 5001
 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
 Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
 Latency: 0, Cache Line Size: 64 bytes
 Interrupt: pin A routed to IRQ 46
 Region 0: Memory at fd000000 (32-bit, non-prefetchable) [size=16M]
 Region 1: Memory at d0000000 (64-bit, prefetchable) [size=256M]
 Region 3: Memory at fc000000 (64-bit, non-prefetchable) [size=16M]
 Expansion ROM at febe0000 [disabled] [size=128K]
 Capabilities: [60] Power Management version 2
  Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
  Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
 Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
  Address: 00000000fee0300c Data: 4152
 Capabilities: [78] Express (v1) Endpoint, MSI 00
  DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <1us, L1 <4us
   ExtTag- AttnBtn- AttnInd- PwrInd- RBE- FLReset-
  DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
   RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+
   MaxPayload 128 bytes, MaxReadReq 512 bytes
  DevSta: CorrErr+ UncorrErr+ FatalErr- UnsuppReq+ AuxPwr- TransPend-
  LnkCap: Port #0, Speed 2.5GT/s, Width x16, ASPM L0s L1, Exit Latency L0s <1us, L1 <4us
   ClockPM- Surprise- LLActRep- BwNot-
  LnkCtl: ASPM Disabled; RCB 128 bytes Disabled- CommClk-
   ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
  LnkSta: Speed 2.5GT/s, Width x16, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
 Capabilities: [100 v1] Virtual Channel
  Caps: LPEVC=0 RefClk=100ns PATEntryBits=1
  Arb: Fixed- WRR32- WRR64- WRR128-
  Ctrl: ArbSelect=Fixed
  Status: InProgress-
  VC0: Caps: PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
   Arb: Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
   Ctrl: Enable+ ID=0 ArbSelect=Fixed TC/VC=ff
   Status: NegoPending- InProgress-
 Capabilities: [128 v1] Power Budgeting <?>
 Kernel driver in use: nouveau

Thanks for your help.

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
Alberto Salvia Novella (es20490446e) wrote :

It renders the system temporarily or permanently unusable.

Changed in compiz (Ubuntu):
importance: Undecided → Critical
status: Confirmed → Triaged
Revision history for this message
Mau (maugarta-cc) wrote :

It renders permanently very slow and glxinfo shows 'OpenGL vendor string: VMware, Inc.'

I don't have vmware softare intalled and this is not a virtual machine.

#glxinfo | grep -i string
server glx vendor string: SGI
server glx version string: 1.4
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.4, 128 bits)
OpenGL version string: 2.1 Mesa 10.1.0
OpenGL shading language version string: 1.30

I think this bug is like
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1268146

Thanks

Revision history for this message
Kalle (jessica-2) wrote :

I have recently installed Ubuntu 14.04 LTS. It worked wonderfully at first, but then it started to be extremely slow to open and close new windows. The system monitor showed that the processor ran at around 100% although I was nothing special. The "Compiz" process took up around 40% of the processor power.

The problem started a while after I had connected an external monitor. First it worked wonderfully, but after a while the problems started. Maybe there is some problem with compiz that arises when one uses an external monitor. Maybe compiz has a but that is triggered when the graphics-processor sending data to an external monitor.

The problem did not disappear immediately when I deselected the external monitor. I restarted but it was still there, but when I started the computer today it worked OK. I do not dare to connect the external monitor again because I do not want to be stuck with the same problem again. I have a Dell U2311H with 1920 × 1080 pixels, while the laptop has 1280 × 800 pixels.

Computer: Acer TravelMate5520
RAM: 4 GB
Processor: AMD Turion 64 X2 Mobile Technology TL-60 × 2
Graphics: Gallium 0.4 on ATI RS690
OS: 64-bit

Revision history for this message
Christopher Townsend (townsend) wrote :

I don't think this is a Compiz problem, but is probably a problem in Mesa which is incorrectly selecting the software renderer as the display driver. When this happens, the CPU is used exclusively for all OpenGL calls which makes Compiz use a great amount of CPU. Nothing we can do about that.

As such, going to dup this to bug #1268146.

Revision history for this message
Xi (tracytsang-whu) wrote :

I have the same problem with Kalle (jessica-2)
When using second monitor the compiz and Xorg processes eating too much CPU

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.