From owner-freebsd-current Wed Jul 3 9: 6:48 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4EF9337B40B for ; Wed, 3 Jul 2002 09:06:39 -0700 (PDT) Received: from wall.polstra.com (wall-gw.polstra.com [206.213.73.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3445243E31 for ; Wed, 3 Jul 2002 09:06:38 -0700 (PDT) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.11.3/8.11.3) with ESMTP id g63G6bT52633; Wed, 3 Jul 2002 09:06:37 -0700 (PDT) (envelope-from jdp@vashon.polstra.com) Received: (from jdp@localhost) by vashon.polstra.com (8.12.4/8.12.4/Submit) id g5TImqoY007590; Sat, 29 Jun 2002 11:48:52 -0700 (PDT) Date: Sat, 29 Jun 2002 11:48:52 -0700 (PDT) Message-Id: <200206291848.g5TImqoY007590@vashon.polstra.com> To: current@freebsd.org From: John Polstra Cc: jack_zhangcl@hotmail.com Subject: Re: strange netstat output on Intel pro/1000 netperf testing In-Reply-To: References: Organization: Polstra & Co., Seattle, WA Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In article , zhang jack 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