public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: jw schultz <jw@pegasys.ws>
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] pid_max hang again...
Date: Tue, 10 Sep 2002 12:29:13 -0700	[thread overview]
Message-ID: <20020910192913.GB6085@pegasys.ws> (raw)
In-Reply-To: <20020910095423.GA12068@win.tue.nl>

On Tue, Sep 10, 2002 at 11:54:23AM +0200, Andries Brouwer wrote:
> On Mon, Sep 09, 2002 at 03:39:56PM -0700, jw schultz wrote:
> 
> > The current repeated scanning is awful.
> 
> I don't know what the problem is. The present scheme is very
> efficient on the average (since the pid space is very large,
> much larger than the number of processes, this scan is hardly
> ever done). All proposed alternatives are clumsy, incorrect,
> and much less efficient.

The scan itself i don't mind.  It is the rescan that bothers
me.  That is bother as in almost, but not quite, an itch.
"Awful" is perhaps an overstatement.  I agree the space
should be sparse enough to make rescans infrequent and i
have trouble imagining what these systems must be like that
the rescanning actually loops interminably.  Increasing
PID_MAX should make the pid space sparse enough to make the
problem implausible.

I was just responding to the frequent discussions of
"get_pid hang" and when i looked at get_pid said "yuck".

One of the bigger problems i have with the scan is the very
idea that there are pids that cannot be used because they
are still referenced but don't exist.  That sounds lax to
me.  I can understand the advantage of it.  The only place
it seems to impact is get_pid.  Keeping the task structs
around would mean coping with them in several other places.
It does occur to me that there could be some advantage to
having these terminated session, thread and process group
leaders show up in ps.

Well, i've put in my $0.02 plus interest.


-- 
________________________________________________________________
	J.W. Schultz            Pegasystems Technologies
	email address:		jw@pegasys.ws

		Remember Cernan and Schmitt

  reply	other threads:[~2002-09-10 19:24 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-07  9:06 [PATCH] pid_max hang again Manfred Spraul
2002-09-09 14:22 ` Hanumanthu. H
2002-09-09 15:07   ` Martin J. Bligh
2002-09-09 22:39     ` jw schultz
2002-09-10  9:54       ` Andries Brouwer
2002-09-10 19:29         ` jw schultz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-09-11  8:59 Hanumanthu. H
2002-09-11 17:19 ` Andries Brouwer
2002-09-11 20:23   ` jw schultz
2002-09-12  1:11   ` Rik van Riel
2002-09-12  1:54   ` Andrew Morton
2002-09-12 20:23     ` Andries Brouwer
2002-09-12 21:17       ` Rik van Riel
2002-09-12 21:21         ` yodaiken
2002-09-13  5:47       ` Hanumanthu. H
2002-09-07  8:16 Hanumanthu. H
2002-09-06 21:06 Manfred Spraul
2002-09-06 15:39 Ingo Molnar
2002-09-06 17:43 ` [PATCH] " Paul Larson

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=20020910192913.GB6085@pegasys.ws \
    --to=jw@pegasys.ws \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox