From owner-freebsd-hackers Mon Jul 7 11:26:47 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id LAA28862 for hackers-outgoing; Mon, 7 Jul 1997 11:26:47 -0700 (PDT) Received: from scanner.worldgate.com (scanner.worldgate.com [198.161.84.3]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id LAA28857 for ; Mon, 7 Jul 1997 11:26:45 -0700 (PDT) Received: from znep.com (uucp@localhost) by scanner.worldgate.com (8.8.5/8.8.5) with UUCP id MAA18855; Mon, 7 Jul 1997 12:25:24 -0600 (MDT) Received: from localhost (marcs@localhost) by alive.znep.com (8.7.5/8.7.3) with SMTP id MAA12239; Mon, 7 Jul 1997 12:26:48 -0600 (MDT) Date: Mon, 7 Jul 1997 12:26:48 -0600 (MDT) From: Marc Slemko To: Terry Lambert cc: hackers@FreeBSD.ORG Subject: Re: figuring out size of unshared pages for a process In-Reply-To: <199707071810.LAA18043@phaeton.artisoft.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Mon, 7 Jul 1997, Terry Lambert wrote: > > I have a large number of the same process (Apache) running. I want to > > figure out how much each process takes, ignoring all shared pages. > > > > I don't see any option to ps to give me what I want. Am I missing > > something? > > man ps and look at "-o" and "-O". I believe you can get the information > you want by taking out the test size from the vsize. Doesn't the vsize include all the shared pages, but the text size only includes shared text pages? In this case, because there are a bunch of children generated from the parent forking (without execing), there are a lot more shared pages that are not text pages and are tagged for copy on write.