Slow graphics after resume from suspend

Bug #1004475 reported by nozyczek
78
This bug affects 18 people
Affects Status Importance Assigned to Milestone
Unity
Expired
Undecided
Unassigned
compiz (Ubuntu)
Expired
Undecided
Unassigned
unity (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

When resume from suspend the desktop loads but Unity runs very slow.

-------------------------------------------------------------------------------------
General Info:

-->lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise

-->uname -a
Linux myBox 3.2.0-24-generic #39-Ubuntu SMP Mon May 21 16:52:17 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

-->apt-cache policy unity
unity:
  Installed: 5.12-0ubuntu1
  Candidate: 5.12-0ubuntu1
  Version table:
 *** 5.12-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     5.10.0-0ubuntu6 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

-->apt-cache policy compiz
compiz:
  Installed: 1:0.9.7.8-0ubuntu1
  Candidate: 1:0.9.7.8-0ubuntu1
  Version table:
 *** 1:0.9.7.8-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1:0.9.7.6-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

-->dpkg -s Xorg | grep Version
Version: 1:7.6+12ubuntu1

-->glxinfo | grep OpenGL
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD JUNIPER
OpenGL version string: 2.1 Mesa 8.0.2
OpenGL shading language version string: 1.20

-->lspci -nn | grep VGA
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices [AMD] nee ATI Juniper [Radeon HD 5700 Series] [1002:68b8]

Hardware
Motherboard: Gigabyte GA-P55A-UD4P
Processor: Intel Core i7-870 Processor
Graphics: Gigabyte ATI Radeon HD 5770 GV-R577UD-1GD (Batmobile)
Memory: 16GB (4 x 4GB) G.SKILL Ripjaws Series 240-Pin DDR3 SDRAM DDR3 1600 (PC3 12800) F3-12800CL9D-8GBRL
SSD Drive: Crucial 64GB m4 2.5-inch SATA 6GB/s
Monitor: 2x Samsung P2770

Discussion link:
http://ubuntuforums.org/showthread.php?p=11962793#post11962793
-------------------------------------------------------------------------------------

Fresh boot; before suspend
-->glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
303 frames in 5.0 seconds = 60.440 FPS
300 frames in 5.0 seconds = 59.968 FPS
300 frames in 5.0 seconds = 59.966 FPS
300 frames in 5.0 seconds = 59.970 FPS
300 frames in 5.0 seconds = 59.967 FPS
300 frames in 5.0 seconds = 59.968 FPS

After suspend
-->glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
188 frames in 5.0 seconds = 37.560 FPS
194 frames in 5.0 seconds = 38.670 FPS
196 frames in 5.0 seconds = 39.068 FPS
198 frames in 5.0 seconds = 39.599 FPS
201 frames in 5.0 seconds = 40.198 FPS
200 frames in 5.0 seconds = 39.868 FPS

After compiz --replace
-->glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
303 frames in 5.0 seconds = 60.457 FPS
299 frames in 5.0 seconds = 59.797 FPS
300 frames in 5.0 seconds = 59.997 FPS
300 frames in 5.0 seconds = 59.999 FPS
300 frames in 5.0 seconds = 59.998 FPS
300 frames in 5.0 seconds = 59.998 FPS
300 frames in 5.0 seconds = 59.998 FPS
299 frames in 5.0 seconds = 59.798 FPS

It doesn't look like it is only affecting Launcher performance when suspend was used. I'm not sure if this would be a separate issue so decided to include it here for now. Here is some more details.

Fresh boot; suspend not used
At first all looks good. Launcher opens and closes quickly but after few minutes of regular use I can see performance degradation when using Launcher. Everything else still works good.

-->glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
302 frames in 5.0 seconds = 60.245 FPS<= Launcher closed
299 frames in 5.0 seconds = 59.798 FPS
301 frames in 5.0 seconds = 60.002 FPS
298 frames in 5.0 seconds = 59.596 FPS
299 frames in 5.0 seconds = 59.799 FPS
102 frames in 5.1 seconds = 20.030 FPS<= pressing “Super”; Launcher slowly opens
30 frames in 5.2 seconds = 5.780 FPS
30 frames in 5.2 seconds = 5.759 FPS
30 frames in 5.2 seconds = 5.780 FPS
31 frames in 5.2 seconds = 5.962 FPS
32 frames in 5.2 seconds = 6.172 FPS
31 frames in 5.2 seconds = 5.984 FPS
30 frames in 5.2 seconds = 5.788 FPS
105 frames in 5.0 seconds = 20.984 FPS<= pressing ESC; Launcher slowly closes
299 frames in 5.0 seconds = 59.600 FPS
299 frames in 5.0 seconds = 59.600 FPS
298 frames in 5.0 seconds = 59.595 FPS
301 frames in 5.0 seconds = 60.001 FPS
300 frames in 5.0 seconds = 59.996 FPS
293 frames in 5.0 seconds = 58.597 FPS
49 frames in 5.2 seconds = 9.438 FPS<= pressing “Super”; Launcher slowly opens
31 frames in 5.2 seconds = 5.961 FPS
34 frames in 5.2 seconds = 6.529 FPS
30 frames in 5.2 seconds = 5.791 FPS
29 frames in 5.2 seconds = 5.595 FPS
33 frames in 5.2 seconds = 6.305 FPS
105 frames in 5.0 seconds = 20.984 FPS<= pressing ESC; Launcher slowly closes
299 frames in 5.0 seconds = 59.799 FPS
300 frames in 5.0 seconds = 59.998 FPS
298 frames in 5.0 seconds = 59.599 FPS
300 frames in 5.0 seconds = 59.996 FPS

Everything seems to be very slow when Launcher is open and comes back to normal after Launcher is closed.

Replacing compiz windows:
-->compiz --replace

-->glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
303 frames in 5.0 seconds = 60.494 FPS<= Launcher closed
298 frames in 5.0 seconds = 59.598 FPS
299 frames in 5.0 seconds = 59.797 FPS
291 frames in 5.0 seconds = 58.199 FPS<= pressing “Super”; Launcher quickly opens
299 frames in 5.0 seconds = 59.799 FPS
298 frames in 5.0 seconds = 59.515 FPS
299 frames in 5.0 seconds = 59.679 FPS
300 frames in 5.0 seconds = 59.999 FPS<= pressing ESC; Launcher quickly closes
299 frames in 5.0 seconds = 59.798 FPS
297 frames in 5.0 seconds = 59.315 FPS
298 frames in 5.0 seconds = 59.395 FPS
297 frames in 5.0 seconds = 59.399 FPS<= pressing “Super”; Launcher quickly opens
296 frames in 5.0 seconds = 59.089 FPS

This will work good for some time (10 maybe 20 minutes) and will go back to degraded performance again.

nozyczek (nozyczek)
description: updated
description: updated
Revision history for this message
nozyczek (nozyczek) wrote :

gnome-classic is also affected. It is not as bad as Unity but still.

-->echo $DESKTOP_SESSION
gnome-classic

-->apt-cache policy gnome-shell
gnome-shell:
  Installed: 3.4.1-0ubuntu2
  Candidate: 3.4.1-0ubuntu2
  Version table:
 *** 3.4.1-0ubuntu2 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
        100 /var/lib/dpkg/status

Before suspend
-->glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
303 frames in 5.0 seconds = 60.477 FPS
300 frames in 5.0 seconds = 59.999 FPS
299 frames in 5.0 seconds = 59.797 FPS
296 frames in 5.0 seconds = 59.200 FPS
298 frames in 5.0 seconds = 59.599 FPS
300 frames in 5.0 seconds = 59.995 FPS
297 frames in 5.0 seconds = 59.399 FPS
298 frames in 5.0 seconds = 59.596 FPS
299 frames in 5.0 seconds = 59.789 FPS
300 frames in 5.0 seconds = 59.811 FPS
297 frames in 5.0 seconds = 59.396 FPS
299 frames in 5.0 seconds = 59.796 FPS
301 frames in 5.0 seconds = 60.004 FPS
299 frames in 5.0 seconds = 59.774 FPS

After suspend
-->glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
257 frames in 5.0 seconds = 51.341 FPS
272 frames in 5.0 seconds = 54.218 FPS
272 frames in 5.0 seconds = 54.398 FPS
283 frames in 5.0 seconds = 56.597 FPS
240 frames in 5.0 seconds = 47.839 FPS
253 frames in 5.0 seconds = 50.428 FPS
274 frames in 5.0 seconds = 54.778 FPS
275 frames in 5.0 seconds = 54.830 FPS
274 frames in 5.0 seconds = 54.619 FPS
284 frames in 5.0 seconds = 56.799 FPS
273 frames in 5.0 seconds = 54.599 FPS
273 frames in 5.0 seconds = 54.421 FPS
272 frames in 5.0 seconds = 54.394 FPS
280 frames in 5.0 seconds = 56.000 FPS

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
nozyczek (nozyczek) wrote :

Please don't hesitate to ask for any log files or other debug data. I will do my best to provide anything that is needed to help debugging and fixing this issue.
Thanks

Revision history for this message
melrokz (melrockz) wrote :

I face this issue too. Mouse pointer movements, launcher and workspace switcher are very slow.
There is a workaround, it allows me to work till the next suspend, lol:
Alt + F2
compiz --replace

Revision history for this message
gutigen (gutigen) wrote :

Same problem here. Tested with Nvidia drivers 290.40, 290.49, 290.53, 302.11 (and some latest X packages from xorg-edgers).
Every drivers was tested in fresh installation. Changing any settings (Composite and OpenGL changes etc) in CCSM helps for like 10seconds to maybe 2min of work in Unity3D, then I have alt+f2 and compiz --replace. Extremly annoying.
I'm not sure which logs should I provide, so if You guys need any, just tell me :)

Revision history for this message
SalsaDoom (salsadoom) wrote :

We spoke already on the forums about this issue a few weeks ago now. I was hoping to see some action on this bug. But yes, this bug hits me too and unfortunately renders the desktop unusable. I can generate logs on request as well :)

