From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 1 11:27:03 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 7031716A469 for ; Fri, 1 Feb 2008 11:27:03 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 3413113C44B for ; Fri, 1 Feb 2008 11:27:02 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 7AA082084 for ; Fri, 1 Feb 2008 12:26:52 +0100 (CET) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: -0.2/3.0 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on tim.des.no Received: from ds4.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 6348B207F for ; Fri, 1 Feb 2008 12:26:52 +0100 (CET) Received: by ds4.des.no (Postfix, from userid 1001) id 446F1844A1; Fri, 1 Feb 2008 12:26:52 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: hackers@freebsd.org Date: Fri, 01 Feb 2008 12:26:52 +0100 Message-ID: <86k5lovrwj.fsf@ds4.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: Subject: 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: Fri, 01 Feb 2008 11:27:03 -0000 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. The recent addition of -h helps with the avm and fre columns, but on a busy system (e.g. a Varnish server on a busy web site), pretty much every single column will overflow. If you have disks with names longer than three letters, even the two header lines will be misaligned! Here's an example from a mostly idle machine: procs memory page disks f= aults 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 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 --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no