Subject: Re: new pid allocation - any advantages?
To: None <tech-kern@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-kern
Date: 03/21/2003 15:38:22
In article <200303211131.h2LBVUO10127@s102-n054.tele2.cz>,
Jaromir Dolecek <jdolecek@netbsd.org> 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()...
christos