The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Werner Almesberger <wa@almesberger.net>
To: "Albert D. Cahalan" <acahalan@cs.uml.edu>
Cc: linux-kernel@vger.kernel.org, mbligh@aracnet.com, jw@pegasys.ws,
	rml@tech9.net, andersen@codepoet.org, woofwoof@hathway.com
Subject: Re: ps performance sucks
Date: Tue, 5 Nov 2002 20:37:04 -0300	[thread overview]
Message-ID: <20021105203704.K1408@almesberger.net> (raw)
In-Reply-To: <200211052139.gA5LdIc373506@saturn.cs.uml.edu>; from acahalan@cs.uml.edu on Tue, Nov 05, 2002 at 04:39:18PM -0500

Albert D. Cahalan wrote:
> If you're going to do that, then specify stuff via the filename:
> /proc/12345/hack/80basic,20pids,20uids,40argv,4tty,4stat

Well, you'd get the numbers (sizes) from the kernel, as a
response. Of course, you could define the interface such that
the query (after all, that's what it is) contains the full
field name plus size information, and the kernel just says
"EINVAL" if it doesn't like it, but then you lose some
flexibility. Might not be a big deal, though.

Yeah, perhaps it's actually better to avoid being overly
clever. How frequently are ps and friends hit by the removal
of fields or size changes anyway ?

Oh, BTW, it would be more like /proc/hack/<query>, so you do
all PIDs in one sweep.

> Not that I care for dealing with the above!

Well, that's what programs are for :-)

- Werner

-- 
  _________________________________________________________________________
 / Werner Almesberger, Buenos Aires, Argentina         wa@almesberger.net /
/_http://www.almesberger.net/____________________________________________/

  parent reply	other threads:[~2002-11-05 23:31 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-05 21:39 ps performance sucks Albert D. Cahalan
2002-11-05 22:46 ` Rik van Riel
2002-11-05 22:48   ` Robert Love
2002-11-05 23:23     ` Miquel van Smoorenburg
2002-11-05 23:37   ` Albert D. Cahalan
2002-11-05 23:37 ` Werner Almesberger [this message]
2002-11-06  0:10   ` Albert D. Cahalan
2002-11-06  1:29     ` Werner Almesberger
2002-11-07 17:19 ` Bill Davidsen
2002-11-07 20:42   ` Albert D. Cahalan
2002-11-07 21:05     ` Andrew Morton
2002-11-07 22:02       ` Albert D. Cahalan
2002-11-07 22:21         ` Andrew Morton
2002-11-08 21:05     ` Bill Davidsen

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=20021105203704.K1408@almesberger.net \
    --to=wa@almesberger.net \
    --cc=acahalan@cs.uml.edu \
    --cc=andersen@codepoet.org \
    --cc=jw@pegasys.ws \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mbligh@aracnet.com \
    --cc=rml@tech9.net \
    --cc=woofwoof@hathway.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