From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753899AbXDJPBz (ORCPT ); Tue, 10 Apr 2007 11:01:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753901AbXDJPBz (ORCPT ); Tue, 10 Apr 2007 11:01:55 -0400 Received: from ebiederm.dsl.xmission.com ([166.70.28.69]:48985 "EHLO ebiederm.dsl.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753899AbXDJPBy (ORCPT ); Tue, 10 Apr 2007 11:01:54 -0400 From: ebiederm@xmission.com (Eric W. Biederman) To: Oleg Nesterov Cc: Ingo Molnar , Robin Holt , Linus Torvalds , Chris Snook , linux-kernel@vger.kernel.org, Jack Steiner Subject: Re: init's children list is long and slows reaping children. References: <46159987.6090006@redhat.com> <20070406104301.GB19755@lnx-holt.americas.sgi.com> <20070406163100.GA554@tv-sign.ru> <20070406173249.GA2517@elte.hu> <20070410134814.GA28016@elte.hu> <20070410133808.GA163@tv-sign.ru> Date: Tue, 10 Apr 2007 09:00:50 -0600 In-Reply-To: <20070410133808.GA163@tv-sign.ru> (Oleg Nesterov's message of "Tue, 10 Apr 2007 17:38:08 +0400") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Oleg Nesterov writes: > No! That is why I suggest (a long ago, in fact) to move ->children into > ->signal_struct. When sub-thread forks, we set ->parent = group_leader. > We don't need forget_original_parent() until the last thead exists. This > also simplify do_wait(). > > However, this breaks the current ->pdeath_signal behaviour. In fact (and > Eric thinks the same) this _fixes_ this behaviour, but may break things. Thinking about this. As contingency planning if there is something in user space that actually somehow cares about pdeath_signal, from a threaded parent we can add a pdeath_signal list, to the task_struct and get rid of the rest of the complexity. I think I want to wait until someone screams first. This does very much mean that we can remove the complexity of a per thread ->children without fear, of having to revert everything. Eric