Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jul 2009 16:08:09 GMT
From:      Vladimir Krasovsky <vovets@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/136759: iostat displays wrong I/O statistics with -c 1
Message-ID:  <200907141608.n6EG89l8006249@www.freebsd.org>
Resent-Message-ID: <200907141610.n6EGA0TV040231@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help


>Number:         136759
>Category:       misc
>Synopsis:       iostat displays wrong I/O statistics with -c 1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 14 16:10:00 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Vladimir Krasovsky
>Release:        7.0
>Organization:
yandex.ru
>Environment:
FreeBSD host 7.0-STABLE FreeBSD 7.0-STABLE #1: Fri Feb 29 14:05:58 MSK 2008     root@host:/opt/obj/opt/src/sys/W5L_AMD64_ULE  amd64
>Description:
First line of iostat output always displays arbitrary (and wrong) numbers.
user@host:~$ for i in 1 2 3 4; do iostat -c $i -d da2; done
             da2 
  KB/t tps  MB/s 
  6.31  64  0.40 
             da2 
  KB/t tps  MB/s 
  6.31  64  0.40 
 12.64  53  0.65 
             da2 
  KB/t tps  MB/s 
  6.31  64  0.40 
  6.67  27  0.18 
  2.00  23  0.04 
             da2 
  KB/t tps  MB/s 
  6.31  64  0.40 
  2.00  23  0.04 
  3.27  11  0.04 
  7.25  16  0.11 

As you can see the first line is always the same. Though on different machines at different loads it may differ.
>How-To-Repeat:
for i in 1 2 3 4; do iostat -c $i -d da2; done
>Fix:
Use -c 2 or more.

>Release-Note:
>Audit-Trail:
>Unformatted:



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