Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jan 2010 14:50:05 GMT
From:      Efstratios Karatzas <gpf.kira@gmail.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/136759: iostat(8) displays wrong I/O statistics with -c 1
Message-ID:  <201001131450.o0DEo5JA010380@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/136759; it has been noted by GNATS.

From: Efstratios Karatzas <gpf.kira@gmail.com>
To: bug-followup@freebsd.org, vovets@gmail.com
Cc:  
Subject: Re: bin/136759: iostat(8) displays wrong I/O statistics with -c 1
Date: Wed, 13 Jan 2010 16:40:48 +0200

 Hi there,
 
 This is definitely not a bug. Take a look at the freebsd man page for iostat(8)
 
 http://www.freebsd.org/cgi/man.cgi?query=iostat&apropos=0&sektion=8&manpath=FreeBSD+8.0-RELEASE&format=html
 
 The manual clearly states that :
 "The first statistics that are printed are averaged over
  the system uptime.  To get information about the current activity, a
  suitable wait time should be specified, so that the subsequent sets of
  printed statistics will be averaged over that time."
 
 So the first line of statistics always contains the "average
 statistics" since the system started running.
 If you want to get the statistics for the next 5 secs try something
 like iostat -c 6 -d some_device
 
 Hope this helps
 
 -- 
 
 Efstratios "GPF" Karatzas



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