From owner-freebsd-scsi@FreeBSD.ORG Sat Jul 11 04:42:10 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 DE356106564A for ; Sat, 11 Jul 2009 04:42:10 +0000 (UTC) (envelope-from jiansong.liu@gmail.com) Received: from mail-pz0-f193.google.com (mail-pz0-f193.google.com [209.85.222.193]) by mx1.freebsd.org (Postfix) with ESMTP id AAD4D8FC0A for ; Sat, 11 Jul 2009 04:42:10 +0000 (UTC) (envelope-from jiansong.liu@gmail.com) Received: by pzk31 with SMTP id 31so869817pzk.3 for ; Fri, 10 Jul 2009 21:42:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=hamgKvi2gCJXmHLM56Fxzrou3ei7aEQ7mlRPD5aJYJ0=; b=JPCR/6BOa2Tj6n9Sc6JRanycwMWHn5Lp2Ilfts9MFyi1DFQRd9QdiMvNd9eb/DgdP0 ITa+JQ8MxffGJiApL0YR6ZsnPXuuv2EWy0GAt92PFj8YRaqsnL3NYvo0Iokz53d6I8Km QBqdc3jBxd7SZViK3Ya815G4qKD2DbhOyhubs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=kwFQmpdwNKA11MN7x2PM0NNUOyYHbdTRa+YPEsr7im/lG3ddlLTiFEvQ+gcVb63x3T x6fuKFmuYw+qW06QLq0cj0DWZ0mEYoXukrvPlM7OPlLVLtFNNGxaYaJXbndTqKu05Z3E KBbSygmLgNuIu0TDyIyg0i/ttsYYuH71yY8oM= MIME-Version: 1.0 Received: by 10.114.185.8 with SMTP id i8mr4409827waf.85.1247287330241; Fri, 10 Jul 2009 21:42:10 -0700 (PDT) In-Reply-To: <20090707173629.GA33007@in-addr.com> References: <7f834c1c0907070405mdab72u3223d90b84b2a201@mail.gmail.com> <20090707173629.GA33007@in-addr.com> From: Jiansong Liu Date: Sat, 11 Jul 2009 12:41:48 +0800 Message-ID: <7f834c1c0907102141n5d55f786keb55f44126cd94c2@mail.gmail.com> To: Gary Palmer Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-scsi@freebsd.org Subject: Re: iscsi_initiator 2.2.2 slow to write and read 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: Sat, 11 Jul 2009 04:42:11 -0000 On Wed, Jul 8, 2009 at 1:36 AM, Gary Palmer wrote: > On Tue, Jul 07, 2009 at 07:05:03PM +0800, Jiansong Liu wrote: > > Hello All, > > > > I downloaded the latest iscsi_initiator 2.2.2 from Danny's FTP, > > and compile kernel and iscontrol with 7.2 STABLE GENERIC config, only got > > about 800KB/Sec speed to a DELL MD3000i disk array, I searched in > > this malling list and found a patch, but it seems is not for this version > > (2.2.2), any advice would be great appreciated. > > > > here are some details about my system: > > > > # sysctl net.iscsi > > net.iscsi.driver_version: 2.2.2 > > net.iscsi.isid: ???DIB00 > > net.iscsi.sessions: 1 > > net.iscsi.0.targetname: > > iqn.1984-05.com.dell:powervault.md3000i.60024e80004e71a9000000004a011120 > > net.iscsi.0.targeaddress: 192.168.4.182 > > net.iscsi.0.stats: recv=594 sent=594 flags=0x0000039f pdus-alloc=16 > > pdus-max=16 cws=426 cmd=157 exp=157 max=300 stat=159 itt=157 > > net.iscsi.0.douio: 0 > > net.iscsi.0.pid: 754 > > > > # cat /etc/iscsi.conf > > scpstorage01 { > > initiatorname =iqn.2005-01.il.ac.huji.cs::static01.com > > TargetName > > > =iqn.1984-05.com.dell:powervault.md3000i.60024e80004e71a9000000004a011120 > > TargetAddress =192.168.4.182:3260,1 > > tags =4 > > } > > I'm no expert, but if that "tags" line refers to SCSI tags then that > number is too small. Try increasing it and see if that helps to > address the problem. > > Regards, > > Gary > Hi Gary, Thanks for the advice, I have tried set tags to 32 and 64, but it could not get more performance on IO (90MB write and 56MB read). I think the writing is good enough for my application, but the reading still is a problem. # dd if=/home/mogdata/test.foo of=/dev/null 2048000+0 records in 2048000+0 records out 1048576000 bytes transferred in 17.670549 secs (59340318 bytes/sec) Best regards, Liu Jiansong