[lkml]   [2002]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [patch] lockless, scalable get_pid(), for_each_process() elimination, 2.5.35-BK
On Wed, 18 Sep 2002, Linus Torvalds wrote:
> On Wed, 18 Sep 2002, Rik van Riel wrote:
> >
> > On second thought ... yes there's a reason. Suppose you have
> > 100000 threads on your box already, how long is it going to
> > take to walk them all to figure out the pid distribution ?

> The pid space is not a uniform distribution, which your made-up-example
> depends on. So you usually walk the 100000 threads _once_, and then you
> don't have to walk them again for quite a long time.

Agreed, you're right there. On the other hand, walking the threads
_once_ will take 1.5 minutes on a 500 MHz PII (according to Ingo's

That's about 18 times the timeout for the NMI oopser and will cause
people real trouble.


Spamtrap of the month:

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

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