From: P@draigBrady.com
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: How do you accurately determine a process' RAM usage?
Date: Thu, 07 Jul 2005 09:26:31 +0100 [thread overview]
Message-ID: <42CCE737.70802@draigBrady.com> (raw)
In-Reply-To: <20050706181623.3729d208.akpm@osdl.org>
Andrew Morton wrote:
> Calculating this stuff accurately is very expensive. You'll get a better
> answer using proc-pid-smaps.patch from -mm, but even that won't tell you
> things about sharing levels of the pages.
Great, thanks! I'll play around with this:
http://kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.13-rc1/2.6.13-rc1-mm1/broken-out/proc-pid-smaps.patch
Looks like it's been stable for 4 months?
Given that it's an independent /proc/$pid/smaps file,
it only needs to be queried when required and so
I wouldn't worry too much about cost. `top` wouldn't use it
for e.g., but specialised tools like mine would.
--
Pádraig Brady - http://www.pixelbeat.org
--
next prev parent reply other threads:[~2005-07-07 8:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-06 18:55 How do you accurately determine a process' RAM usage? P
2005-07-07 1:16 ` Andrew Morton
2005-07-07 8:26 ` P [this message]
2005-07-07 8:40 ` Andrew Morton
2005-07-07 10:42 ` Hugh Dickins
2005-07-12 9:44 ` P
2005-07-19 20:09 ` Mauricio Lin
2005-07-20 14:34 ` P
2005-07-20 15:32 ` Mauricio Lin
2005-07-20 15:48 ` P
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42CCE737.70802@draigBrady.com \
--to=p@draigbrady.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.