User: Password:
|
|
Subscribe / Log in / New account

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

From:  Linus Torvalds <torvalds-AT-linux-foundation.org>
To:  Robin Holt <holt-AT-sgi.com>
Subject:  Re: init's children list is long and slows reaping children.
Date:  Thu, 5 Apr 2007 13:57:59 -0700 (PDT)
Cc:  "Eric W. Biederman" <ebiederm-AT-xmission.com>, Ingo Molnar <mingo-AT-elte.hu>, linux-kernel-AT-vger.kernel.org, Jack Steiner <steiner-AT-americas.sgi.com>
Archive-link:  Article, Thread



On Thu, 5 Apr 2007, Robin Holt wrote:
> 
> For testing, Jack Steiner create the following patch.  All it does
> is moves tasks which are transitioning to the zombie state from where
> they are in the children list to the head of the list.  In this way,
> they will be the first found and reaping does speed up.  We will still
> do a full scan of the list once the rearranged tasks are all removed.
> This does not seem to be a significant problem.

I'd almost prefer to just put the zombie children on a separate list. I 
wonder how painful that would be..

That would still make it expensive for people who use WUNTRACED to get 
stopped children (since they'd have to look at all lists), but maybe 
that's not a big deal.

Another thing we could do is to just make sure that kernel threads simply 
don't end up as children of init. That whole thing is silly, they're 
really not children of the user-space init anyway. Comments?

		Linus


(Log in to post comments)

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

Posted Aug 22, 2007 1:13 UTC (Wed) by africanj (guest, #46932) [Link]

I think right now our reaping task of 'bits' into the children's WUNSland and their to find out about whether they are in 'freeze-dried' condition or not, important else is we must 're-mind melt' these people.


Copyright © 2007, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds