From owner-freebsd-net@freebsd.org Sat Jun 3 07:25:53 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 C7C0AB95528 for ; Sat, 3 Jun 2017 07:25:53 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com [IPv6:2a00:1450:400c:c09::22f]) (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 550A02E90 for ; Sat, 3 Jun 2017 07:25:53 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: by mail-wm0-x22f.google.com with SMTP id 7so39730487wmo.1 for ; Sat, 03 Jun 2017 00:25:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=cQ1oHG5HgUxcGA7CXG1aelxvZQTqLKFToPkhIXJDc+w=; b=u9vim2hEYZcgwt9yH0UweyAdtHP5FC7486S51kQSo0KxfDfcaf6Zs9+NlAWjk6bu16 1t16Ud6Q9LDB8QuvlslY3YGOcLdbFkVk99nxABSJOvHnYvinurbOHaSW8Y/v7xl4+U40 q/49Xt8Dmazcy7wmTLsJjxiTKdAqoUVopbNCt4CP4SFvSaB85cNaqSfMXYrjpV7Nck0/ ON9rWOYKMqd0kNW/AGQqFKBZo/mYnthnmukTswW4OT3COV+rcJnTq1tBAK0sSPf1PkYt zCZKX5c8Gs6ZU4NCrRP2s2aRSlAMxdRnpd9SA9jLLEVSWYRGx7r6jJ1KGHsR9Ix25tKU sNdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=cQ1oHG5HgUxcGA7CXG1aelxvZQTqLKFToPkhIXJDc+w=; b=Uo+Ksbzo8gAyRt8/0T207e7Zfmik1tHoofdZgnMfe3n6QDug/7r1+Idg8RMzIgRsjj 0YyoBc0Y/Ndn8LgFgVhZe5Qx/UGd/u8goig1Nwul+DTA8G3TxBbXqzDsqUH2+aw+d+jE PluG7wYYuXMJRTqNO1DK9IDIvB9y0WF4UaNuRUaehOAm+8dPz2XtzrwzKVd38LPqxRbH JcVYJoiiPyJeRa+kwnJvYRsjpCrVXYEisY+ZLj6gt5NpQHmjZj51iCSxRgMss5+9T+rE fhn6HqjDoJWtFVu8RpAW70Zki8tj8q3TCmnGDqSv6xeRExgO9w3QmvQA7Iyz/LcQkOK8 BcQA== X-Gm-Message-State: AODbwcD22Z1mMWkleks3GwjvqZcH06IvzkuoSzqz2npw1o05gZmY3SbV F0kY+Fee1vxnULbLP0YBQ9XYrelFbYPlIXU= X-Received: by 10.80.134.170 with SMTP id r39mr1782170eda.77.1496474751843; Sat, 03 Jun 2017 00:25:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.151.34 with HTTP; Sat, 3 Jun 2017 00:25:51 -0700 (PDT) From: Ben Woods Date: Sat, 3 Jun 2017 15:25:51 +0800 Message-ID: Subject: igb stats double counting in 12-CURRENT r319025 To: freebsd-net Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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: Sat, 03 Jun 2017 07:25:53 -0000 Hi everyone, I have noticed my networking statistics appear to be double counting on two of my FreeBSD 12-CURRENT boxes running r319025. Could someone please help me to find the problem (I believe it is likely to be a bug in the networking driver). 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. # systat -ifstat -match igb0 ... Interface Traffic Peak Total igb0 in 988.008 KB/s 988.008 KB/s 36.295 GB out 16.953 KB/s 16.953 KB/s 295.774 GB # 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 The two interfaces in these boxes are: $ pciconf -lvv | grep igb1 -A4 igb1@pci0:4:0:0: class=0x020000 card=0x00008086 chip=0x15398086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'I211 Gigabit Network Connection' class = network subclass = ethernet $ pciconf -lvv | grep igb0 -A4 igb0@pci0:8:0:0: class=0x020000 card=0x15331849 chip=0x15338086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'I210 Gigabit Network Connection' class = network subclass = ethernet Regards, Ben -- From: Benjamin Woods woodsb02@gmail.com