Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Nov 2008 14:29:58 +0900
From:      Pyun YongHyeon <pyunyh@gmail.com>
To:        Boris Samorodov <bsam@ipt.ru>
Cc:        freebsd-current@FreeBSD.org
Subject:   Re: Call for testers: Atheros AR8121(L1E)/AR8113/AR8114(L2E) ethernet
Message-ID:  <20081112052958.GB30203@cdnetworks.co.kr>
In-Reply-To: <94941887@bb.ipt.ru>
References:  <20081030040637.GA78796@cdnetworks.co.kr> <20081030114845.GE78796@cdnetworks.co.kr> <20081031034443.GF82781@cdnetworks.co.kr> <20081107064724.GA11486@cdnetworks.co.kr> <20081108052324.GD14970@cdnetworks.co.kr> <84265871@bb.ipt.ru> <20081110041229.GE22162@cdnetworks.co.kr> <39598641@bb.ipt.ru> <20081110112522.GN22162@cdnetworks.co.kr> <94941887@bb.ipt.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 11, 2008 at 10:15:44AM +0300, Boris Samorodov wrote:
 > Pyun YongHyeon <pyunyh@gmail.com> writes:
 > > On Mon, Nov 10, 2008 at 01:58:54PM +0300, Boris Samorodov wrote:
 > 
 > >  > you some additional info:
 > >  > -----
 > >  > uname -a ftp://ftp.bsam.ru/pub/tmp/EeePC/uname.2
 > >  > netstat -w 1 ftp://ftp.bsam.ru/pub/tmp/EeePC/netstat.ale.2
 > >  > sysctl dev.ale.0.stats ftp://ftp.bsam.ru/pub/tmp/EeePC/sysctl.ale.stats.2
 > >  > iostat -w 1 ftp://ftp.bsam.ru/pub/tmp/EeePC/iostat.ale.2
 > >  > -----
 > >  > 
 > >  > The interesting one is a netstat one. I'm not sure what zeroes for
 > >  > packets mean while trafic exists.
 > >  > 
 > >
 > > Hmm, I also have no idea why netstat(1) shows such a non-sense
 > > value while transfer is in progress. I guess you can easily write a
 > > script that extracts interesting MAC statistics of ale(4).
 > > For example,
 > > sysctl dev.ale.0.stats.rx.good_frames
 > > sysctl dev.ale.0.stats.tx.good_frames
 > >
 > > Use 'sysctl -d dev.ale.0.stats' to get complete descriptoin of each
 > > node.
 > 
 > Here is the diff of "sysctl dev.ale.0.stats" before and after fetching a
 > ~300MB file:

[...]

 > Do you see anything suspicious?
 > 

No clear idea but the only wild guess I have is periodic updates of
if_ipackets/if_opackets in driver. Since ale(4) and age(4) supports
very detailed hardware MAC counters, both ale(4) and age(4) rely on
these hardware counters to update various ifnet counters intead of
manupulating ifnet counters with software method.
These hardware counters are updated for every one second in driver.
I thought 1 second interval would be enough because frequent
reading hardware counter registers would add additioanal burden to
CPU(e.g. it can generate too many PCI transactions). If netstat
polls these counters while no upates are made to
if_ipackets/if_opackets it may think there are no network
activities.
How about increasing polling interval of netstat to two seconds
from one second? If my theory is right it would show correct
value.

-- 
Regards,
Pyun YongHyeon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081112052958.GB30203>