Studio Network Solutions Forums: Slow writes globalSAN 3.3.0.43 + OpenSolaris snv_111a - Studio Network Solutions Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Slow writes globalSAN 3.3.0.43 + OpenSolaris snv_111a iSCSI write speed are 1/10 of read speed Rate Topic: -----

#1 User is offline   IceRAM 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 03-May 09

Posted 03 May 2009 - 10:39 AM

Hi everyone,

I'm trying to use globalSAN 3.3.0.43 initiator with an OpenSolaris 2008.11 (upgraded to snv_111a - latest) target over 100MBps Ethernet network, no jumbo frames. The curious thing when using this combination is that the write speed tops 1 MB/sec while the read speed tops 11 MB/sec (maximum for 100 MBps Ethernet). I have tried tunning the target in several ways:
* iscsitadm modify target --maxrecv 2097152 tank/test-sparse (setting maxrecv of 2 MB, on a sparse volume iSCSI shared volume)
* iscsitadm modify admin -f enable (enable fast writes)

Even though I've done these 2 changes, the write speed hasn't gone higher than 1 MB/sec. If I start multiple writes (start copying one file, start copying another file etc.), the write speed increases (it's almost 1 MB/sec per "session"). It's like there's a limitation on the write speed per "session". I do not know exactly where this problem occurs, but it is definitely not a CPU usage (~5%) or a HDD (RAIDZ1) problem. Sustained read/writes over SMB for example top 11 MB/sec without a problem.

Does anyone have any idea why would this be happening?

Many thanks.
0

#2 User is offline   wereHamster 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 06-July 09

Posted 06 July 2009 - 10:13 AM

View PostIceRAM, on May 3 2009, 06:39 PM, said:

Hi everyone,

I'm trying to use globalSAN 3.3.0.43 initiator with an OpenSolaris 2008.11 (upgraded to snv_111a - latest) target over 100MBps Ethernet network, no jumbo frames. The curious thing when using this combination is that the write speed tops 1 MB/sec while the read speed tops 11 MB/sec (maximum for 100 MBps Ethernet). I have tried tunning the target in several ways:
* iscsitadm modify target --maxrecv 2097152 tank/test-sparse (setting maxrecv of 2 MB, on a sparse volume iSCSI shared volume)
* iscsitadm modify admin -f enable (enable fast writes)

Even though I've done these 2 changes, the write speed hasn't gone higher than 1 MB/sec. If I start multiple writes (start copying one file, start copying another file etc.), the write speed increases (it's almost 1 MB/sec per "session"). It's like there's a limitation on the write speed per "session". I do not know exactly where this problem occurs, but it is definitely not a CPU usage (~5%) or a HDD (RAIDZ1) problem. Sustained read/writes over SMB for example top 11 MB/sec without a problem.


Let me guess, the target is a ZFS volume, and the underlying storage is a conventional HDD, right? I've had the exact same problem and I was told it's because of the synchronous nature of iSCSI. If you want higher speeds, you'll have to either buy SSDs and put the ZIL there, or disable the ZIL. See also: http://caurea.org/20...eets-zfs-iscsi/
0

#3 User is offline   piersdd 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 24-August 09

Posted 25 August 2009 - 02:48 AM

I too found performance to be unacceptably slow, even after adding a SSD ZIL! The systems are;
Sun Ultra 40 M2 running opensolaris snv_111b. 12GB RAM
6 x Hitachi Ultrastar SATA drives. (As a ZFS stripe of three mirrored pairs)
1 x SLC SSD (connected to same LSI SAS controller). (32GB SSD ie, above recommended maximum size)

Apple Mac Pro, dual 3.2GHz Xeon. 16GB RAM
8 x Hitachi Ultrastar SATA (As a HFS+ stripe of three mirrored pairs, plus an additional mirrored volume)
1 x SLC SSD

both are connected directly via Myri10GBE, running IPv4

before putting a SSD ZIL in the pool
Mac->Sun via CIFS, I got around 140-180MB/sec
Mac->iSCSI before ZIL, I got around 2MB/sec

with the SSD ZIL
Sun->Sun cat /dev/zero > /data/backup/tmp/junk, I get 198MB/sec
Sun->Sun time dd if=/dev/zero of=/dev/zvol/rdsk/data/backup/rawvol, around 7MB/sec, spiking to 100MB/sec
Sun->Sun time dd if=/dev/zero of=/dev/zvol/dsk/data/backup/rawvol, 160-220MB/sec
Mac->Sun via iSCSI, around 10MB/sec

ZIL disabled
Mac->Sun via iSCSI, around 14MB/sec though very bursty.. nothing for 10-20secs, then 2-3 seconds of 200+MB/s
0

#4 User is offline   piersdd 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 24-August 09

Posted 04 September 2009 - 05:34 PM

Having reviewed the evil tuning guide (http://www.solarisinternals.com/wiki/index.php/ZFS_Evil_Tuning_Guide#How_to_Tune_Cache_Sync_Handling_Per_Storage_Device) I figure perhaps OpenSolaris did not optimise the writes by default to the SSD.
Thus, I shall test, per the guide, and advise. Is anyone aware if SSDs are automatically treated differently?
0

#5 User is offline   russm 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 22-September 09

Posted 22 September 2009 - 06:57 AM

according to a post on the OpenSolaris forums, this may be caused by the nagle algorithm on your clients trying to be efficient but actually killing iSCSI performance... for instructions on disabling this on Leopard, head to (of all places) the World of Warcraft forums...

and seriously, don't disable the ZIL...
0

#6 User is offline   SNSryan 

  • Advanced Member
  • PipPipPip
  • Group: KB Moderators
  • Posts: 171
  • Joined: 15-May 06

Posted 11 November 2009 - 11:59 AM

Hello!

We've just announced a beta version for globalSAN v4.0. This version addresses certain performance issues with 3rd party targets. We'd love to hear if this v4.0 beta helps with performance on this target. Go here for additional details and download link. I look forward to everyones feedback.

-ryan
0

#7 User is offline   amoeba 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 28-January 10

Posted 28 January 2010 - 01:56 PM

Thanks for the software. I am currently testing beta 204 after 197 (OS X 10.6.2 32bit) and basically it works out of the box, but ... speed is incredibly slow, i.e. sluggish.

On the target side I am using opensolaris snv_131 with COMSTAR target architecture residing on a SAS/RAIDZ pool. I also experience extreme bursts followed by long periods of inactivity, typically first maxing out the available connection bandwith (untypically high rates around 100-90MB/s on a single GB connection). What then happens (same in finder):

$ time dd if=/dev/zero of=/Volumes/tm_iscsi/testfile bs=1048576k count=4
4+0 records in
4+0 records out
4294967296 bytes transferred in 379.311404 secs (11323064 bytes/sec)

real	6m19.364s
user	0m0.000s
sys	0m3.225s


Does anyone have a clue what might be the reason for this? Can I supply any other logs which might be helpful?
Thanks!
0

#8 User is offline   Eric Newbauer 

  • Advanced Member
  • PipPipPip
  • Group: KB Moderators
  • Posts: 147
  • Joined: 11-August 06

Posted 28 January 2010 - 07:04 PM

This might be of some help:

https://opensolaris....essageID=388492

For anyone having very low average I/O with globalSAN + OpenSolaris + ZFS: Are you seeing acceptable performance with the Microsoft Initiator?
Eric Newbauer, SNS Moderator
----
Learn about our SAN/NAS storage products
Follow Studio Network Solutions on Twitter
0

#9 User is offline   dataflash 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 28-January 10

Posted 28 January 2010 - 07:30 PM

View PostEric Newbauer, on 29 January 2010 - 02:04 AM, said:

This might be of some help:

https://opensolaris....essageID=388492

For anyone having very low average I/O with globalSAN + OpenSolaris + ZFS: Are you seeing acceptable performance with the Microsoft Initiator?


1 MB/s using globalSan 3.3.0.43 on 10.5.8, both on an old PowerBook G4/1500 and on a MacPro 8x2.8/10Gb of ram. The iSCSI target is openSolaris 2009.06 on an identical MacPro.
No good news also on Microsoft side (initiator version 2.08)...4-5 MB/s, nothing more.
Tried disabling tcp delayed ack with no results.
0

#10 User is offline   amoeba 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 28-January 10

Posted 30 January 2010 - 05:33 AM

View PostEric Newbauer, on 29 January 2010 - 02:04 AM, said:

This might be of some help:
https://opensolaris....essageID=388492
[...]


great, thank you very much for the hint! after doing
[edit: partial success only, this only works on the command line, in the finder the behaviour remains the same ...]

stmfadm list-lu -v
stmfadm modify-lu -p wcd=false <LUN NAME>


the results rose to >60MB/s:

time dd if=/dev/zero of=/Volumes/tm_iscsi/testfile bs=1048576k count=4
4+0 records in
4+0 records out
4294967296 bytes transferred in 65.026626 secs (66049364 bytes/sec)

real	1m5.154s
user	0m0.000s
sys	0m3.657s



p.s. can't try out the ms initiator here, sorry.
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic