Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 08 Oct 1997 11:59:22 -0700
From:      David Greenman <dg@root.com>
To:        dag-erli@ifi.uio.no (Dag-Erling Coidan Sm rgrav)
Cc:        Gordon Henderson <gordon@drogon.net>, Mike Smith <mike@smith.net.au>, hackers@FreeBSD.ORG
Subject:   Re: Wheres all my memory going? 
Message-ID:  <199710081859.LAA22364@implode.root.com>
In-Reply-To: Your message of "08 Oct 1997 20:32:28 %2B0200." <xzpoh502jib.fsf@hrotti.ifi.uio.no> 

next in thread | previous in thread | raw e-mail | index | archive | help
>David Greenman <dg@root.com> writes:
>> memory as well. "top" is a poor utility for looking at this sort of thing
>> since this shows top CPU consumers, not top memory consumers. You really
>> should be using 'ps -alx' to look at this stuff.
>
>Speaking of top, can somebody explain to me why, according to top,
>some processes have a larger "RES" entry "SIZE" entry? Doesn't "RES"
>represent just a part of "SIZE"? I've only ever seen this on FreeBSD;
>on all other Unices I use (Solaris, IRIX, SunOS), "SIZE" is always
>larger than "RES".

   FreeBSD and other 4.4BSD derived OSes don't include the space consumed by
mmap'ed files (except the one being execed) in the 'SIZE'. The virtual size
as reported is the sum of text+data+bss+heap+stack. This is a "bug" of sorts,
but is difficult to fix.

-DG

David Greenman
Core-team/Principal Architect, The FreeBSD Project



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199710081859.LAA22364>