Actually, I'm a bit surprised to see Gutigen having this problem because I had suspected it was something with ATI's open source drivers. But if he is getting it with an nVidia it must actually be a bug in Unity. Interesting!

Revision history for this message
gutigen (gutigen) wrote :

It seems that turning off amd cool'n'quiet fixed both overtime performance degradation and low performance after bringing system back from suspend :)

Revision history for this message
nozyczek (nozyczek) wrote :

Gutigen,
I'm on Intel i7. What is your specs?

Revision history for this message
gutigen (gutigen) wrote :

@nozyczek
Phenom II x4 B55 and gts250

Revision history for this message
nozyczek (nozyczek) wrote :

How did you disable cool'n'quiet? BIOS?

Revision history for this message
gutigen (gutigen) wrote :

Yes. Intel has similar technology called SpeedStep.

Revision history for this message
SalsaDoom (salsadoom) wrote :

This seems like an extremely poor solution, but better than nothing if it works. I'm on an i7 too. The problem is that laptop bios's are often extremely gimpy and don't let you change even very basic features.

Yeah, ok, I checked. My bios doesn't have any such options in it at all. Its an Asus G73.

Revision history for this message
SalsaDoom (salsadoom) wrote :

Before anyone says, I'm aware of the other names it goes under and there just are no options at all in that BIOS so I cannot test this. It really peeves me when they gimp the BIOS like that. That said, this bug doesn't look like its getting fixed any time soon (no one is assigned and its undecided) so I'd love to have a usable workaround.

