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

Newegg Daily Deals

Reply
 
Thread Tools
Old 09-05-08, 02:11 PM   #1
Tomasu
Registered User
 
Join Date: Aug 2008
Posts: 47
Default Possible memory leak in nvidia drivers?

I seem to be seeing a slow memory leak in the nvidia drivers, as far back as some of the 169's iirc. I've been running KDE 4.1 and svn-trunk for a while now, and have noticed X continually eats up more and more memory, and won't free any of it till X is fully restarted. I end up with X using 800MB+ Virt, and 300-400MB RES ram, and restarting KDE didn't help, I had to CTRL+ALT+BS or use the kdm restart script to get the memory back (even though no X apps besides kdm were running, X wouldn't free most of its used ram).

I've attached a compressed nvidia bug log if it helps any (generated after running for a little while, after restarting X)

edit: if theres a better way to help diagnose it, running extra programs, let me know

edit2: forgot to mention, I'm currently running the 177.70 drivers and seen the same thing with the 67 and 68 drivers.
Attached Files
File Type: gz nvidia-bug-report.log.gz (28.5 KB, 95 views)
Tomasu is offline   Reply With Quote
Old 09-06-08, 08:58 AM   #2
kernelOfTruth
Gentoo Linux addict
 
Join Date: Nov 2007
Location: Vienna, Austria; Germany; hello world :)
Posts: 202
Default Re: Possible memory leak in nvidia drivers?

confirmed !

I've seen this kind of behavior, too

you see it most obviously if you're running an compositing-manager (compiz(-fusion), kwin of kde4, ...) for a very long time with loads of animations (open-, close-animation, etc.)

then the resource usage e.g. will go up from RES: 107m -> 178m

switching to a non-compositing window-manager makes it somewhat better but this isn't an option if you're dependent on compositing,

also re-launching compiz doesn't help

the only "solution" so far seems to be to kill X and/or restart X and unload and reload the nvidia module then it's as fast as from the start

any ideas from the nvidia-developers; AaronP, ... ?

can you reproduce this ?

many thanks in advance

__________________
2.6.30-rc3-zen0+ w. compcache, reiser4 + ccreg40 (lzo-compression + checksumming)
gcc version 4.4.0-pre9999 built 20090425 (prerelease) rev. 146764 (Gentoo SVN)
gcc version 4.4.0 (Gentoo Hardened 4.4.0-r1, espf-0.2.1)
Ubuntu Jaunty/9.04 x86_64 Dell XPS M1330
kernelOfTruth is offline   Reply With Quote
Old 09-06-08, 10:16 AM   #3
TheBlackCat
Registered User
 
Join Date: Aug 2008
Posts: 84
Default Re: Possible memory leak in nvidia drivers?

I'm seeing the same thing, although I don't know exactly when it started.
TheBlackCat is offline   Reply With Quote
Old 09-06-08, 12:34 PM   #4
spion
Registered User
 
Join Date: Sep 2008
Posts: 44
Default Re: Possible memory leak in nvidia drivers?

the problem went away for me after disabling vsync and using a correct value for pixmapcachesize.
spion is offline   Reply With Quote
Old 09-06-08, 12:51 PM   #5
kernelOfTruth
Gentoo Linux addict
 
Join Date: Nov 2007
Location: Vienna, Austria; Germany; hello world :)
Posts: 202
Default Re: Possible memory leak in nvidia drivers?

Quote:
Originally Posted by spion View Post
the problem went away for me after disabling vsync and using a correct value for pixmapcachesize.
what do you mean with 'correct value for pixmapcachesize', please ?

many thanks in advance
__________________
2.6.30-rc3-zen0+ w. compcache, reiser4 + ccreg40 (lzo-compression + checksumming)
gcc version 4.4.0-pre9999 built 20090425 (prerelease) rev. 146764 (Gentoo SVN)
gcc version 4.4.0 (Gentoo Hardened 4.4.0-r1, espf-0.2.1)
Ubuntu Jaunty/9.04 x86_64 Dell XPS M1330
kernelOfTruth is offline   Reply With Quote
Old 09-06-08, 01:33 PM   #6
spion
Registered User
 
Join Date: Sep 2008
Posts: 44
Default Re: Possible memory leak in nvidia drivers?

oh and i forgot something, i also added this to my "/etc/X11/xinit/xinitrc"

