compiz performances

Bug #821648 reported by Guillaume
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
compiz (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

When I use compiz (in unity and kde) Performances are horrible, when I use normal resize, I get about two frame second. When I switching workspace using ctrl alt + key, my fps drop to 20 and the same thing when I move the scrollbar overlay (without grab it) also, the v-sync is not stable... That is the performances issues I found when I upgraded to compiz 0.9.x on natty.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: xorg 1:7.6+4ubuntu3.1
ProcVersionSignature: Ubuntu 2.6.38-10.46-generic 2.6.38.7
Uname: Linux 2.6.38-10-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 270.41.06 Mon Apr 18 14:53:56 PDT 2011
 GCC version: gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4)
Architecture: amd64
CompizPlugins: [core,bailer,composite,opengl,decor,grid,regex,imgpng,compiztoolbox,place,mousepoll,move,animation,mag,showmouse,winrules,workarounds,screenshot,animationaddon,resize,text,session,gnomecompat,wall,wobbly,expo,ring,ezoom,scale,bench]
CompositorRunning: kwin
Date: Fri Aug 5 15:41:00 2011
DistUpgraded: Fresh install
DistroCodename: natty
DistroVariant: kubuntu
DkmsStatus:
 virtualbox-ose, 4.0.4, 2.6.38-10-generic, x86_64: installed
 nvidia-current, 270.41.06, 2.6.38-10-generic, x86_64: installed
 nvidia-current, 270.41.06, 2.6.38-8-generic, x86_64: installed
GraphicsCard:
 nVidia Corporation GT215 [GeForce GTS 360M] [10de:0cb1] (rev a2) (prog-if 00 [VGA controller])
   Subsystem: ASUSTeK Computer Inc. Device [1043:203c]
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
JockeyStatus: xorg:nvidia_current - NVIDIA accelerated graphics driver (Proprietary, Enabled, Not in use)
Lsusb:
 Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
 Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 001 Device 003: ID 04f2:b071 Chicony Electronics Co., Ltd 2.0M UVC Webcam / CNF7129
 Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: ASUSTek Computer Inc. G60JX
ProcEnviron:
 LANGUAGE=en_CA:en
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-10-generic root=UUID=d405ed83-489b-424c-8d7f-3f1b232cd18b ro quiet splash pcie_aspm=force
Renderer: Unknown
SourcePackage: xorg
Symptom: display
Title: Xorg crash
UpgradeStatus: No upgrade log present (probably fresh install)
XorgConf:
 Section "Device"
  Identifier "Default Device"
  Option "NoLogo" "True"
 EndSection
dmi.bios.date: 12/10/2009
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 203
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: G60JX
dmi.board.vendor: PEGATRON CORPORATION
dmi.board.version: 1.0
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: PEGATRON Computer Inc.
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr203:bd12/10/2009:svnASUSTekComputerInc.:pnG60JX:pvr1.0:rvnPEGATRONCORPORATION:rnG60JX:rvr1.0:cvnPEGATRONComputerInc.:ct10:cvr1.0:
dmi.product.name: G60JX
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTek Computer Inc.
version.compiz: compiz 1:0.9.4+bzr20110606-0ubuntu1~natty2
version.ia32-libs: ia32-libs 20090808ubuntu13
version.libdrm2: libdrm2 2.4.23-1ubuntu6
version.libgl1-mesa-dri: libgl1-mesa-dri 7.10.2-0ubuntu2
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 7.10.2-0ubuntu2
version.nvidia-graphics-drivers: nvidia-graphics-drivers N/A
version.xserver-xorg: xserver-xorg 1:7.6+4ubuntu3.1
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.0-0ubuntu4.1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.14.0-4ubuntu7.1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20110107+b795ca6e-0ubuntu7

Revision history for this message
Guillaume (gufide-g) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

If disabling Sync To VBlank fixes the performance problem then you're seeing bug 763005.

You can test this by installing package "compizconfig-settings-manager" and then:
  System Settings... >
  CompizConfig Settings Manager >
  OpenGL >
  untick "Sync To VBlank"

Please try this.

tags: added: might-be-763005
Changed in compiz (Ubuntu):
status: New → Incomplete
Revision history for this message
Guillaume (gufide-g) wrote :

I tried this, but It don't seems to solve the problem for switching workspace, or for the overlay scrollbars lagging. I use the benchmark and I get about to 600 frames/sec but It show 450 when I switch between workspace, but more I got window, more I got a freeze before the animation, witch is very fine, with 450 frame/sec. but bigger is the little freeze, faster is the animation, like if compiz in overall was freeze during a time. The same thing is done when I do the normal resize. I can post a video later

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It's very likely you're seeing Nvidia-specific bug 92599 which contains a simple workaround editing xorg.conf.

Revision history for this message
Guillaume (gufide-g) wrote :

I can see it's not related with my graphic card, because It use 100% of one of my core when I use the normal resize, or switching when I got a lot of window. I got an i5 2.23, I don't know why it can lag like this I post a video on youtube showing my screen, we can see the cpu usage in the graph, and we can see that when I start to resize, everything froze, including the little panel graph... here's the link:

http://www.youtube.com/watch?v=0A3bAz9GQBQ

This bug did not happen with compiz 0.8.6 or kwin (with both vertical sync and opengl enabled)

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Please also check your compiz refresh rate setting:
  System Settings... >
  CompizConfig Settings Manager >
  Composite >
  Refresh Rate

It should be the same as your monitor's vertical refresh rate. If the refresh rate is too high then of course it will consume more CPU than normal.

Ideally Detect Refresh Rate should be ticked ON and you should have the workaround described in bug 92599 configured. In my experience that has solved all framerate issues with Nvidia chips.

Revision history for this message
Guillaume (gufide-g) wrote :

My maximum framerate is at 60 and I tried with and without the Detect refresh rate and I tried with the bug 92599 workaround and it does the same thing, the cpu is used at 100% again when I resize. When I resize by one or two pixel I got a fine framerate, but I can see again that it use a lot of cpu, about to 40%, but when I resize faster than this, I see my cpu core used by 100% by the application during the resize, and it's not happen with other window manager.

Revision history for this message
Guillaume (gufide-g) wrote :

I repeat: this is the application resizing that using the cpu, not compiz, but with all other window manager, it doesn't happen! I try with another opengl compositing window manager, kwin, and I don't get this, even when I run kwin from unity and resize.

Revision history for this message
Daniel van Vugt (vanvugt) 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 803296 and bug 92599, 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.