Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Apr 2009 07:29:20 +0200
From:      Mel Flynn <mel.flynn+fbsd.current@mailing.thruhere.net>
To:        freebsd-current@freebsd.org
Subject:   em(4) outgoing statistics broken (Was: Re: Statistics collection for TX no longer works)
Message-ID:  <200904290729.21239.mel.flynn%2Bfbsd.current@mailing.thruhere.net>
In-Reply-To: <200904230627.16745.mel.flynn%2Bfbsd.current@mailing.thruhere.net>
References:  <200904230627.16745.mel.flynn%2Bfbsd.current@mailing.thruhere.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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?
-- 
Mel



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904290729.21239.mel.flynn%2Bfbsd.current>