From owner-freebsd-stable Sun Aug 4 23: 8:13 2002 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 44F5237B407 for ; Sun, 4 Aug 2002 23:08:06 -0700 (PDT) Received: from services.webwarrior.net (overlord-host99.dsl.visi.com [209.98.86.99]) by mx1.FreeBSD.org (Postfix) with ESMTP id A079143E97 for ; Sun, 4 Aug 2002 23:07:58 -0700 (PDT) (envelope-from friar_josh@webwarrior.net) Received: from twincat.vladsempire.net (12-218-27-215.client.mchsi.com [12.218.27.215]) by services.webwarrior.net (Postfix) with ESMTP id 14766838206; Mon, 5 Aug 2002 01:07:57 -0500 (CDT) Date: Wed, 14 Nov 2001 13:21:53 +0000 From: Josh Paetzel To: Ken Menzel Cc: freebsd-stable@FreeBSD.ORG Subject: Re: vmstat reports incorrect CPU usage Message-ID: <20011114132153.B91443@twincat.vladsempire.net> Mail-Followup-To: Ken Menzel , freebsd-stable@FreeBSD.ORG References: <021001c16d2f$7f512780$711663cf@icarz.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <021001c16d2f$7f512780$711663cf@icarz.com>; from kenm@icarz.com on Wed, Nov 14, 2001 at 12:12:10PM -0500 Lines: 22 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Nov 14, 2001 at 12:12:10PM -0500, Ken Menzel wrote: > I am having a problem with vmstat reporting what appear to be > incorrect CPU usage values on all my servers. I only use vmstat in > scripts so I did not notice until recently. I see an Open PR ( > http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/30360 ) but I am not > sure this is the same problem as I see a problem on both single and > multiple CPU's. Before I go chasing a ghost, does any one else see a > difference between CPU usage reported by 'top' and that reported by > 'vmstat'. If so is it possible that this is not a bug but a > difference in expected behavior of vmstat? Or is it possible vmstat > is broke? 'top' appears to report usage figures I would expect. > Thanks for any help. > > Ken Well, top reports instantanious figures. vmstats reports stats since the last reboot. If you run vmstat -c -w1 all of the reports after the first one will match what top is giving you. Josh To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message