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

Newegg Daily Deals

Reply
 
Thread Tools
Old 03-01-06, 03:57 AM   #1
pe1chl
Registered User
 
Join Date: Aug 2003
Posts: 1,026
Default Huge (virtual) size because of countless maps?

The X server always has a large virtual size because it apparently memory maps the video memory. However, what I am seeing since installing 8178 is much more than that.

A "ps axu" shows this for the X server:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 7620 0.8 3.0 112687716 31524 ? SL Feb18 137:53 /usr/X11R6/bin/X

Ok, "only" 31MB resident, but look at the VSZ column! It completely destroys the layout being way larger than expected. 112GB of mapped memory!

It turns out (looking in /proc/7620/maps) that /dev/nvidia0 is mapped 204 times. But even that does not account for all this (I have 128MB of video memory).
What is going on, is this normal?
Of course I understand that this does not mean that a lot of memory is really used.
pe1chl is offline   Reply With Quote
Old 03-01-06, 06:17 AM   #2
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: Huge (virtual) size because of countless maps?

Unlike older driver releases, current NVIDIA X drivers don't map all video memory up front, they map parts of it as needed (this has become necessary as video cards ship with increasing amounts of video memory; it's also part of the reason why DGA support had to be dropped); this is likely why you're seeing a larger number of memory map entries than you used to. It's unclear why `ps` reports a VSZ of 107GB or that this is related to the NVIDIA driver.
zander is offline   Reply With Quote
Old 03-01-06, 11:44 AM   #3
pe1chl
Registered User
 
Join Date: Aug 2003
Posts: 1,026
Default Re: Huge (virtual) size because of countless maps?

I will try to attach the maps entry to this message; earlier I just tried to paste it into the article itself but the bulletin board system refused that.

Maybe you understand what is going on?
Attached Files
File Type: txt maps.txt (19.8 KB, 118 views)
pe1chl is offline   Reply With Quote
Old 03-01-06, 12:16 PM   #4
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: Huge (virtual) size because of countless maps?

The entries in this map file account for only ~135MB, ~43MB of which are mappings of /dev/nvidia0.
zander is offline   Reply With Quote
Old 03-01-06, 01:05 PM   #5
pe1chl
Registered User
 
Join Date: Aug 2003
Posts: 1,026
Default Re: Huge (virtual) size because of countless maps?

Ah, I thought the sizes would be in KB....
What is /SYSV00000000 ?

Interestingly enough, "top" reports "VIRT 133m" which is more reasonable and more in line with the maps. Maybe a bug in ps? Maybe an overflow in some variable...
pe1chl is offline   Reply With Quote
Old 03-01-06, 01:15 PM   #6
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: Huge (virtual) size because of countless maps?

The /SYSV00000000 entry represents SysV shared memory.
zander 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
For Best Virtual Desktop: NVIDIA VGX & Windows RemoteFX News Archived News Items 0 06-13-12 10:30 AM

All times are GMT -5. The time now is 04:37 AM.


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