From owner-freebsd-stable@FreeBSD.ORG Thu May 12 14:43:38 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 152AB16A4E7 for ; Thu, 12 May 2005 14:43:38 +0000 (GMT) Received: from smtp801.mail.sc5.yahoo.com (smtp801.mail.sc5.yahoo.com [66.163.168.180]) by mx1.FreeBSD.org (Postfix) with SMTP id A29C443D62 for ; Thu, 12 May 2005 14:43:37 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: from unknown (HELO optimator.noacks.org) (noacks@swbell.net@70.240.205.64 with login) by smtp801.mail.sc5.yahoo.com with SMTP; 12 May 2005 14:43:36 -0000 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id 72EBC60ED; Thu, 12 May 2005 09:43:35 -0500 (CDT) Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05515-11; Thu, 12 May 2005 09:43:33 -0500 (CDT) Received: from [127.0.0.1] (optimator [192.168.1.11]) by optimator.noacks.org (Postfix) with ESMTP id 3909960D5; Thu, 12 May 2005 09:43:33 -0500 (CDT) Message-ID: <42836B8F.607@alumni.rice.edu> Date: Thu, 12 May 2005 09:43:27 -0500 From: Jonathan Noack User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Giorgos Keramidas References: <1115815807.8809.3.camel@buffy.york.ac.uk> <20050512103929.GB1320@orion.daedalusnetworks.priv> <200505121349.31508.dom@goodforbusiness.co.uk> <20050512131219.GB3107@orion.daedalusnetworks.priv> In-Reply-To: <20050512131219.GB3107@orion.daedalusnetworks.priv> X-Enigmail-Version: 0.91.0.0 OpenPGP: id=991D8195; url=http://www.noacks.org/cert/noackjr.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigED62D18CF5E1D63AF8EEAFF1" X-Virus-Scanned: amavisd-new at noacks.org cc: Dominic Marks 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 Reply-To: noackjr@alumni.rice.edu List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 14:43:38 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigED62D18CF5E1D63AF8EEAFF1 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 5/12/2005 8:12 AM, Giorgos Keramidas wrote: > On 2005-05-12 13:49, Dominic Marks wrote: >>On Thursday 12 May 2005 11:39, you wrote: >>>That's an option too. I'm currently trying to get top to display >>>something like this (80 columns are used for text, so use a slightly >>>wider terminal to view this properly: >>> >>>-------------------------------------------------------------------------------+ >>>last pid: 11090; load averages: 1.27, 1.26, 0.86 up 0+01:11:11 03:07:43| >>>71 processes: 3 running, 68 sleeping | >>>CPU states: 11.2% user, 0.0% nice, 77.1% system, 0.8% interrupt, 10.9% idle | >>>Mem: 50M Active, 348M Inact, 70M Wired, 20M Cache, 60M Buf, 6340K Free | >>>Swap: 5000M Total, 5000M Free | >>> | >>> PID USERNAME PRI NICE SIZE RES STATE TIME WCPU COMMAND/NTHR | >>> 4738 root 108 0 1360K 836K RUN 1:28 22.80% find/1 | >>> 638 giorgos -8 0 13496K 4672K pcmwr 1:33 1.03% mpg123/1 | >>>11062 giorgos 96 0 2428K 1520K RUN 0:00 1.54% top/1 | >>>-------------------------------------------------------------------------------+ >> >>If you don't mind I will share my thoughts on these changes. > > Thanks :) > >>>This includes at least the following changes (some not visible): >>> >>> + The entire header line is limited to the window width too. >>> + The USERNAME column is hard-limited to 8 characters. >> >>This makes me a little uneasy. Its a typical idiom, at least at my Business, >>to have usernames which are of the form 'firstnamelastname', for this reason >>they can be quite long and often the first 5-8 characters will be frequently >>repeated, for example the following contrived names: >> >>rogermoore -> rogermoo >>rogermoody -> rogermoo >>charlottelane -> charlott >>charlottedaniels -> charlott >> >>[...] >>If this behaviour could be turned on and off, I'd be very happy. > > Hmmm, not a bad idea. You have a good point here. > >>> + When the view is toggled between processes/threads, the NTHR part >>> becomes the thread ID of the particular thread. >> >>Okay, not really sure what this will look like to me but no need to explain >>I'll wait until they hit -CURRENT and see for myself. > > Instead of displaying a single named/7 line, which would mean that there > is a named process with 7 threads, in "thread mode" you would see 7 > lines with named/0, named/1, named/2, ... which would be the thread IDs > of the distinct threads. What happens if the command is long enough to overrun the screen? Is the thread information truncated and lost? I believe this was the argument for making a separate column for the thread info. -- Jonathan Noack | noackjr@alumni.rice.edu | OpenPGP: 0x991D8195 --------------enigED62D18CF5E1D63AF8EEAFF1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (MingW32) iD8DBQFCg2uUUFz01pkdgZURAtmjAJ4peR1/3j9GmrI1eIpxzxCD2dybzgCeOUDK /8VXLby6iGNl5yyxm2FrUS0= =otKo -----END PGP SIGNATURE----- --------------enigED62D18CF5E1D63AF8EEAFF1--