Revision history for this message
gutigen (gutigen) wrote :

After one day of work in Unity with cool'n'quiet turned off I've found that there is one more similar problem - Nvidia power mizer :/ Performance slow downs still happen (but not so often) unless I set Nvidia X Server Power Mizer to performance instead of adaptive.

Cool that it's finaly working properly, but my GPU and CPU temperatures are much higher now, which may be a problem in long time.

nozyczek (nozyczek)
affects: compiz-core → unity
Revision history for this message
nozyczek (nozyczek) wrote :

Disabling SpeedStep in my case doesn't change anything. I see same degraded permanence.

Revision history for this message
gutigen (gutigen) wrote :

Are you using Intel HD gpu?

Revision history for this message
nozyczek (nozyczek) wrote :

No. I'm using Gigabyte ATI Radeon HD 5770 GV-R577UD-1GD (Batmobile)

-->lspci -nn | grep VGA
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices [AMD] nee ATI Juniper [Radeon HD 5700 Series] [1002:68b8]

Revision history for this message
SalsaDoom (salsadoom) wrote :

This is tricky to nail down. I have two laptops, both i7's, one with an nVidia and the other with a Radeon Mobility 5870. The nVidia one doesn't have this issue, but the Radeon one does. But apparently it happens on Intel and nVidia too. But obviously not everyone has this issue since this has relatively few people reporting it. I wonder what the commonality we have here that others do not?

Looks like nozyczek is on a desktop machine, I'm on a laptop... nothing similar there. This install is pretty close to stock so I doubt its any particular software or configuration.. weird stuff.

Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

