From owner-freebsd-current@FreeBSD.ORG Wed Apr 29 12:28:48 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB9771065749 for ; Wed, 29 Apr 2009 12:28:48 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from s2m-is-001.service2media.com (rev-130-102.virtu.nl [217.114.102.130]) by mx1.freebsd.org (Postfix) with ESMTP id 37F7C8FC18 for ; Wed, 29 Apr 2009 12:28:47 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from nox-laptop.localnet ([10.0.1.45] RDNS failed) by s2m-is-001.service2media.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 29 Apr 2009 14:16:41 +0200 From: Pieter de Goeje To: freebsd-current@freebsd.org Date: Wed, 29 Apr 2009 14:16:40 +0200 User-Agent: KMail/1.11.2 (Linux/2.6.28-11-generic; KDE/4.2.2; x86_64; ; ) References: <200904230627.16745.mel.flynn+fbsd.current@mailing.thruhere.net> <200904290729.21239.mel.flynn+fbsd.current@mailing.thruhere.net> In-Reply-To: <200904290729.21239.mel.flynn+fbsd.current@mailing.thruhere.net> MIME-Version: 1.0 Message-Id: <200904291416.41027.pieter@degoeje.nl> X-OriginalArrivalTime: 29 Apr 2009 12:16:41.0686 (UTC) FILETIME=[5AA7C760:01C9C8C4] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Mel Flynn Subject: Re: em(4) outgoing statistics broken (Was: Re: Statistics collection for TX no longer works) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2009 12:28:49 -0000 On Wednesday 29 April 2009 07:29:20 Mel Flynn wrote: > On Thursday 23 April 2009 06:27:16 Mel Flynn wrote: > > Hi, > > > > I noticed when upgrading to KDE 4.2.2, the network monitor no longer showed > > outgoing bandwidth. I blamed this on the app first, but after installing > > net/bmon the problem is there as well. > > > > It uses int mib[] = {CTL_NET, PF_ROUTE, 0, 0, NET_RT_IFLIST, 0}; to read > > if_msghdr structs and ifm->ifm_data.ifi_obytes. > > > > netstat has the same problem: > > input (em0) output > > packets errs bytes packets errs bytes colls > > 199 0 63203 117 0 0 0 > > 193 0 59995 97 0 0 0 > > 185 0 63023 105 0 0 0 > > 200 0 60642 104 0 0 0 > > 199 0 63102 100 0 0 0 > > 215 0 62733 94 0 2891 0 > > > > That 2891 is a mystery, all the while I was copying a file remotely at > > ~150KB/s. > > > > FreeBSD sarevok.dnr.servegame.org 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Fri > > Apr 17 14:18:41 CEST 2009 > > mel@sarevok.dnr.servegame.org:/usr/obj/usr/src/sys/SMOOCHIES i386 > > Still happens with a kernel built last Saturday, however I noticed outgoing > statistics works with lo0. No other network card available at the moment, so > I'm enclined to think it's em. Anybody else seeing this? I'm seeing this too. Running -CURRENT/i386 w/ if_em interface. I can try another interface when I'm back from work. -- Pieter de Goeje