Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 08-15-08, 08:58 PM   #1
rudedog830
Registered User
 
Join Date: Mar 2007
Posts: 4
Default Fedora 9 x86_64, Nvidia beta 177.13 driver, Compiz -- Memory leak

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 2Gb of 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. Doesn't appear to be the case for me. 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 is offline   Reply With Quote
Old 08-21-08, 07:17 PM   #2
rudedog830
Registered User
 
Join Date: Mar 2007
Posts: 4
Default Solved: Fedora 9 x86_64, Nvidia beta 177.13 driver, Compiz -- Memory leak

It 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
rudedog830 is offline   Reply With Quote
Old 08-21-08, 07:54 PM   #3
memeyou
Registered User
 
Join Date: May 2008
Posts: 74
Default Re: Fedora 9 x86_64, Nvidia beta 177.13 driver, Compiz -- Memory leak

interesting, i don't see the leak. is it a specific screensaver causing this? I mostly use the gl matrix one. 2 days uptime and xorg still hoverng around 81M RES - second to firefox and wow (96 and 330 respectively). u think it's a 7 series only bug?

edit: sorry 5 days, 20 hours uptime
memeyou is offline   Reply With Quote
Old 08-21-08, 08:11 PM   #4
memeyou
Registered User
 
Join Date: May 2008
Posts: 74
Default Re: Fedora 9 x86_64, Nvidia beta 177.13 driver, Compiz -- Memory leak

here is my bug report so you can see what it is i did wrong (or right). i recently went to .67, maybe that's the difference, but i didn't have problems with .13 before it (same boot).
Attached Files
File Type: log nvidia-bug-report.log (139.0 KB, 89 views)
memeyou is offline   Reply With Quote
Old 08-22-08, 02:20 AM   #5
maniac103
Registered User
 
Join Date: Nov 2006
Posts: 20
Default Re: Solved: Fedora 9 x86_64, Nvidia beta 177.13 driver, Compiz -- Memory leak

Quote:
Originally Posted by rudedog830 View Post
It 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
Sorry, but you got that completely wrong
The damage events were caused by the xscreensaver redraws (and it's fully correct that there are a lot of damage events for screensavers repainting a lot of small areas), the problem was that a huge number of damage events made compiz need more CPU for tracking the damage than for actual repainting; thus causing slowness for those screen savers.
In the meantime, I have applied a variant of that patch; but there never was a memory leak involved. Please note that high CPU usage does not necessarily mean (in fact, seldomly means) there is a memory leak involved.
maniac103 is offline   Reply With Quote
Old 08-22-08, 11:13 PM   #6
rudedog830
Registered User
 
Join Date: Mar 2007
Posts: 4
Default Re: Fedora 9 x86_64, Nvidia beta 177.13 driver, Compiz -- Memory leak

thanks for the correction, maniac103.

How does the high CPU usage result in memory consumption, or does it? I certainly don't pretend to understand the details, but your patch resulted in the resolution of my runaway memory consumption under Compiz when xscreensaver was running.
rudedog830 is offline   Reply With Quote
Old 08-22-08, 11:19 PM   #7
memeyou
Registered User
 
Join Date: May 2008
Posts: 74
Default Re: Fedora 9 x86_64, Nvidia beta 177.13 driver, Compiz -- Memory leak

iirc, the readme covers possible reasons for memory leaks
memeyou is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
NVIDIA R302.80 Beta Driver for Windows 8, New OpenGL Extensions News Archived News Items 0 06-15-12 10:30 AM
Need Help Installing NVIDIA Tesla M2070Q in Linux RHEL5 Ferianto85 NVIDIA Linux 0 05-18-12 08:35 PM
302.07 (beta) for Linux x86/x86_64 released AaronP NVIDIA Linux 0 05-02-12 09:55 AM
Getting the proprietary nvidia driver to run with Debian 3.0 r0 (woody) Katchina404 NVIDIA Linux 9 01-12-03 08:49 AM
nvidia + 2.4.19 gentoo = messed up ulukay NVIDIA Linux 18 11-01-02 11:58 PM

All times are GMT -5. The time now is 11:12 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.