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

Newegg Daily Deals

Reply
 
Thread Tools
Old 01-30-04, 10:56 PM   #1
csh
Registered User
 
Join Date: Jan 2004
Posts: 23
Send a message via AIM to csh Send a message via Yahoo to csh
Default memory use in 5336 driver

Normally, my X server uses about 265MB of virtual memory. Loading a
game like Infiltration, or heavy 3D application makes it grow to
over 300MB at times. After exiting the application, X virtual process
size stayed at its maximum size.

That is standard behavior for most UNIX processes. The more addresses
a program requests, the more it is given, and they are only returned to
the OS if your application explicitly unmaps them. Not all OS can even
do that.

Since upgrading the driver, I noticed things had improved all around, so
today I took a good look at X memory use. Things have changed...

Now my X server uses an average of 76MB. Playing Infiltration moves
virtual size to 98MB. Exiting the game causes virtual size to shrink
back to 76MB.

It even shrinks after using things like The Gimp, and other image
programs.

I am wondering what nVidia did in this driver that makes such a big difference.

Has anyone else seen this on their system?
csh is offline   Reply With Quote
Old 01-30-04, 11:38 PM   #2
Andy Mecham
l33t master
 
Join Date: Jul 2002
Location: Santa Clara, CA
Posts: 1,163
Default

There's a blurb about memory usage under X in the readme. Search for "Why does X use so much memory?".

--andy
__________________
Andy Mecham
NVIDIA Corporation
Andy Mecham is offline   Reply With Quote
Old 01-31-04, 11:34 AM   #3
csh
Registered User
 
Join Date: Jan 2004
Posts: 23
Send a message via AIM to csh Send a message via Yahoo to csh
Default

Quote:
Originally posted by Andy Mecham
There's a blurb about memory usage under X in the readme. Search for "Why does X use so much memory?".

--andy
It looks like you didn't read or understand my post.

The README doesn't answer any question in my post. I understand normal X memory usage and why it is so high.

My point is that the high memory use has gone away in the 5336, and I can find no explanation for why that is. Something major has changed in the new driver versus the old.
csh is offline   Reply With Quote
Old 01-31-04, 01:08 PM   #4
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default

Take a look at the server's viritual memory map, chances are the NVIDIA driver simply doesn't unconditionally map all of the installed video memory any more; a similar change was made to the kernel component of the driver at some point in the past: the NVIDIA driver used to exhaust the kernel's virtual address space with video memory and register mappings.
zander is offline   Reply With Quote
Old 01-31-04, 01:21 PM   #5
csh
Registered User
 
Join Date: Jan 2004
Posts: 23
Send a message via AIM to csh Send a message via Yahoo to csh
Default

Quote:
Originally posted by zander
Take a look at the server's viritual memory map, chances are the NVIDIA driver simply doesn't unconditionally map all of the installed video memory any more; a similar change was made to the kernel component of the driver at some point in the past: the NVIDIA driver used to exhaust the kernel's virtual address space with video memory and register mappings.
That's likely, and it fits with that I see from memory use and checking the process mapping in detail. I thought I saved pmap and my own memory program's output for the
older driver, but now I can't find it to compare, and changing drivers is currently highly inconvienient.

I was hoping someone from nVidia could give a definitive answer.

If someone with one of the older drivers wants to post the output of pmap, that would be cool.
csh 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
GPU memory consumption, back buffer, Quadro tdsussman NVIDIA Linux 5 08-14-12 09:14 PM
Measuring card memory usage peter_ga NVIDIA Linux 0 05-24-12 08:07 PM
Getting the proprietary nvidia driver to run with Debian 3.0 r0 (woody) Katchina404 NVIDIA Linux 9 01-12-03 08:49 AM
X Failed to load NVdriver c00lr4c3r NVIDIA Linux 13 10-22-02 01:44 PM
X takes up 188 MB of memory luke NVIDIA Linux 5 08-12-02 04:34 PM

All times are GMT -5. The time now is 09:31 AM.


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