From owner-freebsd-current@FreeBSD.ORG Mon Nov 8 01:41:20 2010 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 DEBFD106566B; Mon, 8 Nov 2010 01:41:20 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id A58938FC15; Mon, 8 Nov 2010 01:41:20 +0000 (UTC) Received: by pzk12 with SMTP id 12so321980pzk.13 for ; Sun, 07 Nov 2010 17:41:20 -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=SiFWO5mnsJrnZReZET9uLZELCm4ghqEcDR1pNwW+qcU=; b=iBtNdb9pzML8V+qmRi6tk4IwXLa+p78xzzhYJf+Ihsjwzal5a14R++H1KZQlJJp8N/ zauchrJ8DYOxi0cCgwbLWGJ09PWUbF49idUSfexoPqEq5TyO7wh47RNGMsZU35G+HVLZ 7tvDW5fwiyJXNcEzMRmDHawUWYEOPdvuqm3aY= 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=X8WeHTvEAugKJk7c7vj/lJ7iEjesQpMsCLlOrPwsVx8s1IzMPg3VpZ0ayDQD5BqW0H bvJ6gY7DgNt8myBmr1e5SO93fjMnN/RS460lyAtXy3Rmba+icBLOV0AUJHxHiPoIX1za w81/75ed3dVY8Xrq822esld1Srpq5nTjrvPb0= Received: by 10.143.43.12 with SMTP id v12mr3951487wfj.344.1289180480196; Sun, 07 Nov 2010 17:41:20 -0800 (PST) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id w22sm7262893wfd.19.2010.11.07.17.41.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 07 Nov 2010 17:41:19 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Sun, 7 Nov 2010 17:40:22 -0800 From: Pyun YongHyeon Date: Sun, 7 Nov 2010 17:40:22 -0800 To: Rick Macklem Message-ID: <20101108014022.GG1279@michelle.cdnetworks.com> References: <20101108002601.GC1279@michelle.cdnetworks.com> <74999496.222044.1289178871881.JavaMail.root@erie.cs.uoguelph.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <74999496.222044.1289178871881.JavaMail.root@erie.cs.uoguelph.ca> User-Agent: Mutt/1.4.2.3i Cc: alc@freebsd.org, freebsd-current@freebsd.org Subject: Re: re(4) driver dropping packets when reading NFS files 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: Mon, 08 Nov 2010 01:41:20 -0000 On Sun, Nov 07, 2010 at 08:14:31PM -0500, Rick Macklem wrote: > > > > If that made difference, all other ethernet controllers would have > > suffered from the similar issues. > > > Well, some commit done between June 7 and June 15 made a difference, > but I have no idea what or why. > > Also, I had a report of very poor read rate from someone using a bge(4) > interface, but I have no reason to believe it is because of the same > issue. > > > > > If you have some spare time please try attach one. I guess fast > > ethernet controller has smaller FIFO size than that of GigE > > controller so it is frequently triggered the issue on fast ethernet > > controller than GigE controllers. I still guess that there are > > cases that an interrupt is not correctly served such that driver > > missed a lot of frames. > > > Patch didn't help. If anything it degrading things a bit (stats are > attached). > By chance, how about disabling RX early interrupt? You can add the following 3 lines of code into re_init_locked(). 2710 /* 2711 * Set the initial RX configuration. 2712 */ 2713 re_set_rxmode(sc); 2714 2715 /* Disable RX early interrupt. */ 2716 cfg = CSR_READ_2(sc, RL_MULTIINTR); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2717 cfg &= 0xF000; ^^^^^^^^^^^^^^ 2718 CSR_WRITE_2(sc, RL_MULTIINTR, cfg); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2719 2720 #ifdef DEVICE_POLLING