From amesbury@paulaner.oitsec.umn.edu  Sat Dec  2 03:32:37 2006
Return-Path: <amesbury@paulaner.oitsec.umn.edu>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 4EAD916A407
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  2 Dec 2006 03:32:37 +0000 (UTC)
	(envelope-from amesbury@paulaner.oitsec.umn.edu)
Received: from mail.oitsec.umn.edu (mail.oitsec.umn.edu [128.101.238.120])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2749043C9D
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  2 Dec 2006 03:32:19 +0000 (GMT)
	(envelope-from amesbury@paulaner.oitsec.umn.edu)
Received: from localhost (localhost [127.0.0.1])
	by mail.oitsec.umn.edu (Postfix) with ESMTP id 360515642C
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  1 Dec 2006 21:32:36 -0600 (CST)
Received: from mail.oitsec.umn.edu ([127.0.0.1])
	by localhost (mail.oitsec.umn.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id ml7Y2spmZmqQ for <FreeBSD-gnats-submit@freebsd.org>;
	Fri,  1 Dec 2006 21:32:34 -0600 (CST)
Received: from paulaner.oitsec.umn.edu (paulaner.oitsec.umn.edu [160.94.247.212])
	by mail.oitsec.umn.edu (Postfix) with ESMTP id C083D5642B
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  1 Dec 2006 21:32:34 -0600 (CST)
Received: by paulaner.oitsec.umn.edu (Postfix, from userid 1169)
	id B308545060; Fri,  1 Dec 2006 21:32:34 -0600 (CST)
Message-Id: <20061202033234.B308545060@paulaner.oitsec.umn.edu>
Date: Fri,  1 Dec 2006 21:32:34 -0600 (CST)
From: Alan Amesbury <amesbury@umn.edu>
Reply-To: Alan Amesbury <amesbury@umn.edu>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: 'systat -if' display bug
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         106194
>Category:       amd64
>Synopsis:       'systat -if' display bug
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    yar
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 02 03:40:03 GMT 2006
>Closed-Date:    Fri Jan 05 13:31:51 GMT 2007
>Last-Modified:  Fri Jan 05 13:31:51 GMT 2007
>Originator:     Alan Amesbury
>Release:        FreeBSD 6.1-RELEASE-p10 amd64
>Organization:
University of Minnesota
>Environment:
System: FreeBSD [REDACTED].umn.edu 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #1: Thu Oct 12 14:14:54 CDT 2006 root@[REDACTED].umn.edu:/usr/obj/usr/src/sys/[REDACTED-NONGENERIC] amd64

This is a Dell PowerEdge 850 with HTT enabled.  The kernel's slightly
modified from GENERIC.

>Description:
For large amounts of total data, FreeBSD/amd64's 'systat -if' changes units
and appears to report in bits.  This is an example screenshot:

                    /0   /1   /2   /3   /4   /5   /6   /7   /8   /9   /10
     Load Average   |||| 

      Interface           Traffic               Peak                Total


            lo0  in      0.000 KB/s          0.000 KB/s            9.832 KB
                 out     0.000 KB/s          0.000 KB/s            9.832 KB

           bge1  in     90.720 MB/s        101.412 MB/s     2903082122259256.000 b
                 out     0.000 KB/s          0.000 KB/s            0.244 KB

           bge0  in      0.025 KB/s          0.395 KB/s          286.027 MB
                 out     0.065 KB/s          0.451 KB/s          406.052 MB


The host in question has been up about 50 days, so it's hard to say exactly
when this display bug gets tickled.  I'm pretty sure it's displaying in bits
because a) the small "b" is a good hint, and more importantly b) there's no
way this host has seen 2600+TB in only 50 days.  362885265282407 bytes (or
around 330TB) is a believeable number, however.

>How-To-Repeat:
Pass multiple terabytes through an interface.  Watch systat's counter.
>Fix:
I'm not sure, but I think this might have something to do with the stuff
around line 123 of

	src/usr.bin/systat/ifstat.c,v 1.2 2004/03/09 11:57:27 dwmalone Exp


The FreeBSD/i386 version doesn't exhibit this behavior, but the counter
appears to simply wrap at 4GB anyway.  I suspect that's a limitation of
the architecture, though.

Please let me know if you need additional information.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: yar 
State-Changed-When: Fri Jan 5 13:27:21 UTC 2007 
State-Changed-Why:  
This bug has already been reported and fixed. 
6.2-RELEASE will be free of it.  See also PR 99731. 


Responsible-Changed-From-To: freebsd-amd64->yar 
Responsible-Changed-By: yar 
Responsible-Changed-When: Fri Jan 5 13:27:21 UTC 2007 
Responsible-Changed-Why:  
This bug has already been reported and fixed. 
6.2-RELEASE will be free of it.  See also PR 99731. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=106194 
>Unformatted:
