Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jun 2002 11:48:52 -0700 (PDT)
From:      John Polstra <jdp@polstra.com>
To:        current@freebsd.org
Cc:        jack_zhangcl@hotmail.com
Subject:   Re: strange netstat output on Intel pro/1000 netperf testing
Message-ID:  <200206291848.g5TImqoY007590@vashon.polstra.com>
In-Reply-To: <F118GXAwxXSXI3acH0x0000054f@hotmail.com>
References:  <F118GXAwxXSXI3acH0x0000054f@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <F118GXAwxXSXI3acH0x0000054f@hotmail.com>,
zhang jack <jack_zhangcl@hotmail.com> wrote:
> Hi,
>  When I using netperf to test Intel Pro/1000 performance,
>  I got strange netstat output:
>  
>  #./netperf -H 10.0.0.2
>  TCP STREAM TEST to 10.0.0.2
>  
>  on 10.0.0.2, I start netstat -w 1 , but got strange output:
>  it seems the link is dowm and up ceaselessly.
>  
>             input        (Total)           output
>     packets  errs      bytes    packets  errs      bytes colls
>           1     0    1212460          1     0       9462     0
>         553     0    1206100        277     0      10458     0
>           1     0    1203800          1     0       9291     0
>         554     0    1214652        278     0      10461     0
>           1     0    1203816          1     0       9291     0
>         553     0    1214636        277     0      10461     0
>           1     0    1203888          1     0       9291     0
>         553     0    1214636        277     0      10461     0
>           4     0    1203784          2     0       9291     0
>         555     0    1214692        277     0      10465     0
>           1     0    1195140          1     0       9225     0
>         551     0    1214596        276     0      10457     0
>           1     0    1203768          1     0       9291     0
>         553     0    1214652        277     0      10461     0

That is just because the interface statistics are only updated once
per second, and your 1-second netstat delays are in sync with the
stats updates.  If you do "netstat -w 2" or more, this artifact
vanishes.

John
-- 
  John Polstra
  John D. Polstra & Co., Inc.                        Seattle, Washington USA
  "Disappointment is a good sign of basic intelligence."  -- Chögyam Trungpa


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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