From owner-freebsd-current@FreeBSD.ORG Tue Oct 19 15:00:31 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 AFEB81065673; Tue, 19 Oct 2010 15:00:31 +0000 (UTC) (envelope-from lars@e.0x20.net) Received: from mail.0x20.net (mail.0x20.net [217.69.67.217]) by mx1.freebsd.org (Postfix) with ESMTP id 6D90E8FC12; Tue, 19 Oct 2010 15:00:31 +0000 (UTC) Received: by mail.0x20.net (Postfix, from userid 1002) id 3380F39DFE; Tue, 19 Oct 2010 16:40:56 +0200 (CEST) Date: Tue, 19 Oct 2010 16:40:56 +0200 From: Lars Engels To: John Baldwin Message-ID: <20101019144056.GY34884@e.0x20.net> Mail-Followup-To: Lars Engels , John Baldwin , freebsd-current@freebsd.org, Dan Nelson , Ed Maste References: <20101018174331.GA80017@sandvine.com> <20101018181142.GC5644@dan.emsphone.com> <20101018193010.GA88783@sandvine.com> <201010190854.38626.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xUyMHIOv46mebLva" Content-Disposition: inline In-Reply-To: <201010190854.38626.jhb@freebsd.org> X-Editor: VIM - Vi IMproved 7.2 X-Operation-System: FreeBSD 5.5-RELEASE-p19 User-Agent: Mutt/1.5.21 (2010-09-15) 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 15:00:31 -0000 --xUyMHIOv46mebLva Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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: > >=20 > > > 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 tim= es per > > > second, I think). If the value can be calculated accurately, it shou= ld be > > > printed. > >=20 > > 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. >=20 > All of the first line is that way though. To do this "right" you'd need = to > blank out the entire first line. >=20 > vm_stat and iostat on OS X have the current FreeBSD behavior (instant fir= st > line that summarizes all activity since uptime), so I'd be inclined to ju= st > 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. --xUyMHIOv46mebLva Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAky9rfcACgkQKc512sD3afi8DQCgkKTgtKgktPnKHK91l5qcKehL EEAAniXkgwVW/INOTOZ2U62Hz/R6ug+B =9l2y -----END PGP SIGNATURE----- --xUyMHIOv46mebLva--