From owner-freebsd-current@FreeBSD.ORG Sat Apr 16 20:55:13 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 C58DA16A4CE; Sat, 16 Apr 2005 20:55:13 +0000 (GMT) Received: from ylpvm43.prodigy.net (ylpvm43-ext.prodigy.net [207.115.57.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 482D443D2F; Sat, 16 Apr 2005 20:55:13 +0000 (GMT) (envelope-from julian@elischer.org) Received: from pimout2-ext.prodigy.net (pimout2-ext.prodigy.net [207.115.63.101])j3GKtEl8009681; Sat, 16 Apr 2005 16:55:14 -0400 X-ORBL: [68.124.205.128] Received: from [192.168.2.2] (adsl-68-124-205-128.dsl.snfc21.pacbell.net [68.124.205.128])j3GKt6cU427820; Sat, 16 Apr 2005 16:55:06 -0400 Message-ID: <42617BA9.8070101@elischer.org> Date: Sat, 16 Apr 2005 13:55:05 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050214 X-Accept-Language: en, hu MIME-Version: 1.0 To: David Xu References: <425CC7F8.3030803@samsco.org> <425CD009.6040208@freebsd.org> <20050413132603.GA39006@orion.daedalusnetworks.priv> <20050413140838.GA77217@renaissance.homeip.net> <20050413141957.GA40546@orion.daedalusnetworks.priv> <20050415055604.N93987@lexi.siliconlandmark.com> <425FA2AB.4070905@freebsd.org><425FFCF1.1080100@elischer.org> <20050415164941.E93987@lexi.siliconlandmark.com> <4260D92C.1030703@freebsd.org> In-Reply-To: <4260D92C.1030703@freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org cc: Jiawei Ye cc: Anthony Ginepro cc: Giorgos Keramidas 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: Sat, 16 Apr 2005 20:55:13 -0000 David Xu wrote: > Andre Guibert de Bruet wrote: > >> >> On Fri, 15 Apr 2005, Julian Elischer wrote: >> >>> Giorgos Keramidas wrote: >>> >>>> On 2005-04-15 19:16, David Xu wrote: >>>> >>>> I just checked what top does on SunOS, when a program has more than 999 >>>> threads and it seems to clip the number of threads to 999, as if >>>> something min(999, numthreads) is what is printed :-) >>> >>> >>> >>> you could proint " !!!" or "LOT" >>> or do a roman numeral approx. >>> e.g. MMC (2100).. what's roman for 10000? >>> or 2E4 :-) >> >> >> >> I realize that top isn't an exact science, but I find that >> approximations are generally a bad idea. I am in favor of axing the >> useless CPU column and reclaiming some useful screen space for the >> others... :) >> >> Andy >> >> | Andre Guibert de Bruet | Enterprise Software Consultant > >> | Silicon Landmark, LLC. | http://siliconlandmark.com/ > > > > > CPU column is not very useful when displaying process and > thread count, if it is only useful if it is displaying individual > thread which is activated by 'H' key. > > David Xu CPU and thread count column could be shared [CPU] )[1] [2] [3] ...[99] could be CPUnum.. that implies 1 thread 2..9999 is a thread count when H mode is on, then we just show [CPUNUM] wnen not we show [CPUNUM] or threadcount.