From owner-freebsd-current@FreeBSD.ORG Tue Oct 19 16:32:17 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51DB5106566B; Tue, 19 Oct 2010 16:32:17 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 1FB1C8FC12; Tue, 19 Oct 2010 16:32:17 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id A186B46B9C; Tue, 19 Oct 2010 12:32:16 -0400 (EDT) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id AF68A8A009; Tue, 19 Oct 2010 12:32:15 -0400 (EDT) From: John Baldwin To: Lars Engels Date: Tue, 19 Oct 2010 11:23:00 -0400 User-Agent: KMail/1.13.5 (FreeBSD/7.3-CBSD-20100819; KDE/4.4.5; amd64; ; ) References: <20101018174331.GA80017@sandvine.com> <201010190854.38626.jhb@freebsd.org> <20101019144056.GY34884@e.0x20.net> In-Reply-To: <20101019144056.GY34884@e.0x20.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201010191123.00199.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Tue, 19 Oct 2010 12:32:15 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.96.3 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.9 required=4.2 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on bigwig.baldwin.cx Cc: Ed Maste , freebsd-current@freebsd.org, Dan Nelson Subject: Re: CPU report in first line of "vmstat 1" is meaningless X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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, 19 Oct 2010 16:32:17 -0000 On Tuesday, October 19, 2010 10:40:56 am Lars Engels wrote: > On Tue, Oct 19, 2010 at 08:54:38AM -0400, John Baldwin wrote: > > On Monday, October 18, 2010 3:30:11 pm Ed Maste wrote: > > > On Mon, Oct 18, 2010 at 01:11:42PM -0500, Dan Nelson wrote: > > > > > > > Maybe only blank it out on 32-bit machines? It's a long, and a 64-bit > > > > cp_time value essentially won't roll over (at 1 billion increments per > > > > second it will roll over in 500 years; we currently increment 133 times per > > > > second, I think). If the value can be calculated accurately, it should be > > > > printed. > > > > > > Well, it won't roll over, but it's still different from all following > > > lines (in that it effectively shows user/system/idle CPU usage since > > > boot on the first line, and a snapshot over the last interval from then > > > on). I think it's still better to avoid printing it in that case. > > > > All of the first line is that way though. To do this "right" you'd need to > > blank out the entire first line. > > > > vm_stat and iostat on OS X have the current FreeBSD behavior (instant first > > line that summarizes all activity since uptime), so I'd be inclined to just > > leave the existing behavior. > > I'd be very happy if all vmstat and iostat would get a command line > switch to suppress the "summary since last reboot" line. > This information may be useful for some cases but in other cases, like > creating performance data for monitoring systems like Icinga / Nagios > one has to remove the first line(s) manually. I would be fine with that, but I wouldn't alter the format of that line by default. -- John Baldwin