Compiz slows down over time (usually one day is enough)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Compiz |
Expired
|
Undecided
|
Unassigned | ||
Unity |
Expired
|
Undecided
|
Unassigned | ||
unity (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
I have had this problem for quite a long time tbh. And after each release I hope it will be fixed, but it doesn't happen.
A little intro: I'm using Ubuntu for work, I rarely shutdown the computer I rather put it to sleep mode, in worst case it's hibernate. I have loads of apps opened at the same time. I use external monitor as well. Computer is Dell XPS15 L521X, 16Gb RAM, 120GB SSD + 1TB HDD. As a graphics card I'm using builtin intel HD4000, I have GF GT640 as well but it's disabled using bbswitch.
Symptoms are that after some time compiz slows down a lot while using it. Usually it's no more than 2 days and it's slow again. When I restart Unity (setsid unity) it's back to full buttersmooth speed with the same apps opened which leads to conclusion that compiz can handle the load very well. Maybe it's mesa, maybe it's compiz or unity itself that slows it down - but I'm no pro to tell.
With 14.10 release I observed very interesting behaviour. I have FHD builtin monitor and FHD external monitor rotated counterclockwise. Let's say I started computer yesterday in the morning, it was working smooth with both monitors and single display, I suspended computer got home unsuspended and it seemed sluggish (only graphics part of course). I ran glxgears (I know I know...) and it showed ~ 50FPS which is slow, because running the same before suspend gives near 60FPS (refresh rate). Now I come back to work and run it on single builtin display - ~ 50 FPS, I connect second FHD dispplay and FPS are back to 60 and it's running buttersmooth again. So it seems that mesa/compiz/unity have some strange refresh rate problem detection maybe... 2 FHD displays seems to be twice the job compiz has to do over single display which is strangely slower...
Please advise how can I help solving this, do I need to run compiz debug version or what can I exactly help technically (applying a patch, compiling compiz myself, you name it...). I know the standard procedure of logs etc., I'm afraid that won't help much in this situation. I looked at logs and there's nothing suspicious, at least to me.
Now two full days are passed, now things get very choppy. The same glxgears output which perfectly indicate problem.:
151 frames in 5.0 seconds = 30.026 FPS
158 frames in 5.0 seconds = 31.443 FPS
158 frames in 5.0 seconds = 31.511 FPS
165 frames in 5.0 seconds = 32.784 FPS
280 frames in 5.0 seconds = 55.916 FPS
299 frames in 5.0 seconds = 59.659 FPS
299 frames in 5.0 seconds = 59.655 FPS
299 frames in 5.0 seconds = 59.662 FPS
See, when I attach second monitor, FPS increases and all is fine and buttersmooth.
creen 0: minimum 8 x 8, current 3000 x 1920, maximum 32767 x 32767
LVDS1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
1920x1080 60.0*+ 59.9 40.0
1680x1050 60.0 59.9
1600x1024 60.2
1400x1050 60.0
1280x1024 60.0
1440x900 59.9
1280x960 60.0
1360x768 59.8 60.0
1152x864 60.0
1024x768 60.0
800x600 60.3 56.2
640x480 59.9
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 connected 1080x1920+1920+0 left (normal left inverted right x axis y axis) 510mm x 287mm
1920x1080 60.0*+
1280x1024 75.0 60.0
1152x864 75.0
1024x768 75.1 60.0
800x600 75.0 60.3
640x480 75.0 60.0
720x400 70.1
DP1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
Package versions are stock.
I'll attach version file as well.
Should I need to run apport, will it really help?