From owner-freebsd-hackers Wed Oct 8 14:00:27 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA14283 for hackers-outgoing; Wed, 8 Oct 1997 14:00:27 -0700 (PDT) (envelope-from owner-freebsd-hackers) Received: from usr05.primenet.com (tlambert@usr05.primenet.com [206.165.6.205]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA14278 for ; Wed, 8 Oct 1997 14:00:21 -0700 (PDT) (envelope-from tlambert@usr05.primenet.com) Received: (from tlambert@localhost) by usr05.primenet.com (8.8.5/8.8.5) id NAA11442; Wed, 8 Oct 1997 13:57:56 -0700 (MST) From: Terry Lambert Message-Id: <199710082057.NAA11442@usr05.primenet.com> Subject: Re: Wheres all my memory going? To: dg@root.com Date: Wed, 8 Oct 1997 20:57:56 +0000 (GMT) Cc: dag-erli@ifi.uio.no, gordon@drogon.net, mike@smith.net.au, hackers@FreeBSD.ORG In-Reply-To: <199710081859.LAA22364@implode.root.com> from "David Greenman" at Oct 8, 97 11:59:22 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > 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. You mean "clean pages which have not triggered copy-on-write are not counted", right? I don't think this is a bug. I think clean pages should not be counted, if the file is being used as swap store. That said, I think there are several cases where it would be *very* desirable to be able to flag clean pages as "must be resident in swap". Mostly, these are dataless configurations, such that the client machine does not hang on a page-in of a page for a running application should the NFS server go down. I admit that this is not very typical usage, but I think that has more to do with support technology (like read-only mounting of / and /usr) than relative desirability of the configuration. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.