Code:
export QT_NO_GLIB=1
nvidia-settings -a InitialPixmapPlacement=2 -a GlyphCache=1

correct pixmapcachesize i mean the following: lots of ppl suggest various settings for it, for example 2000000, i used that, but then i thought.. hmm isnt that too high for my 128 mb ram? so im using 70000 now, and this is much better.


initialpixmapplacement=2 does the following: it trys to fill your video ram before it touches your systemram, so _maybe_ if you set the pixmapcachesize higher than your videoram (in conjunction with pixmapplacement=2) , after some while it starts to fill up your systemram to, but just forgets too release it again, so that the memory usage is slowly growing....

i have no clue if this is right or whatsoever maybe im completely wrong even at the basics...
spion is offline   Reply With Quote
Old 09-06-08, 01:49 PM   #7
kernelOfTruth
Gentoo Linux addict
 
Join Date: Nov 2007
Location: Vienna, Austria; Germany; hello world :)
Posts: 202
Default Re: Possible memory leak in nvidia drivers?

Quote:
Originally Posted by spion View Post

i have no clue if this is right or whatsoever maybe im completely wrong even at the basics...

oh, don't bother

I'll give it a try & let you guys know if it helps

if it improves things you were on the right track

Quote:
hmm isnt that too high for my 128 mb ram? so im using 70000 now, and this is much better.
just to be sure: that is seventy-thousand, correct ?

thanks
__________________
2.6.30-rc3-zen0+ w. compcache, reiser4 + ccreg40 (lzo-compression + checksumming)
gcc version 4.4.0-pre9999 built 20090425 (prerelease) rev. 146764 (Gentoo SVN)
gcc version 4.4.0 (Gentoo Hardened 4.4.0-r1, espf-0.2.1)
Ubuntu Jaunty/9.04 x86_64 Dell XPS M1330
kernelOfTruth is offline   Reply With Quote
Old 09-06-08, 02:28 PM   #8
spion
Registered User
 
Join Date: Sep 2008
Posts: 44
Default Re: Possible memory leak in nvidia drivers?

ya i meant seventy thousand(70.000), but i found another typo, i didnt mean 2.000.000 , i meant 200.000


spion is offline   Reply With Quote

Old 09-06-08, 07:15 PM   #9
TheBlackCat
Registered User
 
Join Date: Aug 2008
Posts: 84
Default Re: Possible memory leak in nvidia drivers?

Quote:
Originally Posted by spion View Post
correct pixmapcachesize i mean the following: lots of ppl suggest various settings for it, for example 2000000, i used that, but then i thought.. hmm isnt that too high for my 128 mb ram? so im using 70000 now, and this is much better.
So how do you determine the appropriate pixmapcachesize for a given amount of video RAM?
TheBlackCat is offline   Reply With Quote
Old 09-06-08, 09:14 PM   #10
kernelOfTruth
Gentoo Linux addict
 
Join Date: Nov 2007
Location: Vienna, Austria; Germany; hello world :)
Posts: 202
Default Re: Possible memory leak in nvidia drivers?

ok, @nvidia:

after 14 hours and more of operation with compiz-fusion and disabled animations it only consumed 10 mb more 107 -> 117 mb so there definitely seems to be a direct correlation between consumed memory and amount&time animations in the compositing window-manager was used
__________________
2.6.30-rc3-zen0+ w. compcache, reiser4 + ccreg40 (lzo-compression + checksumming)
gcc version 4.4.0-pre9999 built 20090425 (prerelease) rev. 146764 (Gentoo SVN)
gcc version 4.4.0 (Gentoo Hardened 4.4.0-r1, espf-0.2.1)
Ubuntu Jaunty/9.04 x86_64 Dell XPS M1330
kernelOfTruth 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 Drivers Receive Windows 8 Certification News Archived News Items 0 06-01-12 05:30 AM
Radeon 9700 not all that? sancheuz Other Desktop Graphics Cards 200 10-12-02 09:31 PM
Nvidia Stereo Drivers Soudontsay NVIDIA Windows Graphics Drivers 2 08-26-02 10:48 AM
nvidia drivers in a motherboard with AGP 1.0 (motherboard MVP3+) knocker NVIDIA Linux 1 08-19-02 01:57 AM
NVIDIA 2960 Drivers & RH 7.3 W/2.4.18-5 XASCompuGuy NVIDIA Linux 6 08-02-02 11:53 AM

All times are GMT -5. The time now is 10:01 PM.


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