From owner-freebsd-current@FreeBSD.ORG Tue Mar 9 21:21:45 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 628EE1065672; Tue, 9 Mar 2010 21:21:45 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by mx1.freebsd.org (Postfix) with ESMTP id B75068FC17; Tue, 9 Mar 2010 21:21:44 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id d23so451299fga.13 for ; Tue, 09 Mar 2010 13:21:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=w2uGspoMC1I6fCIIauokHZPXSsyZIx3qf19GDhvvGuA=; b=F995oupBT3MFPgdrRG5odXO8qDnUWLmDG0jPjwDLleo7F3qoFn9yc4Cfb49WrzBi8R aYLhjpDO55L58aXgv+53wLkMn5cf/+iq5wuAq76YxenrgXa6rsfYP6ttkksZWM/a9OVy uURuRnthGxus7HlSIpVz4WRLxLGb0H4YpaQuc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=DVqkVQsQDZBUNG021t4rcWm/ybgtdyembyhAeiRs8atw2AkrvRsfjGughUBAgj3y/Y JFbN3mpulzsjv2cQqz8HsdRbjgk40kZ/HA/2/YWnbE6mv6+u/Df10+PZ/FZGI4GQTq9b tALkJQULAp73SbH+V73EIrosQBrzk/UF3ohx4= Received: by 10.87.73.13 with SMTP id a13mr1150624fgl.44.1268169703322; Tue, 09 Mar 2010 13:21:43 -0800 (PST) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id e11sm8761802fga.6.2010.03.09.13.21.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 09 Mar 2010 13:21:42 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Tue, 9 Mar 2010 13:21:39 -0800 From: Pyun YongHyeon Date: Tue, 9 Mar 2010 13:21:39 -0800 To: Ian FREISLICH Message-ID: <20100309212139.GO1311@michelle.cdnetworks.com> References: <20100305210435.GF14818@michelle.cdnetworks.com> <20100305184046.GD14818@michelle.cdnetworks.com> <20100305175639.GB14818@michelle.cdnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: current@freebsd.org, David Christensen Subject: Re: dev.bce.X.com_no_buffers increasing and packet loss 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: Tue, 09 Mar 2010 21:21:45 -0000 On Tue, Mar 09, 2010 at 10:26:29AM +0200, Ian FREISLICH wrote: > Pyun YongHyeon wrote: > > patch can fix the RX issue you're suffering from. Anyway, would you > > give it try the patch at the following URL? > > http://people.freebsd.org/~yongari/bce/bce.20100305.diff > > The patch was generated against CURRENT and you may see a message > > like "Disabling COAL_NOW timedout!" during interface up. You can > > ignore that message. > > It's been running for about 1:23 on the patched driver. I'm still > seeing the com_no_buffers increase: > > [firewall2.jnb1] ~ # sysctl dev.bce |grep com_no_buffers > dev.bce.0.com_no_buffers: 5642 > dev.bce.1.com_no_buffers: 497 > dev.bce.2.com_no_buffers: 6260612 > dev.bce.3.com_no_buffers: 4871338 > Still have no idea why these counters are increasing here. Actually the counter is read from scratch pad of completion processor. The datasheet does not even document the counter. Maybe david know better what's happening here(CCed). > Interupt rate is down now, at about 3500 per second per interface. > > Interestingly setting net.inet.ip.fastforwarding=0 reduces CPU > consumption from 25% to 9% and less packet loss. > > Ian > > -- > Ian Freislich