From owner-freebsd-scsi@FreeBSD.ORG Fri Mar 7 20:51:04 2008 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 188DC1065675 for ; Fri, 7 Mar 2008 20:51:04 +0000 (UTC) (envelope-from john@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id EAAF38FC19 for ; Fri, 7 Mar 2008 20:51:03 +0000 (UTC) (envelope-from john@jnielsen.net) Received: from [192.168.5.128] (jn@stealth.jnielsen.net [74.218.226.254]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id m27KGiZn078954; Fri, 7 Mar 2008 15:17:01 -0500 (EST) (envelope-from john@jnielsen.net) From: John Nielsen To: freebsd-scsi@freebsd.org Date: Fri, 7 Mar 2008 15:16:28 -0500 User-Agent: KMail/1.9.7 References: <4A66E92B3FBF8541A78CD11D1C0E3CFC491D952009@wp-ex02.hq.webpartner.dk> <20080227125033.GA35933@bofh.enst.fr> <4A66E92B3FBF8541A78CD11D1C0E3CFC491D952199@wp-ex02.hq.webpartner.dk> In-Reply-To: <4A66E92B3FBF8541A78CD11D1C0E3CFC491D952199@wp-ex02.hq.webpartner.dk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200803071516.31640.john@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: Thomas Steen Rasmussen , Pierre Beyssac Subject: Re: iscsi initiator speed very low in FreeBSD 7 X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Mar 2008 20:51:04 -0000 On Tuesday 04 March 2008 03:46:15 am Thomas Steen Rasmussen wrote: > On Tuesday 26 February 2008 10:58:13 am Pierre Beyssac wrote: > > On Tue, Feb 26, 2008 at 01:37:09PM +0100, Thomas Steen Rasmussen > > wrote: > > > Windows Vista / Windows Server 2008 get impressive speeds from this > > > SAN (2008 got close to 800 megabits in one test). FreeBSD is not > > > even close to that speed. I have tried a bunch of different things, > > > but I always seem to end up with a speed close to 700 kilobits. This > > > is all on gigabit links. > > > > I've seen a similar problem (30-second timeout in the code due to > > a race condition). You might want to try the attached patch. It > > fixed the slowness for me. I intend to commit it to current very > > soon. > > The patch works! :) I had some problems getting it to apply cleanly, > due to a (junk?) character in the source file (the file being patched) > line 456. Once I got it applied to a fresh 7 install the speed was > considerably better. In my test setup I got to around 20 megabytes / > sec to or from my laptop initiator. I now need to test the production > server with the actual appliance SAN, and see what kind of speeds I get > there. I will revert with the results here. > > Until then, thank you very much for your assistance. This is good news! Pierre- would you like someone to create a PR with your patch to help it get committed or is that ball already rolling? Thanks, JN