From owner-freebsd-stable@FreeBSD.ORG Wed May 11 12:50:14 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5203916A4CE; Wed, 11 May 2005 12:50:14 +0000 (GMT) Received: from mail-gw1.york.ac.uk (mail-gw1.york.ac.uk [144.32.128.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42C8B43D1D; Wed, 11 May 2005 12:50:13 +0000 (GMT) (envelope-from gavin.atkinson@ury.york.ac.uk) Received: from buffy.york.ac.uk (buffy-128.york.ac.uk [144.32.128.165]) by mail-gw1.york.ac.uk (8.12.10/8.12.10) with ESMTP id j4BCo8MN029853; Wed, 11 May 2005 13:50:08 +0100 (BST) Received: from buffy.york.ac.uk (localhost [127.0.0.1]) by buffy.york.ac.uk (8.13.3/8.13.1) with ESMTP id j4BCo8UQ009507; Wed, 11 May 2005 13:50:08 +0100 (BST) (envelope-from gavin.atkinson@ury.york.ac.uk) Received: (from ga9@localhost) by buffy.york.ac.uk (8.13.3/8.13.1/Submit) id j4BCo8RQ009506; Wed, 11 May 2005 13:50:08 +0100 (BST) (envelope-from gavin.atkinson@ury.york.ac.uk) X-Authentication-Warning: buffy.york.ac.uk: ga9 set sender to gavin.atkinson@ury.york.ac.uk using -f From: Gavin Atkinson To: Giorgos Keramidas In-Reply-To: <20050510152646.GA1164@orion.daedalusnetworks.priv> References: <20050510105449.GA6223@orion.daedalusnetworks.priv> <20050510134409.GA691@lucy.pool-151-204-5-5.pskn.east.verizon.net> <20050510104018.M750@lexi.siliconlandmark.com> <20050510152646.GA1164@orion.daedalusnetworks.priv> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Wed, 11 May 2005 13:50:07 +0100 Message-Id: <1115815807.8809.3.camel@buffy.york.ac.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 FreeBSD GNOME Team Port X-York-MailScanner: Found to be clean X-York-MailScanner-From: gavin.atkinson@ury.york.ac.uk cc: freebsd-stable@freebsd.org Subject: Re: Strange top(1) output X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2005 12:50:14 -0000 On Tue, 2005-05-10 at 18:26 +0300, Giorgos Keramidas wrote: > On 2005-05-10 10:41, Andre Guibert de Bruet wrote: > > On Tue, 10 May 2005, Skip Ford wrote: > > > PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU CPU > > > COMM > > >AND > > >1352 skip 1 96 0 18968K 16276K select 0:21 0.00% 0.00% > > >Xor > > > 691 skip 1 8 0 4784K 3940K wait 0:08 0.00% 0.00% > > > mut > > > 684 skip 1 96 0 2336K 1948K select 0:07 0.00% 0.00% > > > scr > > > 667 root 1 4 0 24268K 23196K accept 0:06 0.00% 0.00% > > > per > > > 580 root 1 20 0 22896K 21948K pause 0:04 0.00% 0.00% > > > per > > > 447 root 1 96 0 2864K 1724K select 0:02 0.00% 0.00% > > > ntp > > > > What is the length of the longest username that you have on your system? > > Ah, yes! Good thought. This could affect the width of the USERNAME > column and push everything too far to the right. If this is the case, > I'd probably vote for optionally limiting the length of the username > column to, say, 8 columns at most. I would also vote for limiting it to 8 characters. Even with longer usernames, I suspect 8 characters will be enough to identify particular users (and if it's not there is always they UID view). Doing this would also allow us to eliminate the nasty code in src/usr.bin/top/machine.c which causes top to be unusable on a machine with a significant number of user accounts. See http://lists.freebsd.org/pipermail/freebsd-stable/2005-April/014275.html for details. Gavin