Re: [patch] lockless, scalable get_pid(), for_each_process()

Linus Torvalds (torvalds@transmeta.com)
Wed, 18 Sep 2002 09:59:49 -0700 (PDT)


On Wed, 18 Sep 2002, William Lee Irwin III wrote:
>
> The lockups I see range from hours to "it spun over the weekend, time
> to pull the plug".

But that is not because it walks the thread list once, it's because it
walks it, and loops walking in, and loops walking it some more.

All of which is avoided by just forcing the pid space to be "sufficiently
large".

Linus

-
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/