From owner-freebsd-bugs@freebsd.org Thu Feb 25 04:50:10 2021 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9793155654F for ; Thu, 25 Feb 2021 04:50:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4DmL1t3kL3z3Q8J for ; Thu, 25 Feb 2021 04:50:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 7FDC455654E; Thu, 25 Feb 2021 04:50:10 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7FA66556815 for ; Thu, 25 Feb 2021 04:50:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DmL1t361Vz3PsT for ; Thu, 25 Feb 2021 04:50:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5309711824 for ; Thu, 25 Feb 2021 04:50:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 11P4oAPl005300 for ; Thu, 25 Feb 2021 04:50:10 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 11P4oAqN005299 for bugs@FreeBSD.org; Thu, 25 Feb 2021 04:50:10 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 253836] ifconfig reports 2x actual received bytes with em / igb Date: Thu, 25 Feb 2021 04:50:10 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: eborisch+FreeBSD@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2021 04:50:10 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253836 Bug ID: 253836 Summary: ifconfig reports 2x actual received bytes with em / igb Product: Base System Version: 13.0-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: eborisch+FreeBSD@gmail.com As reported here: https://lists.freebsd.org/pipermail/freebsd-stable/2021-February/093170.html and now reproduced on a Thinkpad X230, on 13.0-BETA3: Isssue: ifconfig reports 2x the received bytes compared to what is reported= via dev.(igb|em)..mac_stats.good_octets_recvd. The octets_recvd count lines = (~) up with the expected count based on known traffic. This is new on 13. Copy of my original report to the mailing list: The incoming bytes on an intel I211 (em/igb) are being counted twice somewhere in the path that is queried by netstat and zabbix_agentd (which definitely uses ifmib.) My 'cable' interface is dev.igb.0; the system is live, so counts are going to keep going up, too. $ sysctl dev.igb.0 | grep octet dev.igb.0.mac_stats.good_octets_txd: 4836948514 dev.igb.0.mac_stats.good_octets_recvd: 17402549118 $ netstat -I cable -b | column -t Name Mtu Network Address Ipkts Ierrs Idrop Ibytes Opkts Oerrs Obytes Coll cable 1500 00:0d:b9:55:70:08 31197172 0 0 34681776974 9401856 0 4793050336 0 cable - 199.48.95.0/2 1500922-static.ro 94275 - - 24989369 106396 - 9906685 - $ zabbix_agentd -t 'net.if.in[cable]' net.if.in[cable] [u|34684619970] Note the octets_txd (which should be a little bigger than obytes) is very close to netstat's Obytes (obytes): 4836948514 ~=3D 4793050336 But octets_recvd (which should be a little bigger than ibytes) is ~ 1/2 of netstat/zabbix's (ifmib's) ibytes. 17402549118 ~=3D 34681776974 / 2 I can run known traffic across an interface, and the octets_recvd are hanging with the expected change, while netstat's and zabbix's are at 2x. I'm running a custom kernel, but I was running the same on 12.2, as well, and this only crept up on 13. I don't have 13 running on anything with different hardware to compare, unfortunately. --=20 You are receiving this mail because: You are the assignee for the bug.=