From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751197AbXDIKnM (ORCPT ); Mon, 9 Apr 2007 06:43:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751185AbXDIKnM (ORCPT ); Mon, 9 Apr 2007 06:43:12 -0400 Received: from netops-testserver-4-out.sgi.com ([192.48.171.29]:50380 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751078AbXDIKnK (ORCPT ); Mon, 9 Apr 2007 06:43:10 -0400 Date: Mon, 9 Apr 2007 05:43:02 -0500 From: Robin Holt To: Oleg Nesterov Cc: "Eric W. Biederman" , Andrew Morton , Davide Libenzi , Ingo Molnar , Linus Torvalds , Robin Holt , Roland McGrath , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: [RFC, PATCH 1/3] introduce SYS_CLONE_MASK Message-ID: <20070409104302.GA14764@lnx-holt.americas.sgi.com> References: <20070408155337.GA126@tv-sign.ru> <20070408165750.GA149@tv-sign.ru> <20070409090643.GA121@tv-sign.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070409090643.GA121@tv-sign.ru> User-Agent: Mutt/1.4.2.2i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 09, 2007 at 01:06:43PM +0400, Oleg Nesterov wrote: > On 04/08, Eric W. Biederman wrote: > > There is a practical question how much we care about pstree being > > confused (I assume it doesn't crash). If this is just a confusion > > issue then I say go for it. PPID == 0 is a very legitimate way to say > > the kernel is the parent process. > > No, it doesn't crash. It just doesn't show kernel threads (ps ax is OK). > I didn't look into the sources, but I guess the reason is that pstree > assumes that the "root" of the tree is "pid == 1" process. I would say this is more a benefit than a problem. With a couple of these systems we are testing, the number of kernel threads is far greater than the number of user processes and having pstree not normally show them, but maybe have an option we add later to show them again would be beneficial. Thanks, Robin