9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "rob pike, esq." <rob@mightycheese.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] output of ps(1) memory usage
Date: Thu, 20 Feb 2003 17:18:55 -0800	[thread overview]
Message-ID: <41706557b18dff86f88ef2e43951ad0c@mightycheese.com> (raw)
In-Reply-To: <619e37293fcc0c4b393fce088c3ed209@plan9.bell-labs.com>

Also, in case it's not obvious, when you see something like
%% ps | grep rio
rob              13    0:04   0:46    1280K Rendez   rio
rob             133    0:00   0:00    1280K Pread    rio
rob             134    0:00   0:00    1280K Pread    rio
rob             135    0:00   0:00    1280K Rendez   rio
rob             136    0:00   0:00    1280K Pread    rio
rob             137    0:01   0:01    1280K Pread    rio
rob             138    0:00   0:00    1280K Await    rio
rob             153    0:00   0:00    1280K Await    rio
rob             193    0:00   0:00    1280K Await    rio
rob             863    0:00   0:00    1280K Await    rio
rob            1721    0:00   0:00    1280K Await    rio
rob            1828    0:00   0:00    1280K Await    rio
rob            2191    0:00   0:00    1280K Await    rio
%%
that 1280K is almost entirely a shared single copy of
the memory.  The only part not in common is a single
page (most likely) of per-process stack.

In other words, don't add up the memory column of
ps to decide how much memory is in use.

-rob



  reply	other threads:[~2003-02-21  1:18 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-21  0:51 okamoto
2003-02-21  1:10 ` Russ Cox
2003-02-21  1:18   ` rob pike, esq. [this message]
2003-02-21  2:23 ` David Presotto
2003-02-21  1:55 okamoto
2003-02-21  2:06 okamoto
2003-02-21  2:08 ` Russ Cox
     [not found] <uncover@beat.cc.titech.ac.jp>
2003-02-21  2:27 ` YAMANASHI Takeshi
2003-02-21  2:30   ` Russ Cox
2003-02-21  2:42   ` Scott Schwartz
2003-02-21  2:34 okamoto
2003-02-21  2:37 ` Russ Cox
2003-02-21  2:43 David Presotto
2003-02-21  3:09 okamoto
2003-02-21  5:47 YAMANASHI Takeshi
2003-02-21  5:55 ` Russ Cox
2003-02-21  7:09 YAMANASHI Takeshi
2003-02-21 15:06 ` Russ Cox

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=41706557b18dff86f88ef2e43951ad0c@mightycheese.com \
    --to=rob@mightycheese.com \
    --cc=9fans@cse.psu.edu \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).