From owner-freebsd-current@FreeBSD.ORG Fri Apr 15 11:17:05 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 54C6116A4CE; Fri, 15 Apr 2005 11:17:05 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3290943D49; Fri, 15 Apr 2005 11:17:05 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from [127.0.0.1] (davidxu@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j3FBGxWj072892; Fri, 15 Apr 2005 11:17:01 GMT (envelope-from davidxu@freebsd.org) Message-ID: <425FA2AB.4070905@freebsd.org> Date: Fri, 15 Apr 2005 19:16:59 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050306 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Giorgos Keramidas 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> <20050415055604.N93987@lexi.siliconlandmark.com> <20050415104814.GA5278@orion.daedalusnetworks.priv> In-Reply-To: <20050415104814.GA5278@orion.daedalusnetworks.priv> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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: Fri, 15 Apr 2005 11:17:05 -0000 Giorgos Keramidas wrote: >On 2005-04-15 06:02, Andre Guibert de Bruet wrote: > > >>Please commit the following patch which unbreaks the display problems >>which appear on 80-column terminals with the THR column (The D would wrap >>and cause weird behavior): >> >>http://bling.properkernel.com/freebsd/top.machine.c.patch >> >> > >This seems reasonable. I only have UP machines, which don't need the change >from COMMAND to CMD, but Andrey Chernov has already brought to my attention >that adding the THR column broke the listing in SMP machines. > >David, do you think it's ok to change s/COMMAND/CMD/ or is that too silly to >do to fit THR in there? I can probably reduce the columns of THR to 4 too, >since I noticed that after 1500 threads the value of THR doesn't increase >anymore here; so, being able to display up to 9999 threads is ok I guess. > > > I think we should change THR columns to 4, 9999 threads is okay for me.