From owner-freebsd-hackers Wed Oct 8 11:59:49 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA07960 for hackers-outgoing; Wed, 8 Oct 1997 11:59:49 -0700 (PDT) (envelope-from owner-freebsd-hackers) Received: from implode.root.com (implode.root.com [198.145.90.17]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA07951 for ; Wed, 8 Oct 1997 11:59:45 -0700 (PDT) (envelope-from root@implode.root.com) Received: from implode.root.com (localhost [127.0.0.1]) by implode.root.com (8.8.5/8.8.5) with ESMTP id LAA22364; Wed, 8 Oct 1997 11:59:22 -0700 (PDT) Message-Id: <199710081859.LAA22364@implode.root.com> To: dag-erli@ifi.uio.no (Dag-Erling Coidan Sm rgrav) cc: Gordon Henderson , Mike Smith , hackers@FreeBSD.ORG Subject: Re: Wheres all my memory going? In-reply-to: Your message of "08 Oct 1997 20:32:28 +0200." From: David Greenman Reply-To: dg@root.com Date: Wed, 08 Oct 1997 11:59:22 -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >David Greenman 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