From owner-freebsd-current@FreeBSD.ORG Fri Apr 15 10:48:24 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 F40F116A4CE; Fri, 15 Apr 2005 10:48:23 +0000 (GMT) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id E410843D49; Fri, 15 Apr 2005 10:48:20 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from orion.daedalusnetworks.priv (aris.bedc.ondsl.gr [62.103.39.226])j3FAlEdv025563; Fri, 15 Apr 2005 13:47:17 +0300 Received: from orion.daedalusnetworks.priv (orion [127.0.0.1]) j3FAmGid005321; Fri, 15 Apr 2005 13:48:16 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost)j3FAmEjt005320; Fri, 15 Apr 2005 13:48:14 +0300 (EEST) (envelope-from keramida@freebsd.org) Date: Fri, 15 Apr 2005 13:48:14 +0300 From: Giorgos Keramidas To: Andre Guibert de Bruet Message-ID: <20050415104814.GA5278@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> <20050415055604.N93987@lexi.siliconlandmark.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050415055604.N93987@lexi.siliconlandmark.com> cc: freebsd-current@freebsd.org cc: Anthony Ginepro cc: Jiawei Ye cc: David Xu 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 10:48:24 -0000 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.