Re: more on exit performance

David Laight <[email protected]>
Newsgroups gmane.os.netbsd.devel.performance
Message-ID <[email protected]>
> find_stopped_child() walks a linked-list of the proc's children.
> there are several ways to improve this:
> 
>  (2) for (pid == -1), we can keep the stopped and dead children on
>      separate lists, and only look at the list(s) that we care about.

The p_sibling list isn't used (much) so having a second list of
children in state SSTOP/SZOMB linking through p_sibling, but
with a different head is a possibility.

The only difficulty is kern_ktrace.c:ktrsetchildren which is carefully
non-recursive at the moment.
I don't think it is possible to traverse two sibling lists no-recursively!

	David

-- 
David Laight: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.