From owner-freebsd-net@freebsd.org Wed Sep 28 15:48:45 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 04412C01CBF for ; Wed, 28 Sep 2016 15:48:45 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com [IPv6:2a00:1450:400c:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8790D95E for ; Wed, 28 Sep 2016 15:48:44 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: by mail-wm0-x22b.google.com with SMTP id w84so242868566wmg.1 for ; Wed, 28 Sep 2016 08:48:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=hFIarGX49/ysy51A3b2FJa9R1n9s4XisePaymt9jv3A=; b=IB9aRIfwUszfarX46crzBiO2g+sIrcwTd83PBLRiHN77iUtUmWzoXKIxnhBFYzQMAt sZ2DaJ5RZIJEc2v+aT/Y2YD80uho2Daih87VcNmlsVpY9Kx9MA7IIbbEd/syv/Yd9jFc G8pYFvnIwqbQWLzjWtDzlksqFAU8AijONSsLB17XhM8dO4O4vVjMOkZHYcT3thA2y8Kz mvNJPjtGH5PNyxqkLG4GE5Bp6+7418QMFlFXuZ9PqljhTrl3Hm/6U44oX34pvRTqoxG0 ew5jLEzwPq9dd5aCqAG9gssMCgKOa+oV1nJ+SHNF47SFotCmHRzZb5UahzoRpSjD3Vr9 IDVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=hFIarGX49/ysy51A3b2FJa9R1n9s4XisePaymt9jv3A=; b=d7q61W7V2cFzufDTOpTdd/Lu1GIOIEoOPT2Emx7tlfZkx5dik5/PxUqyvvgmVjKSXK SNFKmqtpyXkdWVPAVvmq4z2qIFSw/6qEfPcJqWn2snPHZTkKtkWxRmY/+dDpoqR1zYjI 9LG4yZUvUX+Pd49GsvJ1+jBpn/KRAyh9mp9nsZyjIulA9ClXIXkPbCWEqh7pQO2v+y9y D2DgQsM2oGO4WcNsYA681TFyLpBnB3H7vGjHLkgq+YI/DkYvGkqUnvO9xJLz9UD4Ik6y eSkRuZuu0QiuIBMugj+qs4gs1MrtM0PIz85EvUROsxIYcqk2r/ufQ0Iq6k/UPsCV6a0a DGcQ== X-Gm-Message-State: AE9vXwM4DIgQ8RkpL7Ebjl4WXLwHRTAMmQChkKbdzFVyPPvX2hWkZFE0mYX3vvNY+dq6tQ== X-Received: by 10.194.61.243 with SMTP id t19mr27967501wjr.60.1475077722635; Wed, 28 Sep 2016 08:48:42 -0700 (PDT) Received: from macbook-air-de-benjamin-1.home (LFbn-1-7159-4.w90-116.abo.wanadoo.fr. [90.116.90.4]) by smtp.gmail.com with ESMTPSA id b193sm16303910wmg.18.2016.09.28.08.48.41 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Sep 2016 08:48:41 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: netstat counts input traffic twice From: Ben RUBSON In-Reply-To: <6d052c64-2ca2-7839-c297-e764634be648@selasky.org> Date: Wed, 28 Sep 2016 17:48:40 +0200 Content-Transfer-Encoding: 7bit Message-Id: References: <94953762-4397-476D-AD61-A39914F27938@gmail.com> <6d052c64-2ca2-7839-c297-e764634be648@selasky.org> To: FreeBSD Net X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 15:48:45 -0000 > On 28 Sep 2016, at 16:01, Hans Petter Selasky wrote: > > On 09/23/16 19:59, Ben RUBSON wrote: >> netstat -b -I mlxen1 > > Hi Ben, > > Does the attached patch make any difference? > > --HPS > Hi HPS, Many thanks for your support ! I tested your patch, but unfortunately it does not help. Here is iperf on sending side : [ ID] Interval Transfer Bandwidth [ 3] 0.0- 1.0 sec 233 MBytes 1.95 Gbits/sec [ 3] 1.0- 2.0 sec 660 MBytes 5.54 Gbits/sec [ 3] 2.0- 3.0 sec 686 MBytes 5.76 Gbits/sec [ 3] 3.0- 4.0 sec 686 MBytes 5.75 Gbits/sec [ 3] 4.0- 5.0 sec 686 MBytes 5.75 Gbits/sec [ 3] 5.0- 6.0 sec 688 MBytes 5.77 Gbits/sec [ 3] 6.0- 7.0 sec 688 MBytes 5.77 Gbits/sec [ 3] 7.0- 8.0 sec 687 MBytes 5.76 Gbits/sec [ 3] 8.0- 9.0 sec 686 MBytes 5.75 Gbits/sec [ 3] 9.0-10.0 sec 686 MBytes 5.75 Gbits/sec [ 3] 0.0-10.0 sec 6.23 GBytes 5.36 Gbits/sec And here is netstat on receiving side, with or without patch : # /usr/bin/netstat -w 1 -i mlxen1 input (Total) output packets errs idrops bytes packets errs bytes colls 0 0 0 852 4 0 548 0 0 0 0 252430522 4676 0 327468 0 0 0 0 1245732732 32177 0 2252568 0 0 0 0 1438165382 41366 0 2895728 0 0 0 0 1456239938 40797 0 2855898 0 0 0 0 1446072064 40662 0 2846448 0 0 0 0 1461133634 41127 0 2878916 0 0 0 0 1449935660 40694 0 2848758 0 0 0 0 1460081628 40565 0 2839658 0 0 0 0 1458465644 40634 0 2844418 0 0 0 0 1437992824 40706 0 2849554 0 0 0 0 415029242 16118 0 1128522 0 0 0 0 364 1 0 178 0 And my patched netstat : # netstat -w 1 -i mlxen1 input (Total) output packets errs idrops bytes packets errs bytes colls 3 0 0 156 2 0 304 0 13802 0 0 127953064 7091 0 368956 0 69634 0 0 643667952 36098 0 1877204 0 78299 0 0 724143932 41008 0 2132524 0 77700 0 0 717102432 40430 0 2102468 0 80672 0 0 742520072 41880 0 2177868 0 75676 0 0 697621964 39367 0 2047172 0 78923 0 0 727609020 40921 0 2128000 0 79346 0 0 730241416 40879 0 2125816 0 79342 0 0 730034956 40867 0 2125204 0 80737 0 0 743042220 41592 0 2162892 0 16795 0 0 154340716 8652 0 450096 0 1 0 0 52 1 0 160 0 Ben