iscsi_initiator 2.2.2 slow to write and read

Jiansong Liu jiansong.liu at gmail.com
Tue Jul 7 14:41:56 UTC 2009


On Tue, Jul 7, 2009 at 7:51 PM, Danny Braniss <danny at 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 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.60024e80004e71a9000000004a01112=0
> >         TargetAddress =192.168.4.182:3260,1
> >          tags =4
> > }
> >
> > # uname -a
> > FreeBSD static01.com 7.2-STABLE FreeBSD 7.2-STABLE #3: Tue Jul  7
> 18:22:17
> > CST 2009     root at static01.com:/usr/obj/usr/src/sys/GENERIC  amd64
> >
> > # dmesg> ....
> > 0] i_setopt: maxRecvDataSegmentLength=65536
> > 0] i_setopt: opt.maXmitDataSegmentLength=8192
> > 0] i_setopt: opt.maxBurstLength=131072
> > 0] i_setopt: opt.targetAddress='192.168.4.182'
> > 0] i_setopt:
> >
> opt.targetName='iqn.1984-05.com.dell:powervault.md3000i.60024e80004e71a90=00000004a011120'
> > 0] i_setopt: opt.initiatorName='iqn.2005-01.il.ac.huji.cs::static01.com'
> > 0] i_send: len=516 ahs_len=0 ds_len=467 buf=468 at 0xffffff0005ec3000
> > 0] i_setopt: maxRecvDataSegmentLength=65536
> > 0] i_setopt: opt.maXmitDataSegmentLength=65536
> > 0] i_setopt: opt.maxBurstLength=131072
> > 0] i_setopt: opt.targetAddress='192.168.4.182'
> > 0] i_setopt:
> >
> opt.targetName='iqn.1984-05.com.dell:powervault.md3000i.60024e80004e71a90=00000004a011120'
> > 0] i_setopt: opt.initiatorName='iqn.2005-01.il.ac.huji.cs::static01.com'
> > 0] i_setopt: opt.headerDigest='None'
> > 0] i_setopt: opt.dataDigest='None'
> > 0] i_fullfeature: flag=1
> > 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=16,
I will try it with 32 later to see whether it would be better on read.
Thank you very much.

# dd if=/dev/zero of=/home/mogdata/test.foo bs=1024k count=10000
10000+0 records in
10000+0 records out
10485760000 bytes transferred in 113.705100 secs (92218907 bytes/sec)

# dd if=/home/mogdata/test.foo of=/dev/null
20480000+0 records in
20480000+0 records out
10485760000 bytes transferred in 179.432298 secs (58438532 bytes/sec)

Liu Jiansong


More information about the freebsd-scsi mailing list