Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Nov 2001 13:21:53 +0000
From:      Josh Paetzel <friar_josh@webwarrior.net>
To:        Ken Menzel <kenm@icarz.com>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: vmstat reports incorrect CPU usage
Message-ID:  <20011114132153.B91443@twincat.vladsempire.net>
In-Reply-To: <021001c16d2f$7f512780$711663cf@icarz.com>; from kenm@icarz.com on Wed, Nov 14, 2001 at 12:12:10PM -0500
References:  <021001c16d2f$7f512780$711663cf@icarz.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011114132153.B91443>