Thanks everyone for your details on this. We have one person in the comments above clarifying that he has the problem with a Radeon GPU. Can anyone clarify if this happens with any other GPUs too, because 1) It doesn't happen over here on Intel or Nvidia, and 2) No one seems to have confirmed this on other GPUs/drivers.

If we narrow this down to the problematic component, then we will be able to fix it. Thanks for your help!

Changed in unity:
status: New → Confirmed
Revision history for this message
Greg Michalec (greg-primate) wrote :

I'm sure this is not news, but this bug persists in 12.10 beta. I have a radeon HD 5470 using the OS drivers.

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

This may be bug 887993 but we can't really be sure it's exactly the same without more clear evidence.

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

nozyczek,

This might be caused by bug 914773. To confirm, please look at the memory usage of the compiz process before and after suspend. Are they dramatically different?

Changed in unity:
status: Confirmed → Incomplete
Changed in compiz (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Greg Michalec (greg-primate) wrote :

vanvugt,

It doesn't appear to be a memory issue:

Before suspend:
2000 dameat 20 0 1448M 115M 43748 S 4.0 3.0 3:50.31 compiz

After suspend:
2000 dameat 20 0 1448M 115M 43748 S 7.0 3.0 3:52.53 compiz

This is on up-to-date 12.10 beta 2.

Revision history for this message
Eduardox123 (ebeduardox06-deactivatedaccount) wrote :

This affects Ubuntu 12.10 too

Changed in unity:
status: Incomplete → Confirmed
Changed in compiz (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Mohan K (nahom) wrote :

New to ubuntu. installed 12.04 LTS on old Toshiba satellite a10-s129 laptop. It has intel graphics. I am experiencing the same problem when laptop resumes from suspend. The desktop is unusable. I have to power off and power on to reset. It has the following intel integrated graphics : (lspci output)

00:02.0 VGA compatible controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 01)
00:02.1 Display controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 01)

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

Incomplete as per comment #22. We need feedback from the original reporter, because performance bugs are always subjective.

If you don't want to wait for that, then please log your own bug.

summary: - Slow Launcher after resume from suspend
+ Slow graphics after resume from suspend
Changed in unity (Ubuntu):
status: New → Confirmed
Changed in unity:
status: Confirmed → Incomplete
Changed in compiz (Ubuntu):
status: Confirmed → Incomplete
Changed in unity (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for unity (Ubuntu) because there has been no activity for 60 days.]

Changed in unity (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for compiz (Ubuntu) because there has been no activity for 60 days.]

Changed in compiz (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Unity because there has been no activity for 60 days.]

Changed in unity:
status: Incomplete → Expired
Revision history for this message
nozyczek (nozyczek) wrote :

Can not verify or fail because I'm no longer using Ubuntu on this box.

Revision history for this message
vellamike (vellamike) wrote :

I am facing exactly the same problem on this hardware with Ubuntu 13.10:

00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 0b)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
00:03.0 Audio device: Intel Corporation Device 0a0c (rev 0b)
00:14.0 USB controller: Intel Corporation Lynx Point-LP USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation Lynx Point-LP HECI #0 (rev 04)
00:16.3 Serial controller: Intel Corporation Lynx Point-LP HECI KT (rev 04)
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I218-LM (rev 04)
00:1b.0 Audio device: Intel Corporation Lynx Point-LP HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 1 (rev e4)
00:1c.3 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 4 (rev e4)
00:1c.4 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 5 (rev e4)
00:1d.0 USB controller: Intel Corporation Lynx Point-LP USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation Lynx Point-LP LPC Controller (rev 04)
00:1f.2 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode] (rev 04)
00:1f.3 SMBus: Intel Corporation Lynx Point-LP SMBus Controller (rev 04)
02:00.0 Network controller: Intel Corporation Wireless 7260 (rev 73)
03:00.0 SD Host controller: O2 Micro, Inc. Device 8520 (rev 01)

Revision history for this message
Wa Dev (wadev-h) wrote :

Not that this could be much of help, but this bug also exists on Debian 8 and 9, with Nouveau as well as the binary driver, on gdm3 (Gnome 3) too.
So this is definitely not a
- radeon
- nvidia
- binary driver
- open source driver
- intel
- amd
- compiz
- gnome shell
- unity
problem.

As much as I can postulate, it might be a problem with kernel vs Xorg?

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.