From owner-freebsd-current@FreeBSD.ORG Mon Nov 8 12:09:43 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 6F760106566B; Mon, 8 Nov 2010 12:09:43 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id 1492D8FC1E; Mon, 8 Nov 2010 12:09:42 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlAFACp310yDaFvO/2dsb2JhbACDMZBSjnKsI5BGgSKDM3MEhFiFfQ X-IronPort-AV: E=Sophos;i="4.58,313,1286164800"; d="scan'208";a="99962753" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 08 Nov 2010 07:09:42 -0500 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 09952B3F3A; Mon, 8 Nov 2010 07:09:41 -0500 (EST) Date: Mon, 8 Nov 2010 07:09:41 -0500 (EST) From: Rick Macklem To: pyunyh@gmail.com Message-ID: <970925941.232054.1289218181757.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <20101108014022.GG1279@michelle.cdnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [99.225.56.115] X-Mailer: Zimbra 6.0.7_GA_2476.RHEL4 (ZimbraWebClient - IE8 (Win)/6.0.7_GA_2473.RHEL4_64) 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 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 12:09:43 -0000 > > 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 > Afraid it didn't help. I've also discovered that the June 7 kernel only performs better sometimes. I see 500Kbytes/sec read rate on it for most of the test runs. (It does work better sometimes, but maybe the -current kernel would too, if I ran for long enough with it.) I can try some other variations of enabling interrupts in early Dec, rick