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

Newegg Daily Deals

Reply
 
Thread Tools
Old 11-12-08, 12:23 PM   #1
Gutsycat
Registered User
 
Join Date: Oct 2008
Posts: 2
Default xserver mem leak with 7300GT but not with 6600GT

I have a very strange problem.

Two Debian GNU/Linux systems with KDE 4.1.3 and same programs running (amarok 2, kopete and arora 0.4) but one has 6600GT and other has 7300GT same drivers 177.80 or 173.14.09 doesn't matter.
Xserver version 1.4.2 both or 1.5.2 - doesn't matter.

Xorg leaks with 7300GT system for about 15Mb/min and then stops at 120Mb and float around this value, another system with 6600GT doesn't leak at all (41-43Mb all time!)

What it could be?
Gutsycat is offline   Reply With Quote
Old 11-12-08, 04:51 PM   #2
Linuxhippy
Registered User
 
Join Date: Feb 2004
Posts: 585
Default Re: xserver mem leak with 7300GT but not with 6600GT

Does it really "leak" memory, or just adress space?
Linuxhippy is offline   Reply With Quote
Old 11-12-08, 11:25 PM   #3
Gutsycat
Registered User
 
Join Date: Oct 2008
Posts: 2
Default Re: xserver mem leak with 7300GT but not with 6600GT

Quote:
Originally Posted by Linuxhippy View Post
Does it really "leak" memory, or just adress space?
KDE 4 System Monitor showed me:
Memory: 120Mb
Shared memory:7Mb

How can I research this issue more deeply?
Gutsycat is offline   Reply With Quote
Old 11-13-08, 02:27 PM   #4
uOpt
FreeBSD cheering section
 
uOpt's Avatar
 
Join Date: Nov 2004
Location: Boston, MA, USA
Posts: 609
Default Re: xserver mem leak with 7300GT but not with 6600GT

You need to run `top` in a terminal window.

Then swirl the mouse around to have X pop up on top.

Then post the complete thing. RSS is most interesting.

Useless KDE crap. "Memory"? What are people going to do with that? Which memory?
__________________

My Unix benchmark results
uOpt is offline   Reply With Quote
Old 11-16-08, 06:12 AM   #5
Emopig
Registered User
 
Join Date: Feb 2008
Posts: 19
Default Re: xserver mem leak with 7300GT but not with 6600GT

I think i'm suffering from this too. With 177.82 on my 7600GT X server memory usage reaches 175 MB resident RAM with nothing but a GNOME desktop running (Gnome panel, nautilus etc). By switching to the "nv" driver, I don't get this problem it maxes around ~40-60MB after *days* of uptime.

I've also tried restarting applications like Nautilus and applets to get them to free their X resources but apparently this is just inherent memory usage to the X server.

I don't recall having this issue with the 173.xx series drivers, I may switch back to them and see what happens. Anyone else got any bright ideas?
Emopig is offline   Reply With Quote
Old 11-16-08, 01:50 PM   #6
kernelOfTruth
Gentoo Linux addict
 
Join Date: Nov 2007
Location: Vienna, Austria; Germany; hello world :)
Posts: 202
Default Re: xserver mem leak with 7300GT but not with 6600GT

Quote:
Originally Posted by Emopig View Post
I think i'm suffering from this too. With 177.82 on my 7600GT X server memory usage reaches 175 MB resident RAM with nothing but a GNOME desktop running (Gnome panel, nautilus etc). By switching to the "nv" driver, I don't get this problem it maxes around ~40-60MB after *days* of uptime.

I've also tried restarting applications like Nautilus and applets to get them to free their X resources but apparently this is just inherent memory usage to the X server.

I don't recall having this issue with the 173.xx series drivers, I may switch back to them and see what happens. Anyone else got any bright ideas?
I don't have any clue what might trigger this but I can confirm this "behavior" with my 7600GT after several hours of usage

sometimes it raises faster sometimes slower

I've been investigating this since some time already but haven't found (yet) what exactly raises memory usage of X that much:

in general it's around 60 MB -> 230 MB and more

I'm running compiz(-fusion) and emerald if that shall make a difference

I'm not sure but I once noticed that it seems to raise faster when using metacity than compiz (I could err however)
__________________
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 11-17-08, 11:13 AM   #7
Emopig
Registered User
 
Join Date: Feb 2008
Posts: 19
Default Re: xserver mem leak with 7300GT but not with 6600GT

I don't use any kind of compositing window manager, just Metacity.

Atm, *with the nv driver*, I have a 48 hour uptime and X is using 62MB resident RAM with only GNOME and a few GTK+ apps running, it seems to have stablise here. Previously with a 3 day uptime with 177.80 I was hitting 150MB resident with far less running.

Anyone else getting this?
Emopig is offline   Reply With Quote
Old 11-19-08, 05:30 AM   #8
kernelOfTruth
Gentoo Linux addict
 
Join Date: Nov 2007
Location: Vienna, Austria; Germany; hello world :)
Posts: 202
Default Re: xserver mem leak with 7300GT but not with 6600GT

got one

