From owner-freebsd-current@FreeBSD.ORG Tue Nov 11 07:06:59 2008 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 37C851065678 for ; Tue, 11 Nov 2008 07:06:59 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id B9DCA8FC0C for ; Tue, 11 Nov 2008 07:06:58 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from bb.ipt.ru ([194.62.233.89]) by services.ipt.ru with esmtp (Exim 4.54 (FreeBSD)) id 1KznKz-0005TS-8F for freebsd-current@FreeBSD.org; Tue, 11 Nov 2008 10:06:57 +0300 To: freebsd-current@FreeBSD.org References: <27103767@bb.ipt.ru> From: Boris Samorodov Date: Tue, 11 Nov 2008 10:06:49 +0300 In-Reply-To: <27103767@bb.ipt.ru> (Boris Samorodov's message of "Tue\, 11 Nov 2008 09\:44\:24 +0300") Message-ID: <61022422@bb.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Subject: Re: netstat -w is loosing both input and output packets X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Nov 2008 07:06:59 -0000 Boris Samorodov writes: > there seems to be a problem with netstat which I discovered while > testing a new ale(4) driver. Here is an example of "netstat -w 1": > netstat -w 1: ftp://ftp.bsam.ru/pub/tmp/EeePC/netstat.ale.2 It seems to loose packets every tree seconds at this machine: ----- % netstat -w 2 input (Total) output packets errs bytes packets errs bytes colls 2 0 60 0 0 0 0 1 0 402 0 0 0 0 2 0 60 0 0 0 0 51 0 6208282 30 0 182046 0 8440 0 21163672 5337 0 616902 0 23006 0 24749564 14956 0 759066 0 11567 0 24424332 7709 0 750618 0 23135 0 24752190 15419 0 760848 0 11568 0 24424272 7710 0 750486 0 23134 0 24752190 15414 0 760452 0 11568 0 24424332 7707 0 750552 0 23135 0 24751942 15420 0 760716 0 11567 0 24424332 7707 0 750288 0 23136 0 24751018 15414 0 760518 0 11568 0 24424332 7708 0 750618 0 23134 0 24752250 15417 0 760650 0 11569 0 24424332 7710 0 750618 0 14804 0 8723228 9866 0 268325 0 1 0 150 0 0 0 0 2 0 60 0 0 0 0 ----- > uname -a: ftp://ftp.bsam.ru/pub/tmp/EeePC/uname.2 > kernel config: > ----- > include GENERIC > ident EEEBB > > nooptions INVARIANTS > nooptions INVARIANT_SUPPORT > nooptions WITNESS > nooptions WITNESS_SKIPSPIN > > options PSM_DEBUG=2 > ----- > > I've got similar results with age(4) at (FreeBSD host.ipt.ru 8.0-CURRENT > FreeBSD 8.0-CURRENT #2: Sun Nov 2 02:38:00 MSK 2008 > root@host.ipt.ru:/usr/obj/usr/src/sys/HOST i386) (the fourth line): > ----- > input (Total) output > packets errs bytes packets errs bytes colls > 4 0 164 3 0 212 0 > 6 0 1108 5 0 971 0 > 11 0 506 11 0 212 0 > 0 0 8073542 0 0 238802 0 > 6477 0 18872294 4126 0 558968 0 > 13361 0 18747910 8595 0 560724 0 > 13474 0 19331752 8743 0 566624 0 > 13913 0 19005679 8828 0 557727 0 > 13609 0 19357598 8668 0 566664 0 > ----- > kernel config: > ----- > include GENERIC > ident HOST > > nooptions INVARIANTS > nooptions INVARIANT_SUPPORT > nooptions WITNESS > nooptions WITNESS_SKIPSPIN > > device puc > > options SHMMAXPGS=65536 > options SEMMNI=40 > options SEMMNS=240 > options SEMUME=40 > options SEMMNU=120 > > options IPFIREWALL > options IPFIREWALL_VERBOSE > options IPFIREWALL_VERBOSE_LIMIT=100 > options IPFIREWALL_DEFAULT_TO_ACCEPT > ----- > > Both tests were just plain ftp session with big file transfer. WBR -- bsam Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve