From: Andries Brouwer <aebr@win.tue.nl>
To: Andrew Morton <akpm@digeo.com>
Cc: "Hanumanthu. H" <hanumanthu.hanok@wipro.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] pid_max hang again...
Date: Thu, 12 Sep 2002 22:23:14 +0200 [thread overview]
Message-ID: <20020912202314.GA12775@win.tue.nl> (raw)
In-Reply-To: <3D7FF3E7.61772A26@digeo.com>
On Wed, Sep 11, 2002 at 06:54:47PM -0700, Andrew Morton wrote:
> Andries Brouwer wrote:
> >
> > ...
> > Again. We have 2^30 = 10^9 pids. In reality there are fewer than 10^4
> > processes. So once in 10^5 pid allocations do we make a scan over
> > these 10^4 processes,
>
> Inside tasklist_lock? That's pretty bad from a latency point of
> view. A significant number of users would take the slower common
> case to avoid this.
That would be unwise of all these users.
As soon as people have so many processes that this becomes a problem,
then instead of making things slower they should make things faster
still, at the cost of a little bit of extra code.
Similarly, people that need real-time guarantees will probably add
that extra code.
Now that things are ten thousand times better than they were very
recently I find it a bit surprising that people worry. But yes, when
needed it is very easy to come with further improvements.
Once people stand up and say that they need Linux machines with 10^6
processes, or with 10^4 processes and real time guarantees, then we
must have a discussion about data structures, and a discussion about
standards.
The standards part is this: what values are allowed for p->pgrp,
p->tgid, p->session? Can these be arbitrary numbers? Or can the
positive values among them be restricted to pid's?
If this restriction can be imposed we can be slightly more efficient.
But these future discussions must not be about get_pid() but about
task list handling, scheduling, sending signals, all places that
today have for_each_task(p) ...
Andries
next prev parent reply other threads:[~2002-09-12 20:18 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2002-09-12 21:17 ` Rik van Riel
2002-09-12 21:21 ` yodaiken
2002-09-13 5:47 ` Hanumanthu. H
-- strict thread matches above, loose matches on Subject: below --
2002-09-07 9:06 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
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=20020912202314.GA12775@win.tue.nl \
--to=aebr@win.tue.nl \
--cc=akpm@digeo.com \
--cc=hanumanthu.hanok@wipro.com \
--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
all inboxes | Powered by JetHome®