Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751307AbWI3RNX (ORCPT ); Sat, 30 Sep 2006 13:13:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751309AbWI3RNW (ORCPT ); Sat, 30 Sep 2006 13:13:22 -0400 Received: from emailer.gwdg.de ([134.76.10.24]:27347 "EHLO emailer.gwdg.de") by vger.kernel.org with ESMTP id S1751307AbWI3RNV (ORCPT ); Sat, 30 Sep 2006 13:13:21 -0400 Date: Sat, 30 Sep 2006 19:11:33 +0200 (MEST) From: Jan Engelhardt To: girish cc: "Eric W. Biederman" , linux-kernel@vger.kernel.org, William Pitcock Subject: Re: [PATCH] include children count, in Threads: field present in /proc//status (take-3) In-Reply-To: Message-ID: References: <0635847A-C149-412C-92B1-A974230381F8@dts.local> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Report: Content analysis: 0.0 points, 6.0 required _SUMMARY_ Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 888 Lines: 25 > > PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE > 22429 top 16.6% 0:21.12 1 18 20 1.35M 684K 1.77M 26.9M > ------------------------------------------------------------------------ > -------------------------------------------------------- > > Comments/opinions? I fail to see which column you mean. #TH perhaps? I think, that can be calculated under linux by (a) counting the directories in /proc/22429/task using readdir or (b) get the nlink of /proc/22429/task and subtract 2, which should give the same as (a), and, better than (a), should also be atomic Jan Engelhardt -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/