Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jul 1997 11:51:30 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        marcs@znep.com (Marc Slemko)
Cc:        terry@lambert.org, hackers@FreeBSD.ORG
Subject:   Re: figuring out size of unshared pages for a process
Message-ID:  <199707071851.LAA18194@phaeton.artisoft.com>
In-Reply-To: <Pine.BSF.3.95.970707122340.11597E-100000@alive.znep.com> from "Marc Slemko" at Jul 7, 97 12:26:48 pm

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707071851.LAA18194>