Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jul 2009 22:41:35 +0800
From:      Jiansong Liu <jiansong.liu@gmail.com>
To:        Danny Braniss <danny@cs.huji.ac.il>
Cc:        freebsd-scsi@freebsd.org
Subject:   Re: iscsi_initiator 2.2.2 slow to write and read
Message-ID:  <7f834c1c0907070741w444d7bf7j96fc75ff4e495961@mail.gmail.com>
In-Reply-To: <E1MO9DB-000Ecw-Fd@kabab.cs.huji.ac.il>
References:  <7f834c1c0907070405mdab72u3223d90b84b2a201@mail.gmail.com>  <E1MO9DB-000Ecw-Fd@kabab.cs.huji.ac.il>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jul 7, 2009 at 7:51 PM, Danny Braniss <danny@cs.huji.ac.il> 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: <DELL MD3000i 0735> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7f834c1c0907070741w444d7bf7j96fc75ff4e495961>