From owner-freebsd-current@FreeBSD.ORG Thu Jun 12 05:57:01 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3EFE8D6E for ; Thu, 12 Jun 2014 05:57:01 +0000 (UTC) Received: from odin.blazingdot.com (odin.blazingdot.com [204.109.60.170]) by mx1.freebsd.org (Postfix) with ESMTP id 18F53233F for ; Thu, 12 Jun 2014 05:57:00 +0000 (UTC) Received: by odin.blazingdot.com (Postfix, from userid 1001) id ADB13130CF5; Thu, 12 Jun 2014 01:57:00 -0400 (EDT) Date: Thu, 12 Jun 2014 01:57:00 -0400 From: Marcus Reid To: bycn82 Subject: Re: wlan0/iwn: no upload statistics Message-ID: <20140612055700.GA38862@blazingdot.com> References: <5392DACF.4050401@gmx.net> <20140611100518.GA31433@blazingdot.com> <001801cf8576$01ae50b0$050af210$@gmail.com> <20140612054706.GA38769@blazingdot.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140612054706.GA38769@blazingdot.com> X-Coffee-Level: nearly-fatal User-Agent: Mutt/1.5.23 (2014-03-12) Cc: freebsd-current@freebsd.org, 'Stefan Ehmann' X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 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: Thu, 12 Jun 2014 05:57:01 -0000 On Thu, Jun 12, 2014 at 01:47:06AM -0400, Marcus Reid wrote: > On Wed, Jun 11, 2014 at 09:06:45PM +0800, bycn82 wrote: > > Just tell "the command is not working" cannot help in resolving the > > problem. Could you please provide more detail? for example. > > I already gave the info that I have. In this case the data provided by > the sysctl that gets interface statistics is incomplete. > > systat -ifstat shows: > > wlan0 in 0.000 KB/s 0.000 KB/s 82.933 MB > out 0.000 KB/s 0.000 KB/s 0.000 KB This was sort of a bad paste, I did it when there was no current activity. The 'in' side looks fine normally. Here's another one with activity: wlan0 in 11.364 KB/s 71.956 KB/s 95.683 MB out 0.000 KB/s 0.000 KB/s 0.000 KB There's definitely output, just not accounted for on the 'wlan0' interface. If you look at iwn0, there it is: netstat -I iwn0 -i 1 shows: input iwn0 output packets errs idrops bytes packets errs bytes colls 0 0 0 0 64 0 9456 0 0 0 0 0 78 0 11354 0 0 0 0 0 54 0 8160 0 0 0 0 0 46 0 7656 0 0 0 0 0 56 0 8158 0 Marcus > In the systat case, it appears to poll each interface with a: > > 20966 systat SCTL "net.link.generic.ifdata.3.1" > > netstat -I wlan0 -i 1 shows: > > input wlan0 output > packets errs idrops bytes packets errs bytes colls > 7 0 0 5010 7 0 0 0 > 15 0 0 10378 15 0 0 0 > 22 0 0 14164 18 0 0 0 > 21 0 0 13058 19 0 0 0 > ... > > Note that there are output packets, but not output bytes listed. > netstat appears to use netgraph for its data, so both the sysctl and > netgraph methods of getting the data is affected similarly. > > This is where the trail went cold for me. I tried looking at the iwn > driver sources but did not find the place where any counters in the > kernel are updated. Maybe someone more familiar with the way network > drivers are written would have better luck. > > I had written it off as a hardware quirk when I looked into it, but it > looks like more than just my wireless card is affected. > > Marcus > > > > 1. Firewall can tell you the total in/out traffic > > 2. The systat -ifstat result. > > 3. Netstat information > > > > In previous email, the guy provided the below information. > > > > > > systat -ifstat output: > > > > Interface Traffic Peak Total > > > > wlan0 in 1.066 KB/s 16.155 KB/s 377.757 MB > > > > out 0.000 KB/s 0.000 KB/s 0.000 KB > > > > Can you please confirm whether the "377.757 MB" is `in` or `out` traffic? > > > > > > > -----Original Message----- > > > From: owner-freebsd-current@freebsd.org [mailto:owner-freebsd- > > > current@freebsd.org] On Behalf Of Marcus Reid > > > Sent: 11 June, 2014 18:05 > > > To: Stefan Ehmann > > > Cc: freebsd-current@freebsd.org > > > Subject: Re: wlan0/iwn: no upload statistics > > > > > > On Sat, Jun 07, 2014 at 11:26:39AM +0200, Stefan Ehmann wrote: > > > > Network monitoring tools show download traffic, but no upload data. > > > > > > I have an iwn0: and have the same problem. I was > > > able to track it down to being some missing ifmib(4) data, secifically > > > ifi_obytes from the if_data structure (see ifnet(9)). > > > > > > This was a little while back, and I seem to remember someone else with > > > using iwn that didn't have the problem. Another thing is that if you do > > > a 'netstat -I wlan0 -i 1', output bytes are missing, but if you look at > > > iwn0 instead all you see is the output bytes and nothing else (except > > > sometimes you get some numbers in the output packets column seemingly at > > > random). > > > > > > Marcus > > > > > > > > > > > systat -ifstat output: > > > > Interface Traffic Peak Total > > > > wlan0 in 1.066 KB/s 16.155 KB/s 377.757 MB > > > > out 0.000 KB/s 0.000 KB/s 0.000 KB > > > > > > > > > > > > Tested on amd64 CURRENT from few days ago. > > > > > > > > netword Card is: > > > > iwn0: mem 0xf2000000-0xf2001fff irq > > > > 17 at device 0.0 on pci3 > > > _______________________________________________ > > > freebsd-current@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-current > > > To unsubscribe, send any mail to "freebsd-current- > > > unsubscribe@freebsd.org" > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"