From owner-freebsd-current@FreeBSD.ORG Tue May 10 15:32:10 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 898C516A4CE for ; Tue, 10 May 2005 15:32:10 +0000 (GMT) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 878AE43D3F for ; Tue, 10 May 2005 15:32:09 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from orion.daedalusnetworks.priv (aris.bedc.ondsl.gr [62.103.39.226])j4AFUYXO022194; Tue, 10 May 2005 18:30:34 +0300 Received: from orion.daedalusnetworks.priv (orion [127.0.0.1]) j4AFW7TT001282; Tue, 10 May 2005 18:32:07 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost)j4AFW7av001281; Tue, 10 May 2005 18:32:07 +0300 (EEST) (envelope-from keramida@freebsd.org) Date: Tue, 10 May 2005 18:32:07 +0300 From: Giorgos Keramidas To: Jiawei Ye Message-ID: <20050510153207.GA1256@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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: cc: freebsd-current@freebsd.org Subject: Re: Strange top(1) output 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: Tue, 10 May 2005 15:32:10 -0000 On 2005-05-10 23:28, Jiawei Ye wrote: > On 5/10/05, 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. > > What about the header mess? I don't think that has got to do with > usernames. Any ideas? This is a known problem of top's output code, which I meant to fix but never got around to. The header is printed as a single string, regardless of the output window size, so it may wrap around. The rest of the lines *are* limited by the window size, so they should never wrap at all. - Giorgos