From owner-freebsd-net@freebsd.org Tue Jun 20 17:05:19 2017 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 A77F4D9D351 for ; Tue, 20 Jun 2017 17:05:19 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: from mail.ignoranthack.me (ignoranthack.me [199.102.79.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7684066CB7 for ; Tue, 20 Jun 2017 17:05:19 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: from [10.246.11.20] (wsip-70-166-117-91.ph.ph.cox.net [70.166.117.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sbruno@ignoranthack.me) by mail.ignoranthack.me (Postfix) with ESMTPSA id 215321928AB for ; Tue, 20 Jun 2017 17:05:17 +0000 (UTC) From: Sean Bruno Subject: Re: igb stats double counting in 12-CURRENT r319025 To: freebsd-net@freebsd.org References: Message-ID: Date: Tue, 20 Jun 2017 11:05:16 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="7aJ0eSIddRmegBUmGIIdUDnhn6xted7SU" 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: Tue, 20 Jun 2017 17:05:19 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --7aJ0eSIddRmegBUmGIIdUDnhn6xted7SU Content-Type: multipart/mixed; boundary="J9xU5j9h7H3le3kClVUAaJNtswIeHxktq"; protected-headers="v1" From: Sean Bruno To: freebsd-net@freebsd.org Message-ID: Subject: Re: igb stats double counting in 12-CURRENT r319025 References: In-Reply-To: --J9xU5j9h7H3le3kClVUAaJNtswIeHxktq Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 06/03/17 01:25, Ben Woods wrote: > Hi everyone, >=20 > I have noticed my networking statistics appear to be double counting on= two > of my FreeBSD 12-CURRENT boxes running r319025. Could someone please he= lp > me to find the problem (I believe it is likely to be a bug in the > networking driver). >=20 > I discovered the double counting by comparing the output of "systat > -ifstat" (which reports 988 KB/s) with the output of "iftop -B" (which > reports 491 KB/s). I know that iftop is the correct one, because my > internet speed only gives me around ~500 KB/s unfortunately. >=20 > # systat -ifstat -match igb0 > ... > Interface Traffic Peak Tot= al > igb0 in 988.008 KB/s 988.008 KB/s 36.29= 5 GB > out 16.953 KB/s 16.953 KB/s 295.77= 4 GB >=20 >=20 > # iftop -i igb0 -B > ... > TX: cum: 31.7KB peak: > 9.69KB > rates: 9.69KB 7.92KB 7.92KB > RX: 1.54MB > 491KB > 491KB 394KB 394KB >=20 >=20 > The two interfaces in these boxes are: >=20 > $ pciconf -lvv | grep igb1 -A4 > igb1@pci0:4:0:0: class=3D0x020000 card=3D0x00008086 chip=3D0x153= 98086 > rev=3D0x03 hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D 'I211 Gigabit Network Connection' > class =3D network > subclass =3D ethernet >=20 > $ pciconf -lvv | grep igb0 -A4 > igb0@pci0:8:0:0: class=3D0x020000 card=3D0x15331849 chip=3D0x153= 38086 > rev=3D0x03 hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D 'I210 Gigabit Network Connection' > class =3D network > subclass =3D ethernet >=20 > Regards, > Ben >=20 > -- > From: Benjamin Woods > woodsb02@gmail.com > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >=20 Huh ... I'll look at this today. If you get a chance, throw this over into bugzilla and tag me in it. sean --J9xU5j9h7H3le3kClVUAaJNtswIeHxktq-- --7aJ0eSIddRmegBUmGIIdUDnhn6xted7SU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQGTBAEBCgB9FiEE6MTp+IA1BOHj9Lo0veT1/om1/LYFAllJVc1fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEU4 QzRFOUY4ODAzNTA0RTFFM0Y0QkEzNEJERTRGNUZFODlCNUZDQjYACgkQveT1/om1 /LYQ7wgAv3q0LKkoFrEOntz+8HB0ul63cZPFPHrCE+/NBURctdq37Pc8zG4hLelH gywaEPrq8ciWA+j3Ie1qztXcnUlfmuWAvRFoGf5zKGDbQCpE2TUqkKtel1pjyKcf 6fieR+kgT8mU9MXAs8nxlL2oVf/lON+ExyJ4GqRcMhvd7xF3RNFfE56eWevjXZts rPMJ98abur/wUmSfyThXLNhfg+m+IMS9dS/7jwXAjxe0mf/JT2We3x5NZNjriZis 9lVA0TOJBtdNVxY9P75DEvvedAjCKUjYaqqvfNV3o56FyXxr63TicLJEyU7T+AQu FaveIA5b1fLp4o2jcZ2uQcLysde2sQ== =GaQt -----END PGP SIGNATURE----- --7aJ0eSIddRmegBUmGIIdUDnhn6xted7SU--