Re: init's children list is long and slows reaping children.

From: Ingo Molnar
Date: Fri Apr 06 2007 - 16:22:02 EST



* Oleg Nesterov <oleg@xxxxxxxxxx> wrote:

> Probably it is I who missed something :)
>
> But why can't we do both changes? I think it is just ugly to use init
> to reap the kernel thread. Ok, wait4() can find zombie quickly if we
> do the ->children split. But /sbin/init could be swapped out, we still
> need to deliver SIGCHLD, etc.
>
> And I personally agree with Linus, it is nice to hide the kernel
> threads from /sbin/init (or whatever) completely.

yeah, they should all be made auto-reap - nobody is really interested in
their wait4()-driven completion. (any completion they do is via other
mechanisms)

Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/