From owner-freebsd-scsi@FreeBSD.ORG Tue Jul 7 12:34:03 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 66DFC1065672 for ; Tue, 7 Jul 2009 12:34:03 +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 1FDC48FC08 for ; Tue, 7 Jul 2009 12:34:02 +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 1MO9DB-000Ecw-Fd; Tue, 07 Jul 2009 14:51:49 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Jiansong Liu In-reply-to: <7f834c1c0907070405mdab72u3223d90b84b2a201@mail.gmail.com> References: <7f834c1c0907070405mdab72u3223d90b84b2a201@mail.gmail.com> Comments: In-reply-to Jiansong Liu message dated "Tue, 07 Jul 2009 19:05:03 +0800." Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Tue, 07 Jul 2009 14:51:49 +0300 From: Danny Braniss Message-ID: 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: Tue, 07 Jul 2009 12:34:03 -0000 > Hello All, >=20 > 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 g= ot > 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 versi= on > (2.2.2), any advice would be great appreciated. >=20 > here are some details about my system: >=20 > =23 sysctl net.iscsi > net.iscsi.driver_version: 2.2.2 > net.iscsi.isid: =E2=82=ACDIB00 > net.iscsi.sessions: 1 > net.iscsi.0.targetname: > iqn.1984-05.com.dell:powervault.md3000i.60024e80004e71a9000000004a01112= 0 > net.iscsi.0.targeaddress: 192.168.4.182 > net.iscsi.0.stats: recv=3D594 sent=3D594 flags=3D0x0000039f pdus-alloc= =3D16 > pdus-max=3D16 cws=3D426 cmd=3D157 exp=3D157 max=3D300 stat=3D159 itt=3D= 157 > net.iscsi.0.douio: 0> net.iscsi.0.pid: 754 >=20 > =23 cat /etc/iscsi.conf> scpstorage01 =7B > initiatorname =3Diqn.2005-01.il.ac.huji.cs::static01.com > TargetName > =3Diqn.1984-05.com.dell:powervault.md3000i.60024e80004e71a9000000004a0= 1112=3D0 > TargetAddress =3D192.168.4.182:3260,1 > tags =3D4 > =7D >=20 > =23 uname -a > FreeBSD static01.com 7.2-STABLE FreeBSD 7.2-STABLE =233: Tue Jul 7 18:= 22:17 > CST 2009 root=40static01.com:/usr/obj/usr/src/sys/GENERIC amd64 >=20 > =23 dmesg> .... > 0=5D i_setopt: maxRecvDataSegmentLength=3D65536 > 0=5D i_setopt: opt.maXmitDataSegmentLength=3D8192 > 0=5D i_setopt: opt.maxBurstLength=3D131072 > 0=5D i_setopt: opt.targetAddress=3D'192.168.4.182' > 0=5D i_setopt: > opt.targetName=3D'iqn.1984-05.com.dell:powervault.md3000i.60024e80004e7= 1a90=3D00000004a011120' > 0=5D i_setopt: opt.initiatorName=3D'iqn.2005-01.il.ac.huji.cs::static01= .com' > 0=5D i_send: len=3D516 ahs_len=3D0 ds_len=3D467 buf=3D468=400xffffff000= 5ec3000 > 0=5D i_setopt: maxRecvDataSegmentLength=3D65536 > 0=5D i_setopt: opt.maXmitDataSegmentLength=3D65536 > 0=5D i_setopt: opt.maxBurstLength=3D131072 > 0=5D i_setopt: opt.targetAddress=3D'192.168.4.182' > 0=5D i_setopt: > opt.targetName=3D'iqn.1984-05.com.dell:powervault.md3000i.60024e80004e7= 1a90=3D00000004a011120' > 0=5D i_setopt: opt.initiatorName=3D'iqn.2005-01.il.ac.huji.cs::static01= .com' > 0=5D i_setopt: opt.headerDigest=3D'None' > 0=5D i_setopt: opt.dataDigest=3D'None' > 0=5D i_fullfeature: flag=3D1 > 0=5D ic_init: cam subsystem initialized > da0 at iscsi0 bus 0 target 0 lun 0 > da0: Fixed Direct Access SCSI-5 device >=20 > END. >=20 > Thanks & Best regards, > Liu Jiansong. hi Liu Jiansong, The tag opening is too concervative, increase its value. You can do it by changing it in the config file, or via=20 camcontrol tags da0 -N32 -this will not be remembered after reboot=21-,=20 try different values till you don't see any speedup. danny danny