From owner-freebsd-current@FreeBSD.ORG Wed Nov 12 05:32:05 2008 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 DD58C1065672 for ; Wed, 12 Nov 2008 05:32:05 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.236]) by mx1.freebsd.org (Postfix) with ESMTP id 22BC38FC0A for ; Wed, 12 Nov 2008 05:32:05 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so234314rvf.43 for ; Tue, 11 Nov 2008 21:32:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:date:from :to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=KSHJc2cYbU/nklzHtIDrbT3hmQqydZYxhDzR5ywXTRE=; b=xOPjT1D1NX+nmMwOAt0YIqzXPB+d+8XBVwrgbwV79OnCDvjeE17H3GkceJ/LFnu9NX Rc2X63Mukh6v9kWWOYywZbkYRLC+idE80xz92q1IXuYyNNIJ7q6pi8dS/pmmaq4Oybk5 TF2rXCAq90f84PbAVJant1mjaJhknnQnqOrps= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=EJaIFU808GZHdfIMvYU43hmEM9B2qPluOjtsGz+b1evUH/5ld9Gh4qR4Vu21tqKUyD dpa4dlJN2fUVW08YXn9aV80JtWyZG/AGU6uFQdvu68vsV8EqqVB7aNAJkqYSril8ODr/ kukUjjY+IYt7eoOL7aof04PQvUh7YkvaADKT0= Received: by 10.140.139.3 with SMTP id m3mr4696645rvd.26.1226467923836; Tue, 11 Nov 2008 21:32:03 -0800 (PST) Received: from michelle.cdnetworks.co.kr ([211.53.35.84]) by mx.google.com with ESMTPS id g31sm27789332rvb.7.2008.11.11.21.32.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 11 Nov 2008 21:32:02 -0800 (PST) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id mAC5U0BU031052 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 12 Nov 2008 14:30:00 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id mAC5TwKP031051; Wed, 12 Nov 2008 14:29:58 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Wed, 12 Nov 2008 14:29:58 +0900 From: Pyun YongHyeon To: Boris Samorodov Message-ID: <20081112052958.GB30203@cdnetworks.co.kr> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <94941887@bb.ipt.ru> User-Agent: Mutt/1.4.2.1i Cc: freebsd-current@FreeBSD.org Subject: Re: Call for testers: Atheros AR8121(L1E)/AR8113/AR8114(L2E) ethernet X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 05:32:06 -0000 On Tue, Nov 11, 2008 at 10:15:44AM +0300, Boris Samorodov wrote: > Pyun YongHyeon 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