From owner-freebsd-questions Fri Nov 3 05:36:54 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id FAA11833 for questions-outgoing; Fri, 3 Nov 1995 05:36:54 -0800 Received: from gutso.foxharp.boston.ma.us (root@gutso.foxharp.boston.ma.us [204.253.111.241]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id FAA11826 for ; Fri, 3 Nov 1995 05:36:51 -0800 Received: (from pgf@localhost) by gutso.foxharp.boston.ma.us (8.7.1/8.7.1) id IAA09256; Fri, 3 Nov 1995 08:36:16 -0500 Message-Id: <199511031336.IAA09256@gutso.foxharp.boston.ma.us> To: freebsd-questions@FreeBSD.org Subject: Re: what's counted in RSS and VSZ? In-reply-to: davidg's message of Thu, 02 Nov 1995 19:31:51 -0800. <199511030331.TAA02964@corbin.Root.COM> Reply-to: pgf@foxharp.boston.ma.us Date: Fri, 03 Nov 1995 08:36:15 -0500 From: Paul Fox Sender: owner-questions@FreeBSD.org Precedence: bulk > > - how can RSS ever be bigger than VSZ? > > Except for the program binary itself, the VSZ doesn't include mapped files. > Shared libraries are mapped files. I thought about "fixing" this, but it is > very complicated and probably has too much associated overhead. I may still > try to fix it for a future release of FreeBSD. > > > - why are the VSZ numbers for the two different builds different? > > In the shared case, the VSZ doesn't include the code in the shared > libraries. In the non-shared case it does. > thanks for the replies. the reason i asked is that i'm trying to guesstimate the future memory footprint (text+data+bss+heap) for an app that will not be running under freebsd at all (when i'm finished porting it), but which does run there now. assuming similar compiler, similar library size, i guess the number i should be using is the non-shared VSZ number... thanks. paul --------------------- paul fox, pgf@foxharp.boston.ma.us (arlington, ma)