From: bert hubert <bert.hubert@netherlabs.nl>
To: Andrew Morton <akpm@osdl.org>
Cc: Claudio Scordino <cloud.of.andor@gmail.com>,
linux-kernel@vger.kernel.org, luto@myrealbox.com,
kernel-janitors@lists.osdl.org
Subject: Re: [PATCH] Extending getrusage
Date: Fri, 21 Apr 2006 09:41:30 +0200 [thread overview]
Message-ID: <20060421074129.GA31972@outpost.ds9a.nl> (raw)
In-Reply-To: <20060420162140.0a03e227.akpm@osdl.org>
On Thu, Apr 20, 2006 at 04:21:40PM -0700, Andrew Morton wrote:
> I'd be reluctant to support this change without a compelling description of
> why we actually want it.
It offers nothing that isn't available elsewhere (I think), except more
cheaply. It also has the potential to be multiplatform one day. Right now to
get the CPU usage of a random pid, one has to implement the equivalent of
/proc/ parsing for each platform.
If at least Linux did 'getrusage for foreign pid', that would clean up
things up somewhat already.
It might even mean a 'portable top', and who knows, more unixes might
follow.
I for one would save work having a getrusage that does this.
Bert
--
http://www.PowerDNS.com Open source, database driven DNS Software
http://netherlabs.nl Open and Closed source services
next prev parent reply other threads:[~2006-04-21 7:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-20 15:21 [PATCH] Extending getrusage Claudio Scordino
2006-04-20 23:21 ` Andrew Morton
2006-04-21 7:41 ` bert hubert [this message]
2006-04-21 10:05 ` Claudio Scordino
2006-04-21 14:32 ` Ulrich Drepper
2006-04-22 10:25 ` Claudio Scordino
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=20060421074129.GA31972@outpost.ds9a.nl \
--to=bert.hubert@netherlabs.nl \
--cc=akpm@osdl.org \
--cc=cloud.of.andor@gmail.com \
--cc=kernel-janitors@lists.osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@myrealbox.com \
/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