From nobody@FreeBSD.org  Fri Sep 27 23:12:09 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 4879DDF0
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 27 Sep 2013 23:12:09 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 369EA214F
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 27 Sep 2013 23:12:09 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r8RNC8Ur066179
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 27 Sep 2013 23:12:08 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r8RNC8fA066176;
	Fri, 27 Sep 2013 23:12:08 GMT
	(envelope-from nobody)
Message-Id: <201309272312.r8RNC8fA066176@oldred.freebsd.org>
Date: Fri, 27 Sep 2013 23:12:08 GMT
From: Olivier Cochard-Labbe <olivier@cochard.me>
To: freebsd-gnats-submit@FreeBSD.org
Subject: systat -if have invalid counters with 10Gb/s traffic
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         182448
>Category:       bin
>Synopsis:       systat(1): systat -if have invalid counters with 10Gb/s traffic
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    melifaro
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 27 23:20:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Thu Oct 17 21:04:37 UTC 2013
>Originator:     Olivier Cochard-Labbe
>Release:        9.2-RC4
>Organization:
BSD Router Project
>Environment:
FreeBSD bsdrp2.orange.bsdrp.net 9.2-RC4 FreeBSD 9.2-RC4 #0 r255473M: Fri Sep 20 23:47:45 CEST 2013     root@orange.bsdrp.net:/usr/obj/BSDRP.amd64/usr/local/BSDRP/BSDRP/FreeBSD/src/sys/amd64  amd64
>Description:
During a 10Gb/s network load test I found that systat didn't display good values with the default 5 seconds refresh (but it's fixed with less than 5 seconds refresh).

Here is an example with "systat -ifstat" + ":scale gbit" :
                    /0   /1   /2   /3   /4   /5   /6   /7   /8   /9   /10
     Load Average   |||

      Interface           Traffic               Peak                Total

            ix0  in      2.964 Gb/s          2.964 Gb/s          143.442 TB
                 out     0.000 Gb/s          0.000 Gb/s            0.566 KB


During the same network load, now with a 1 seconds refresh: "systat -ifstat 1" + ":scale mbit" :

"systat -ifstat" + ":scale mbit" :
                    /0   /1   /2   /3   /4   /5   /6   /7   /8   /9   /10
     Load Average   |||

      Interface           Traffic               Peak                Total
            ix0  in      9.827 Gb/s          9.830 Gb/s          143.396 TB
                 out     0.000 Gb/s          0.000 Gb/s            0.566 KB

=> Notice that the bar "Load Average" didn't change with the new refresh time.
>How-To-Repeat:
just start "systat -ifstat" under high usage of 10Gb/s NIC
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->melifaro 
Responsible-Changed-By: melifaro 
Responsible-Changed-When: Thu Oct 17 21:04:12 UTC 2013 
Responsible-Changed-Why:  
Take 

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