Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jul 1997 12:26:48 -0600 (MDT)
From:      Marc Slemko <marcs@znep.com>
To:        Terry Lambert <terry@lambert.org>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: figuring out size of unshared pages for a process
Message-ID:  <Pine.BSF.3.95.970707122340.11597E-100000@alive.znep.com>
In-Reply-To: <199707071810.LAA18043@phaeton.artisoft.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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. 





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.970707122340.11597E-100000>