linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: dca@torrent.com
To: grg22@ai.mit.edu, Linux-MM@kvack.org
Subject: Re: getrusage
Date: Sun, 8 Aug 1999 14:02:25 -0400	[thread overview]
Message-ID: <199908081802.OAA23738@grappelli.torrent.com> (raw)

> You need another [new entry]: a vm id.

I'm missing something here.  Isn't the vmid implicit in the caller's
context?  That is, if I call getrusage, I'm asking about "my" vm
statistics.  /proc and gtop are sources of information about other
contexts.

> There is already a patch floating around on l-k that does that,
> although it reports via a /proc entry per process. Integrating it in
> rusage would be a nice addition. The possible unique ids are memory
> address of the kernel mm_struct (ugly, but zero cost), or the pid of
> the process who created the VM first.

> If you do fix this, could you please make all these entries
> *unsigned* longs?

Taking a hint from Solaris' treatment of getrlimit, how 'bout:

  typedef unsigned long rusage_t;

for the flexibility?

Is there interest in providing max values for the individual kinds of
memory (shared/data/stack) in addition to the overall maxrss?  It's
not what I need, and other implementations don't provide it.  They
don't even provide current values, only useless "integrals".

By the sound of it, I have maybe a week to produce something
acceptable if I want to see it in 2.4.  Is that about right?

-dca
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/

             reply	other threads:[~1999-08-08 18:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-08 18:02 dca [this message]
  -- strict thread matches above, loose matches on Subject: below --
1999-08-07  2:00 getrusage grg22
1999-08-03 14:02 getrusage dca
1999-08-03 14:21 ` getrusage Andi Kleen
1999-08-02 21:59 getrusage dca
1999-08-03 11:04 ` getrusage Andi Kleen

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=199908081802.OAA23738@grappelli.torrent.com \
    --to=dca@torrent.com \
    --cc=Linux-MM@kvack.org \
    --cc=grg22@ai.mit.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