From owner-freebsd-scsi@FreeBSD.ORG Fri Jan 9 06:38:04 2009 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 B7D09106564A for ; Fri, 9 Jan 2009 06:38:04 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.16.84]) by mx1.freebsd.org (Postfix) with ESMTP id 72D748FC0A for ; Fri, 9 Jan 2009 06:38:04 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by kabab.cs.huji.ac.il with esmtp id 1LLB0M-000OZp-Ms; Fri, 09 Jan 2009 08:38:02 +0200 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Sossi Andrej In-reply-to: Your message of Thu, 08 Jan 2009 16:36:13 +0100 . Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 09 Jan 2009 08:38:02 +0200 From: Danny Braniss Message-ID: Cc: freebsd-scsi@freebsd.org Subject: Re: ISCSI slow to read from DELL MD3000i 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, 09 Jan 2009 06:38:05 -0000 > Danny Braniss wrote: > >> Danny Braniss wrote: > >> > >>> wups, didn't read all your mail, sorry, > >>> try increasing tht tag opening, in the config file add > >>> tag = 64 > >>> for example, or via camcontrol > >>> > >>> danny > >>> > >>> > >> I modify my iscsi.conf by adding tags = 64 (and no tag). Now works fine, > >> about 43MB/s. Thank You very match. > >> RTFM :-) > >> But what means this parameter? > >> > > > > is the max number of commands that can be sent without waiting for ack. I set > > it > > too concervative :-( > > > I made many tests with different tags values and checked the writing > speed with dd. > 0 (default) -> ~850kB/s > 1 -> ~850kB/s > 2 -> ~6.5MB/s > 3 -> ~40MB/s > 4 -> ~49MB/s > 8 -> ~49MB/s > ... > > I think that NAS server sends ACK after 4 commands. Is it correct? in a simplistic way yes, it depends on how much memory the target has, the speed of its disks, and of course, the software :-) > Is it > possible that the NAS server modifies this behavior? Can I set tags at 4 > or is it smarter to keep it higher? > among many other things, it depends on how much memory you have, but I would set it somewhat higher, 8 or 16. try running several dd's simultaneously. danny