Quote:
top - 12:29:02 up 4:20, 3 users, load average: 0.06, 0.10, 0.41
Tasks: 174 total, 2 running, 172 sleeping, 0 stopped, 0 zombie
Cpu(s): 1.5%us, 1.3%sy, 0.0%ni, 97.2%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 8170840k total, 5469292k used, 2701548k free, 80368k buffers
Swap: 6139236k total, 0k used, 6139236k free, 3312284k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4533 root 20 0 780m 646m 20m S 2 8.1 10:00.81 X
6761 mat 20 0 265m 31m 18m S 1 0.4 0:09.64 compiz
card is 7600GT (pci-e) and latest compiz from git + 180.08
__________________
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 11-19-08, 12:23 PM   #9
sambo57u
Registered User
 
Join Date: Jan 2006
Posts: 52
Default Re: xserver mem leak with 7300GT but not with 6600GT

Anyone experiencing this with 2.6.26 bases kernels? Comment #5 tells me that it is
not KDE 4.1 issue, so it is either particular graphics card, kernel, or X.org version
interacting with nvidia. I am not see ing anything like this with 2.6.26.8 on Fedora 8,
with Quadro NVS 290 (G86GL) nor on my laptop with same software and NVS 285.
sambo57u is offline   Reply With Quote
Old 11-19-08, 12:49 PM   #10
uOpt
FreeBSD cheering section
 
uOpt's Avatar
 
Join Date: Nov 2004
Location: Boston, MA, USA
Posts: 609
Default Re: xserver mem leak with 7300GT but not with 6600GT

When it comes to a growing X server, I have reported this to no avail:
http://www.nvnews.net/vbulletin/showthread.php?t=116257

It seems certain that the NVidia binary drivers cause this. Neither my ATI equipped machines have it nor your "nv" driver installations.
__________________

My Unix benchmark results
uOpt is offline   Reply With Quote
Old 11-23-08, 11:28 AM   #11
kernelOfTruth
Gentoo Linux addict
 
Join Date: Nov 2007
Location: Vienna, Austria; Germany; hello world :)
Posts: 202
Default Re: xserver mem leak with 7300GT but not with 6600GT

the cause for all this memory eating madness (almost 100% sure) seems to be the activation of the GlyphCache

disabling it via
Code:
nvidia-settings -a GlyphCache=0
seems to fix it or at least significantly delay the fast growth of X's memory consumption

I know this option also exists for windows so is it an nvidia-driver specific problem or a problem with GlyphCache and how it is handled by the X-server (xorg) ?

any comments from AaronP or one of the other knowledged nvidia-guys to get an in-depth view on this problem ?


so the recommendation would be to enable it beginning with cards of the 8th generation and leave it disabled for cards below it (if it's not really needed)

there's however still the increased memory usage which needs to be worked on

thanks @nvidia you're still offering the best drivers for linux despite all the small problems - hope you'll figure those out fast so that we can enjoy nvidia and say

nvidia - the way it's meant to be worked
__________________
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 11-23-08, 02:34 PM   #12
kernelOfTruth
Gentoo Linux addict
 
Join Date: Nov 2007
Location: Vienna, Austria; Germany; hello world :)
Posts: 202
Default Re: xserver mem leak with 7300GT but not with 6600GT

Quote:
top - 21:31:19 up 3:20, 3 users, load average: 2.95, 1.88, 1.08
Tasks: 175 total, 2 running, 173 sleeping, 0 stopped, 0 zombie
Cpu(s): 14.1%us, 22.0%sy, 0.0%ni, 1.0%id, 62.1%wa, 0.2%hi, 0.6%si, 0.0%st
Mem: 8170832k total, 8100644k used, 70188k free, 177380k buffers
Swap: 6139236k total, 88328k used, 6050908k free, 6358368k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
8684 root 15 -5 0 0 0 D 36 0.0 0:42.15 kcryptd
4617 root 20 0 226m 47m 12m S 15 0.6 6:53.38 X
memory usage really seems to be reasonable now with GlyphCache disabled, I haven't run apps demanding the graphics cache or X much yet but it's definitely much better

compared to the memory usage of around 650 MB it's a big improvement (that time I was reading pretty big pdf documents [as big as 100 MB], several instances of okular / kpdf ...)

edit:

here's the memory usage after 7 hours of uptime:

Quote:
top - 01:14:28 up 7:04, 3 users, load average: 2.83, 2.13, 1.42
Tasks: 171 total, 1 running, 170 sleeping, 0 stopped, 0 zombie
Cpu(s): 1.8%us, 43.7%sy, 0.0%ni, 54.1%id, 0.0%wa, 0.2%hi, 0.2%si, 0.0%st
Mem: 8170832k total, 7635320k used, 535512k free, 31644k buffers
Swap: 6139236k total, 141804k used, 5997432k free, 5925128k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
9179 root 20 0 0 0 0 D 69 0.0 24:46.47 pdflush
9800 root 15 -5 0 0 0 S 17 0.0 17:50.48 kcryptd
4705 mat 20 0 537m 44m 11m S 2 0.6 0:10.36 nautilus
4617 root 20 0 238m 69m 11m S 1 0.9 10:08.61 X
meanwhile I've opened a few not too big pdf documents (0.5 - 2 MB in size)

today I didn't use my box much - most of the time it was syncing (backing up data) while xscreensaver (doesn't seem to make change in memory usage) was activated
__________________
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


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


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