Subject: Re: new pid allocation - any advantages?
To: None <>
From: Christos Zoulas <>
List: tech-kern
Date: 03/21/2003 15:38:22
In article <>,
Jaromir Dolecek <> wrote:

>The only place where I see pfind()/pgfind() being used on common
>code path is in kill(2).  Otherwise they are used in ioctl/ktrace/setup
>code, which not done frequently enough to matter. So speeding up
>pfind()/pgfind() doesn't seem to be really a priority, IMHO.
>If the only aim is to speed up pfind(), this could be easily
>done with a hash - PIDs have very good distribution.

ioctl() is called quite frequently (job control shells call it on
every command invocation). There is also the pfind() in selwakeup()...