From owner-freebsd-current@FreeBSD.ORG Thu Apr 14 10:04:12 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94D7516A4CE; Thu, 14 Apr 2005 10:04:12 +0000 (GMT) Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id AEC2B43D60; Thu, 14 Apr 2005 10:04:11 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from orion.daedalusnetworks.priv (aris.bedc.ondsl.gr [62.103.39.226])j3EA3AGo006203; Thu, 14 Apr 2005 13:03:10 +0300 Received: from orion.daedalusnetworks.priv (orion [127.0.0.1]) j3EA4IZv027669; Thu, 14 Apr 2005 13:04:18 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost)j3EA4Gg4027668; Thu, 14 Apr 2005 13:04:16 +0300 (EEST) (envelope-from keramida@freebsd.org) Date: Thu, 14 Apr 2005 13:04:16 +0300 From: Giorgos Keramidas To: David Xu Message-ID: <20050414100416.GA27629@orion.daedalusnetworks.priv> References: <425CC7F8.3030803@samsco.org> <425CD009.6040208@freebsd.org> <20050413132603.GA39006@orion.daedalusnetworks.priv> <425D2163.4090603@freebsd.org> <20050413140838.GA77217@renaissance.homeip.net> <20050413141957.GA40546@orion.daedalusnetworks.priv> <425DA8D5.7070402@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <425DA8D5.7070402@freebsd.org> cc: freebsd-current@freebsd.org cc: Anthony Ginepro cc: Jiawei Ye Subject: Re: How does one know how many thread a process owns? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Apr 2005 10:04:12 -0000 On 2005-04-14 07:18, David Xu wrote: > When will you commit it ? the world is walking towards to threaded, > especially with multi-cores CPU will be out in few monthes. :-) Ok, I have a version that doesn't need to duplicate the sprintf() part of format_next_proc() and uses a wider column width for the THR count, since people have reported using a few thousand threads. Can you give this one a try too? Both patches are available at http://people.freebsd.org/~keramida/diff/top-threads.diff http://people.freebsd.org/~keramida/diff/top-threads2.diff