Comment 33 for bug 565981

Conn O Griofa (psyke83) wrote :

Unfortunately, this proposed X server update has not resolved the problem on my system. I'm using a stock Ubuntu Lucid installation, compiz enabled, and with the proposed X server update.

conn@nx9010:~$ lspci | grep VGA
01:05.0 VGA compatible controller: ATI Technologies Inc Radeon IGP 330M/340M/350M

conn@nx9010:~$ glxinfo | grep "GLX version"
GLX version: 1.2

After approximately one hour uptime (watching a Flash video [1]), I noticed the system becoming sluggish, especially scrolling pages in Firefox. This is the output which I captured shortly after noticing the sluggishness had begun:

conn@nx9010:~$ pid=`pidof X` ; for t in `seq 1 10`; do eog /usr/share/backgrounds ; echo `grep "object bytes" /sys/kernel/debug/dri/0/gem_objects` `ps ocomm,vsz,rss $pid |grep X`; done
290811904 object bytes Xorg 32120 24264
292790272 object bytes Xorg 32120 24264
294481920 object bytes Xorg 32120 24264
295972864 object bytes Xorg 32120 24264
297984000 object bytes Xorg 32120 24264
302874624 object bytes Xorg 32120 24264
304979968 object bytes Xorg 32888 24840
306962432 object bytes Xorg 32120 24264
308514816 object bytes Xorg 32120 24264
310161408 object bytes Xorg 32120 24264

There also seems to be something strange with the GEM pinned/gtt counts:

conn@nx9010:~$ cat /sys/kernel/debug/dri/0/gem_objects
1212 objects
308838400 object bytes
0 pinned
0 pin bytes
0 gtt bytes
0 gtt total

I was aware of the memory leak in KMS for some time, but only discovered this bug report today. Aside from disabling KMS, the only way in which I was able to stop this memory leak was to use a combination of the xorg-edgers packages and the mainline kernel 2.6.34-rc5.

I am unsure which specific component eliminated the problem, but the problem disappeared only after installing kernel 2.6.34-rc5 [2] (which may or may not be coincidence, as an update in one of the xorg-edgers packages may have really solved the issue). I will now test the xorg-edgers packages against the official 2.6.32-21-generic kernel to try to isolate the problem.

If you require any more information or a separate bug report filed, please let me know.

[1] http://www.southparkstudios.com/episodes/103922/
[2] http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.34-rc5-lucid/