From owner-freebsd-hackers Mon Jul 7 11:56:08 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id LAA01277 for hackers-outgoing; Mon, 7 Jul 1997 11:56:08 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.50]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id LAA01270 for ; Mon, 7 Jul 1997 11:56:06 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id LAA18194; Mon, 7 Jul 1997 11:51:30 -0700 From: Terry Lambert Message-Id: <199707071851.LAA18194@phaeton.artisoft.com> Subject: Re: figuring out size of unshared pages for a process To: marcs@znep.com (Marc Slemko) Date: Mon, 7 Jul 1997 11:51:30 -0700 (MST) Cc: terry@lambert.org, hackers@FreeBSD.ORG In-Reply-To: from "Marc Slemko" at Jul 7, 97 12:26:48 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > > 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. Well, you have to do math on the output, but that's trivial. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.