Hello,
I am currently testing iSCSI target on a vmware virtual machine(2GB RAM, 2 CPUs), but if I am able to solve the zfs performance issue, I will put it on a physical host with 6GB RAM.
The problem is not in the istgt, I've already checked that.
The root pool is on a single disk and it is located on the physical disk where one of the mirror disks are. The other mirror disk is alone on another physical disk.
However, the zfsroot pool seems to have a lot better performance than the mirrored disks.
Check this out:
Does anybody know a reason for this? A single disk write 100MB takes 0.3 seconds and a mirror disks takes 7 seconds. Note that the checksum of the mirror(datacore) pool is off, and the zfsroot is on.
Any ideas? I hope this is not a normal behavior for zfs mirror.
Thank you.
I am currently testing iSCSI target on a vmware virtual machine(2GB RAM, 2 CPUs), but if I am able to solve the zfs performance issue, I will put it on a physical host with 6GB RAM.
The problem is not in the istgt, I've already checked that.
The root pool is on a single disk and it is located on the physical disk where one of the mirror disks are. The other mirror disk is alone on another physical disk.
However, the zfsroot pool seems to have a lot better performance than the mirrored disks.
Check this out:
Code:
sandbox# zfs list
NAME USED AVAIL REFER MOUNTPOINT
datacore 146G 204M 31K /datacore
datacore/istgt 146G 145G 1.29G -
zfsroot 6.08G 56.4G 1.95G /
zfsroot/swap 4.13G 60.6G 16K -
sandbox#
sandbox# zpool status
pool: datacore
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
datacore ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
da1 ONLINE 0 0 0
da2 ONLINE 0 0 0
errors: No known data errors
pool: zfsroot
state: ONLINE
scan: scrub repaired 0 in 0h1m with 0 errors on Wed Dec 5 16:16:53 2012
config:
NAME STATE READ WRITE CKSUM
zfsroot ONLINE 0 0 0
da0p2 ONLINE 0 0 0
errors: No known data errors
sandbox#
sandbox# dd if=/dev/zero of=/datacore/file.foo bs=1M count=100
100+0 records in
100+0 records out
104857600 bytes transferred in 6.949640 secs (15088206 bytes/sec)
sandbox# dd if=/dev/zero of=/root/file.foo bs=1M count=100
100+0 records in
100+0 records out
104857600 bytes transferred in 0.292284 secs (358752432 bytes/sec)
sandbox#
Any ideas? I hope this is not a normal behavior for zfs mirror.
Thank you.