[Gllug] OT(ish): Advice

rich at annexia.org rich at annexia.org
Mon Dec 16 18:22:13 UTC 2002


On Mon, Dec 16, 2002 at 05:33:07PM +0000, Simon A. Boggis wrote:
> Doesn't the VSZ include the memory wired into your graphics card [1]
> (which can't normally be used for anything else) and shared libraries?

OK, so this inspired me to find out exactly what the "headline" figure
of 130M is actually composed of:

  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
 1296 root       5 -10  130M  71M 28456 S <   0.3 14.1 331:16 X

/proc/1296/maps lists no fewer than 111 mappings! Of these, we have:

*** Stack and heap:

081cf000-0a986000 rwxp 00000000 00:00 0
bffd3000-c0000000 rwxp fffd4000 00:00 0

Total: 39.7 MB + 0.2 MB

*** Page-allocated heap (see malloc docs for details):

Total: 38 MB

*** Device memory:

40014000-40018000 rw-s d4000000 03:02 65635      /dev/mem
40018000-40028000 rw-s 000a0000 03:02 65635      /dev/mem
4012d000-4192d000 rw-s d8000000 03:02 65635      /dev/mem
4192d000-41931000 rw-s d4000000 03:02 65635      /dev/mem
41931000-41941000 rw-s 000a0000 03:02 65635      /dev/mem
42135000-42935000 rw-s d5000000 03:02 65635      /dev/mem
42935000-43135000 rw-s d9800000 03:02 65635      /dev/mem
43135000-43935000 rw-s d5000000 03:02 65635      /dev/mem

Total: 48 MB (but some of it is the same video card RAM mapped in
              multiple times)

*** SysV mappings (I think SHM buffers shared with X clients):

Total: 12 MB

*** Text segment

Total: 1.5 MB

*** Shared libraries (text and data)

Total: 1.7 MB

Note that some of this memory is not really allocated RAM, and some
of it is RAM that can be easily evicted on demand and pulled back
in later from the binary image.

The total heap size surprised me however: nearly 80 MB.

Rich.

-- 
Richard Jones, Red Hat Inc. (London, UK) http://www.redhat.com/software/ccm
http://www.annexia.org/ Freshmeat projects: http://freshmeat.net/users/rwmj

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list