From owner-freebsd-scsi@FreeBSD.ORG Mon Jul 6 11:07:06 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 D2DB11065675 for ; Mon, 6 Jul 2009 11:07:06 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B5A6E8FC26 for ; Mon, 6 Jul 2009 11:07:06 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n66B763Z010926 for ; Mon, 6 Jul 2009 11:07:06 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n66B76pf010922 for freebsd-scsi@FreeBSD.org; Mon, 6 Jul 2009 11:07:06 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 6 Jul 2009 11:07:06 GMT Message-Id: <200907061107.n66B76pf010922@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-scsi@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-scsi@FreeBSD.org 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: Mon, 06 Jul 2009 11:07:07 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/134488 scsi [mpt] MPT SCSI driver probes max. 8 LUNs per device o amd64/132394 scsi [isp] - bad underruns with QLogic qla2300 and amd64 o kern/132250 scsi [ciss] ciss driver does not support more then 15 drive o kern/132206 scsi [mpt] system panics on boot when mirroring and 2nd dri o kern/131032 scsi [panic] hald causing panic in scsi_sg o kern/130735 scsi [cam] [patch] pass M_NOWAIT to the malloc() call insid o kern/130621 scsi [mpt] tranfer rate is inscrutable slow when use lsi213 o kern/129602 scsi [ahd] ahd(4) gets confused and wedges SCSI bus o kern/128452 scsi [sa] [panic] Accessing SCSI tape drive randomly crashe o kern/128245 scsi [scsi] "inquiry data fails comparison at DV1 step" [re o kern/127927 scsi [isp] isp(4) target driver crashes kernel when set up o kern/126866 scsi [isp] [panic] kernel panic on card initialization o kern/124667 scsi [amd] [panic] FreeBSD-7 kernel page faults at amd-scsi o kern/123674 scsi [ahc] ahc driver dumping o kern/123666 scsi [aac] attach fails with Adaptec SAS RAID 3805 controll o sparc/121676 scsi [iscsi] iscontrol do not connect iscsi-target on sparc o kern/120487 scsi [sg] scsi_sg incompatible with scanners o kern/120247 scsi [mpt] FreeBSD 6.3 and LSI Logic 1030 = only 3.300MB/s o kern/119668 scsi [cam] [patch] certain errors are too verbose comparing o kern/114597 scsi [sym] System hangs at SCSI bus reset with dual HBAs o kern/110847 scsi [ahd] Tyan U320 onboard problem with more than 3 disks o kern/99954 scsi [ahc] reading from DVD failes on 6.x [regression] o kern/94838 scsi Kernel panic while mounting SD card with lock switch o o kern/92798 scsi [ahc] SCSI problem with timeouts o kern/90282 scsi [sym] SCSI bus resets cause loss of ch device o kern/76178 scsi [ahd] Problem with ahd and large SCSI Raid system o kern/74627 scsi [ahc] [hang] Adaptec 2940U2W Can't boot 5.3 s kern/61165 scsi [panic] kernel page fault after calling cam_send_ccb o kern/60641 scsi [sym] Sporadic SCSI bus resets with 53C810 under load o kern/60598 scsi wire down of scsi devices conflicts with config s kern/57398 scsi [mly] Current fails to install on mly(4) based RAID di o kern/52638 scsi [panic] SCSI U320 on SMP server won't run faster than o kern/44587 scsi dev/dpt/dpt.h is missing defines required for DPT_HAND o kern/40895 scsi wierd kernel / device driver bug o kern/39388 scsi ncr/sym drivers fail with 53c810 and more than 256MB m o kern/38828 scsi [dpt] [request] DPT PM2012B/90 doesn't work o kern/35234 scsi World access to /dev/pass? (for scanner) requires acce 37 problems total. From owner-freebsd-scsi@FreeBSD.ORG Tue Jul 7 11:37:17 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 34422106564A for ; Tue, 7 Jul 2009 11:37:17 +0000 (UTC) (envelope-from jiansong.liu@gmail.com) Received: from mail-yx0-f181.google.com (mail-yx0-f181.google.com [209.85.210.181]) by mx1.freebsd.org (Postfix) with ESMTP id E34F78FC19 for ; Tue, 7 Jul 2009 11:37:16 +0000 (UTC) (envelope-from jiansong.liu@gmail.com) Received: by yxe11 with SMTP id 11so6758382yxe.3 for ; Tue, 07 Jul 2009 04:37:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=pGV4RHloICotFa2Hm23DcjpoUgzBSeurH1lALmX4i1A=; b=xEK5lX3uozPRVNnrNnjx7YEcGH+t2/bc5x8vOkt35lS/S1y07ZWcsXYSe3TXyRMkmX mBJiN+AQ8Q53jfrX2LjxcQ+8fXOwLdNufv5N2G6g6k+SzWpfzGdKBAGjhaiUva8GPqIe kXelkdsCEUX8D2s4Bfr+ouhoWesrwsPdLz6i0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=ASKQNocij0tdHUivlCwKgCE+xRF/CMbqm/kZI9JiojOtMEWXpgzRZsMtZlIhg4Pr7B 2DxaLccqYwLm23tJ3YmBT9DzuHEgtmHhX9GBAcA3oQ/vgComQ3xPxITQKFcZzGQ0IxVF fRYPRaEMvT/rbHEc6GTLKXHqGsAkM2dfs0OZs= MIME-Version: 1.0 Received: by 10.90.88.16 with SMTP id l16mr5051001agb.91.1246964723160; Tue, 07 Jul 2009 04:05:23 -0700 (PDT) From: Jiansong Liu Date: Tue, 7 Jul 2009 19:05:03 +0800 Message-ID: <7f834c1c0907070405mdab72u3223d90b84b2a201@mail.gmail.com> To: freebsd-scsi@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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 11:37:17 -0000 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: =E2=82=ACDIB00 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=3D594 sent=3D594 flags=3D0x0000039f pdus-alloc=3D16 pdus-max=3D16 cws=3D426 cmd=3D157 exp=3D157 max=3D300 stat=3D159 itt=3D157 net.iscsi.0.douio: 0 net.iscsi.0.pid: 754 # cat /etc/iscsi.conf scpstorage01 { initiatorname =3Diqn.2005-01.il.ac.huji.cs::static01.com TargetName =3Diqn.1984-05.com.dell:powervault.md3000i.60024e80004e71a9000000004a01112= 0 TargetAddress =3D192.168.4.182:3260,1 tags =3D4 } # uname -a FreeBSD static01.com 7.2-STABLE FreeBSD 7.2-STABLE #3: Tue Jul 7 18:22:17 CST 2009 root@static01.com:/usr/obj/usr/src/sys/GENERIC amd64 # dmesg .... 0] i_setopt: maxRecvDataSegmentLength=3D65536 0] i_setopt: opt.maXmitDataSegmentLength=3D8192 0] i_setopt: opt.maxBurstLength=3D131072 0] i_setopt: opt.targetAddress=3D'192.168.4.182' 0] i_setopt: opt.targetName=3D'iqn.1984-05.com.dell:powervault.md3000i.60024e80004e71a90= 00000004a011120' 0] i_setopt: opt.initiatorName=3D'iqn.2005-01.il.ac.huji.cs::static01.com' 0] i_send: len=3D516 ahs_len=3D0 ds_len=3D467 buf=3D468@0xffffff0005ec3000 0] i_setopt: maxRecvDataSegmentLength=3D65536 0] i_setopt: opt.maXmitDataSegmentLength=3D65536 0] i_setopt: opt.maxBurstLength=3D131072 0] i_setopt: opt.targetAddress=3D'192.168.4.182' 0] i_setopt: opt.targetName=3D'iqn.1984-05.com.dell:powervault.md3000i.60024e80004e71a90= 00000004a011120' 0] i_setopt: opt.initiatorName=3D'iqn.2005-01.il.ac.huji.cs::static01.com' 0] i_setopt: opt.headerDigest=3D'None' 0] i_setopt: opt.dataDigest=3D'None' 0] i_fullfeature: flag=3D1 0] ic_init: cam subsystem initialized da0 at iscsi0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-5 device END. Thanks & Best regards, Liu Jiansong. 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 From owner-freebsd-scsi@FreeBSD.ORG Tue Jul 7 14:41:56 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 508781065675 for ; Tue, 7 Jul 2009 14:41:56 +0000 (UTC) (envelope-from jiansong.liu@gmail.com) Received: from mail-yx0-f181.google.com (mail-yx0-f181.google.com [209.85.210.181]) by mx1.freebsd.org (Postfix) with ESMTP id 02A878FC19 for ; Tue, 7 Jul 2009 14:41:55 +0000 (UTC) (envelope-from jiansong.liu@gmail.com) Received: by yxe11 with SMTP id 11so6920129yxe.3 for ; Tue, 07 Jul 2009 07:41:55 -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=EUZFczxGL+YGmeU+Brj7eTpkE+JRqtloyT9cuM78O9E=; b=CrAMtACRe8HVOSNEy9oEPrNjYCthklKNwAaM6vY7meJeTMvT1bQF35HRSrmNMFjJyN A5ZmBOJYVJ9ayAZBQJ8L0Z9z/elYg7qeEXyI5ozmHtql+9Ql/O88K5wMEWismb46VTqK ubLoV7WizDl6Zes7vNBIHp9m8MTUyk7vvIm2k= 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=b49SjD1jblWB7LYCEvJGx1h1TFk3W+rBjWJnFg8NsA/VlEMolZEanjHCmQNexWvVvg /7Ate9Bd5XcfE4qjfDpeToxfrZTn2PYhjVmiQ6GcIfyOaT3o/AJ3zYPpDMH0eeoGlrVY ErzqohGmPMy35K8wmS4EA0bSUAcqnbv6HaZoE= MIME-Version: 1.0 Received: by 10.90.56.16 with SMTP id e16mr5212258aga.57.1246977715192; Tue, 07 Jul 2009 07:41:55 -0700 (PDT) In-Reply-To: References: <7f834c1c0907070405mdab72u3223d90b84b2a201@mail.gmail.com> From: Jiansong Liu Date: Tue, 7 Jul 2009 22:41:35 +0800 Message-ID: <7f834c1c0907070741w444d7bf7j96fc75ff4e495961@mail.gmail.com> To: Danny Braniss Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Tue, 07 Jul 2009 14:41:56 -0000 On Tue, Jul 7, 2009 at 7:51 PM, Danny Braniss 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 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. > > > > here are some details about my system: > > > > # sysctl net.iscsi > > net.iscsi.driver_version: 2.2.2 > > net.iscsi.isid: =C3=A2=E2=80=9A=C2=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 > > > > # cat /etc/iscsi.conf> scpstorage01 { > > initiatorname =3Diqn.2005-01.il.ac.huji.cs::static01.com > > TargetName > > > =3Diqn.1984-05.com.dell:powervault.md3000i.60024e80004e71a9000000004a011= 12=3D0 > > TargetAddress =3D192.168.4.182:3260,1 > > tags =3D4 > > } > > > > # uname -a > > FreeBSD static01.com 7.2-STABLE FreeBSD 7.2-STABLE #3: Tue Jul 7 > 18:22:17 > > CST 2009 root@static01.com:/usr/obj/usr/src/sys/GENERIC amd64 > > > > # dmesg> .... > > 0] i_setopt: maxRecvDataSegmentLength=3D65536 > > 0] i_setopt: opt.maXmitDataSegmentLength=3D8192 > > 0] i_setopt: opt.maxBurstLength=3D131072 > > 0] i_setopt: opt.targetAddress=3D'192.168.4.182' > > 0] i_setopt: > > > opt.targetName=3D'iqn.1984-05.com.dell:powervault.md3000i.60024e80004e71a= 90=3D00000004a011120' > > 0] i_setopt: opt.initiatorName=3D'iqn.2005-01.il.ac.huji.cs::static01.c= om' > > 0] i_send: len=3D516 ahs_len=3D0 ds_len=3D467 buf=3D468@0xffffff0005ec3= 000 > > 0] i_setopt: maxRecvDataSegmentLength=3D65536 > > 0] i_setopt: opt.maXmitDataSegmentLength=3D65536 > > 0] i_setopt: opt.maxBurstLength=3D131072 > > 0] i_setopt: opt.targetAddress=3D'192.168.4.182' > > 0] i_setopt: > > > opt.targetName=3D'iqn.1984-05.com.dell:powervault.md3000i.60024e80004e71a= 90=3D00000004a011120' > > 0] i_setopt: opt.initiatorName=3D'iqn.2005-01.il.ac.huji.cs::static01.c= om' > > 0] i_setopt: opt.headerDigest=3D'None' > > 0] i_setopt: opt.dataDigest=3D'None' > > 0] i_fullfeature: flag=3D1 > > 0] ic_init: cam subsystem initialized > > da0 at iscsi0 bus 0 target 0 lun 0 > > da0: Fixed Direct Access SCSI-5 device > > > > END. > > > > 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 > camcontrol tags da0 -N32 > -this will not be remembered after reboot!-, > try different values till you don't see any speedup. > > danny > > danny > Hi Danny, It is very helpful, now I have got 90MB/s on write and 58MB/s on read with tags=3D16, I will try it with 32 later to see whether it would be better on read. Thank you very much. # dd if=3D/dev/zero of=3D/home/mogdata/test.foo bs=3D1024k count=3D10000 10000+0 records in 10000+0 records out 10485760000 bytes transferred in 113.705100 secs (92218907 bytes/sec) # dd if=3D/home/mogdata/test.foo of=3D/dev/null 20480000+0 records in 20480000+0 records out 10485760000 bytes transferred in 179.432298 secs (58438532 bytes/sec) Liu Jiansong From owner-freebsd-scsi@FreeBSD.ORG Tue Jul 7 17:36:31 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 4A531106564A for ; Tue, 7 Jul 2009 17:36:31 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from noop.in-addr.com (mail.in-addr.com [IPv6:2001:470:8:162::1]) by mx1.freebsd.org (Postfix) with ESMTP id 206608FC12 for ; Tue, 7 Jul 2009 17:36:31 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from gjp by noop.in-addr.com with local (Exim 4.54 (FreeBSD)) id 1MOEaj-0000Xh-IB; Tue, 07 Jul 2009 13:36:29 -0400 Date: Tue, 7 Jul 2009 13:36:29 -0400 From: Gary Palmer To: Jiansong Liu Message-ID: <20090707173629.GA33007@in-addr.com> References: <7f834c1c0907070405mdab72u3223d90b84b2a201@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7f834c1c0907070405mdab72u3223d90b84b2a201@mail.gmail.com> 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 17:36:31 -0000 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 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