High CPU usage after resizing a window
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xorg (Ubuntu) |
Invalid
|
Low
|
Unassigned |
Bug Description
Background:
Symptoms are 50-120% CPU usage when scrolling (especially Firefox), dragging around a window, resizing windows, basically any 2D graphics rendering on the desktop. This happens both in fglrx and the open source radeon driver. I started my debugging process by changing various settings, restarting, running "top" in a terminal, launching a Nautilus window, and quickly dragging it around with the mouse in circles while watching the CPU usage rise to around 50%. Resizing the window makes it jump to 100%+. Xorg and compiz are the culprits, with the CPU usage being split around 50/50 between them.
Reproducing the issue:
After a lot of searching I found some tips in the Arch Wiki article for the open source radeon driver, and I put together the following xorg.conf:
Section "Module"
Load "dri2"
Load "glamoregl"
EndSection
Section "Device"
Identifier "Radeon 6670"
Driver "radeon"
Option "MigrationHeuri
Option "AccelMethod" "glamor"
EndSection
After applying these settings, launching Nautilus and dragging it around only resulted in about 4% CPU usage each for xorg and compiz. Then, resizing the window (click and hold a side, and just keep moving the mouse left and right) made Xorg jump to 70% and compiz 50%. After that, when I start dragging the window around, CPU usage is back to around what it was originally: About 25% for compiz and 15% for Xorg. This exact behaviour happens after each reboot: The CPU usage is initially low when dragging the window around, but resizing it somehow messes things up and it never goes back to normal after that.
I'm using a Radeon 6670 right now. I'll be receiving an R7 260X in about a week or so, so I won't be able to test with the exact same hardware, but I'm expecting at least similar behaviour since I also swapped in an R7 250 and was having the same issues.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: xorg 1:7.7+1ubuntu8
ProcVersionSign
Uname: Linux 3.13.0-30-generic x86_64
.tmp.unity.
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
CompizPlugins: No value set for `/apps/
CompositorRunning: compiz
CompositorUnred
CompositorUnred
Date: Fri Jul 4 03:52:17 2014
DistUpgraded: Fresh install
DistroCodename: trusty
DistroVariant: ubuntu
DkmsStatus:
virtualbox, 4.3.10, 3.13.0-29-generic, x86_64: installed
virtualbox, 4.3.10, 3.13.0-30-generic, x86_64: installed
ExtraDebuggingI
GraphicsCard:
Advanced Micro Devices, Inc. [AMD/ATI] Turks XT [Radeon HD 6670/7670] [1002:6758] (prog-if 00 [VGA controller])
Subsystem: Gigabyte Technology Co., Ltd Device [1458:2545]
InstallationDate: Installed on 2014-06-06 (27 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
MachineType: Gigabyte Technology Co., Ltd. GA-970A-D3
ProcEnviron:
LANGUAGE=en_CA:en
TERM=xterm
PATH=(custom, no user)
LANG=en_CA.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: xorg
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 09/03/2013
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F12
dmi.board.name: GA-970A-D3
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSof
dmi.product.name: GA-970A-D3
dmi.sys.vendor: Gigabyte Technology Co., Ltd.
version.compiz: compiz 1:0.9.11+
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.52-1
version.
version.
version.
version.
version.
version.
version.
version.
xserver.bootTime: Fri Jul 4 03:38:17 2014
xserver.configfile: /etc/X11/xorg.conf
xserver.errors:
xserver.logfile: /var/log/Xorg.0.log
xserver.version: 2:1.15.1-0ubuntu2
xserver.
Update: I received my new card today (R7 260X). It isn't fully supported under the 3.13 kernel, so I had to go back to fglrx. The same problem still persists.