From owner-freebsd-hackers@FreeBSD.ORG Sat Feb 2 06:39:24 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9AFC16A41B for ; Sat, 2 Feb 2008 06:39:24 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outU.internet-mail-service.net (outU.internet-mail-service.net [216.240.47.244]) by mx1.freebsd.org (Postfix) with ESMTP id 9103A13C44B for ; Sat, 2 Feb 2008 06:39:24 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.40) with ESMTP; Fri, 01 Feb 2008 22:24:55 -0800 Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id 7B6E11270A9; Fri, 1 Feb 2008 22:24:54 -0800 (PST) Message-ID: <47A40CB6.5090001@elischer.org> Date: Fri, 01 Feb 2008 22:24:54 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Garrett Cooper References: <86k5lovrwj.fsf@ds4.des.no> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= , hackers@freebsd.org Subject: Re: vmstat layout X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Feb 2008 06:39:24 -0000 Garrett Cooper wrote: > > On Feb 1, 2008, at 3:26 AM, Dag-Erling Smørgrav wrote: > >> vmstat(1) tries very hard to fit everything in 80 columns. >> >> Unfortunately, it's been years since anyone had a machine where none of >> the columns overflowed. > > [...] > >> Removing columns is not an acceptable solution (it would break too many >> existing scripts), so I'm afraid we're going to have to make the output >> wider than 80 columns, unless someone can come up with a better solution. >> >> DES > > What about multiline entries with indentation to group fields for "human > readable output"? > > For example... > > procs memory page disks > faults cpu > r b w avm fre flt re pi po fr sr ad0 ad1 ad2 ad3 ad10 > ad12 in sy cs us sy id > 2 1 0 193M 1015M 444 2 8 0 4862 0 0 0 0 0 0 > 0 348 1297 4704 1 7 92 > > ...may become something like... > > field_title_0 field_title_1 field_title_2 > [subfields go here] [...] [...] > field_title_3 [...] field_title_n > [...] [...] [...] > > Does that make sense? not if you use awk to parse the output to cherrypick out the numbers you are intersted in... > > Cheers, > -Garrett_______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"