lkml.org 
[lkml]   [2002]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] lockless, scalable get_pid(), for_each_process() elimination, 2.5.35-BK
On Wed, Sep 18, 2002 at 09:48:24AM -0700, Linus Torvalds wrote:
>
> > On Wed, 18 Sep 2002, Linus Torvalds wrote:
> >
> > > I would suggest something like this:
> > > - make pid_max start out at 32k or whatever, to make "ps" look nice if
> > > nothing else.
> > > - every time we have _any_ trouble at all with looking up a new pid, we
> > > double pid_max.
> >
> > > + if (nr_threads > pid_max >> 4)

> The people who care about ps being pretty will probably never see more
> than 5 digits.

Agreed. While on the topic of number of digits: If this is in place
we could easily start out pid_max at say 9999, fitting the pids in
one less digit than we normally do now.

(I've always thought we should have sticked with pid_max at the
traditional Unix value of 32000, and not 32767).

Roger.

--
** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2600998 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
* The Worlds Ecosystem is a stable system. Stable systems may experience *
* excursions from the stable situation. We are currenly in such an *
* excursion: The stable situation does not include humans. ***************
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:26    [W:1.886 / U:0.228 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site