Date: Wed, 28 Sep 2016 17:48:40 +0200 From: Ben RUBSON <ben.rubson@gmail.com> To: FreeBSD Net <freebsd-net@freebsd.org> Subject: Re: netstat counts input traffic twice Message-ID: <AED1E1B1-424E-4932-A7F5-80410505E15C@gmail.com> In-Reply-To: <6d052c64-2ca2-7839-c297-e764634be648@selasky.org> References: <94953762-4397-476D-AD61-A39914F27938@gmail.com> <6d052c64-2ca2-7839-c297-e764634be648@selasky.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> On 28 Sep 2016, at 16:01, Hans Petter Selasky <hps@selasky.org> wrote: > > On 09/23/16 19:59, Ben RUBSON wrote: >> netstat -b -I mlxen1 > > Hi Ben, > > Does the attached patch make any difference? > > --HPS > <en_port.c.diff> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AED1E1B1-424E-4932-A7F5-80410505E15C>