From tom@atlas.uniserve.com  Wed Mar 20 09:41:23 1996
Received: from atlas.uniserve.com (atlas.uniserve.com [204.191.197.8])
          by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id JAA19939
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 20 Mar 1996 09:41:20 -0800 (PST)
Received: (from tom@localhost) by atlas.uniserve.com (8.6.12/8.6.12) id JAA23183; Wed, 20 Mar 1996 09:43:02 -0800
Message-Id: <199603201743.JAA23183@atlas.uniserve.com>
Date: Wed, 20 Mar 1996 09:43:02 -0800
From: Tom Samplonius <tom@atlas.uniserve.com>
Reply-To: tom@atlas.uniserve.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: iostat displays incorrect sps count
X-Send-Pr-Version: 3.2

>Number:         1090
>Category:       kern
>Synopsis:       iostat displays incorrect sps count
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    ken
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 20 09:50:00 PST 1996
>Closed-Date:    Sun Apr 30 21:08:44 PDT 2000
>Last-Modified:  Sun Apr 30 21:11:46 PDT 2000
>Originator:     Tom Samplonius
>Release:        FreeBSD 2.1-STABLE i386
>Organization:
TVS
>Environment:

atlas# uname -a
FreeBSD atlas.uniserve.com 2.1-STABLE FreeBSD 2.1-STABLE #0: Wed Mar 13 08:00:49
 PST 1996     tom@atlas.uniserve.com:/local/src/sys/compile/ATLAS  i386

>Description:

iostat displays negative values for "sps" for the first output line of iostat
on systems with heavy disk load.


>How-To-Repeat:

atlas# iostat
      tty          sd0           sd1           sd2           sd3          cpu
 tin tout sps tps msps  sps tps msps  sps tps msps  sps tps msps  us ni sy in id
   0    5 -25   1  1.0  -13  40  0.0    5   9  0.0   -8  22  0.0   1 19  4  2 74
atlas# iostat -w 10
      tty          sd0           sd1           sd2           sd3          cpu
 tin tout sps tps msps  sps tps msps  sps tps msps  sps tps msps  us ni sy in id
   0    5 -25   1  1.0  -12  40  0.0    5   9  0.0   -8  22  0.0   1 19  4  2 74
   1    9  74   5  0.0  457  61  0.0 1781  56  0.0  665  43  0.0   0 11  9  2 78
   0    8  49   3  0.0  286  42  0.0 1798  51  0.0  471  29  0.0   1 18  9  3 69
   2   10  52   4  0.0  344  50  0.0 1797  50  0.0  460  32  0.0   1 28 10  3 58
   4   24  49   3  0.0  334  48  0.0 2168  54  0.0  562  35  0.0   0 23 11  2 64
   2   11  41   3  0.0  382  53  0.0 1936  53  0.0  638  41  0.0   0 10  9  3 77
   3   22  25   2  0.0  414  58  0.0 1989  54  0.0  638  38  0.0   0 13 11  3 73
   2   10  21   1  0.0  415  58  0.0 1859  50  0.0  451  30  0.0   0  7  9  2 82
^C
atlas# iostat
      tty          sd0           sd1           sd2           sd3          cpu
 tin tout sps tps msps  sps tps msps  sps tps msps  sps tps msps  us ni sy in id
   0    5 -25   1  1.0  -12  40  0.0    5   9  0.0   -7  22  0.0   1 19  4  2 74
atlas#

>Fix:
	
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: scrappy 
State-Changed-When: Mon Oct 21 23:22:36 PDT 1996 
State-Changed-Why:  

Dust off the cobwebs - Confirm Status 
State-Changed-From-To: feedback->open 
State-Changed-By: scrappy 
State-Changed-When: Mon Oct 21 23:22:51 PDT 1996 
State-Changed-Why:  

Problem Still Exists 
State-Changed-From-To: open->suspended 
State-Changed-By: phk 
State-Changed-When: Mon Apr 13 01:52:02 PDT 1998 
State-Changed-Why:  
probably integer overflow. 
->suspended 

From: Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
To: FreeBSD Gnats <freebsd-gnats-submit@freebsd.org>
Cc:  
Subject: Re: kern/1090: iostat displays incorrect sps count
Date: Sun, 30 Apr 2000 16:53:35 +0200

 I can't seem to reproduce this on a 4.0-STABLE box using iostat -o -w
 10:
 
       tty        amrd0           da0           fd0         pass0             cpu
  tin tout sps tps msps  sps tps msps  sps tps msps  sps tps msps  us ni sy in id
    0   356909 111  9.0  886  66 15.1    0   0  0.0    0   0  0.0  25  0 14  7 54
    0    86612  66 15.1  193  13 78.8    0   0  0.0    0   0  0.0  19  0 16  9 56
    0    86065  60 16.7  844  44 22.5    0   0  0.0    0   0  0.0  19  0 11  8 62
    0    85864  63 16.0  206  13 75.8    0   0  0.0    0   0  0.0  15  0 12  7 66
    0    85469  54 18.6  218  12 82.7    0   0  0.0    0   0  0.0  15  0 10  7 68
    0    84916  49 20.6  791  40 24.8    0   0  0.0    0   0  0.0  13  0 10  6 70
 
 And this is a newsfeeder box which pushes over 200 GB a day of data
 around.
 
 Also, I see a commit of Justin T. Gibbs/Kenneth Merry which introduced
 usage of new device statistics code in at the end of 1998.
 
 -- 
 Jeroen Ruigrok vd Werven/Asmodai    asmodai@[wxs.nl|bart.nl|freebsd.org]
 Documentation nutter/C-rated Coder BSD: Technical excellence at its best  
 The BSD Programmer's Documentation Project <http://home.wxs.nl/~asmodai>
 Who looks under the surface does so at his own risk...
 
State-Changed-From-To: suspended->closed 
State-Changed-By: ken 
State-Changed-When: Sun Apr 30 21:08:44 PDT 2000 
State-Changed-Why:  
Can't reproduce the problem anymore, it was likely fixed when I rewrote 
iostat(8) to support the devstat subsystem. 


Responsible-Changed-From-To: freebsd-bugs->ken 
Responsible-Changed-By: ken 
Responsible-Changed-When: Sun Apr 30 21:08:44 PDT 2000 
Responsible-Changed-Why:  
I'm the iostat maintainer, if this crops up again I'll fix it. 
>Unformatted:
