PDA

View Full Version : Fedora 9 x86_64, Nvidia, Compiz -- Memory leak



rudedog830
15th August 2008, 06:53 PM
I have been struggling to determine the source of a huge memory leak when using Compiz. I'm using the latest proprietary binary (beta 177) from Nvidia for my 7900GS. I'm running Fedora 9 64-bit.

When Compiz is enabled, the Xorg server memory usage gradually grows over a couple of hours until it all 4Gb and all swap is utilized. The memory usage grows considerably when Xscreensaver is running.

I've read many posts indicating that there is a memory leak in the Nvidia driver. But, I've also read that it is fixed in their latest release. I've also seen some bugs in Xorg that may be related. I had the same issue with Fedora 8.

Here are my questions:
1) What is the source of this memory leak?
2) Are there any patches or workarounds?
3) If it is the Nvidia driver, does anyone know if a patch is under development? Are there any driver alternatives that would allow me to still use Compiz?

Any suggestions to correct or diagnose the problem would be much appreciated.

rudedog830
22nd August 2008, 01:20 AM
t looks like the problem was a bug in the Compiz code caused by a large number of damage events, in my case, triggered by xscreensaver graphics. The memory leak/usage appears to be fixed by applying the compiz patch found in this bug report (http://bugs.freedesktop.org/show_bug.cgi?id=16738#) .