SLOG'ing What am I doing wrong?
Posted: 20 Jun 2016 10:20
Hey Folks,
After many hours of Googling I'm at a loss as to the problem I'm having so thought it was time to ask those better informed than myself
So first off let me describe my home lab environment:
N4F Host:
HP DL160 G6 (4x3.5" Chassis)
2 x Intel L5630 (4core 8thred) CPU's
68Gb RAM ECC
1 x Quad Port Broadcom Gig NIC (Broadcom NetXtreme Gigabit Ethernet, ASIC rev. 0x5719001) MTU 9000
1 x Quad Port SATA 3 Adapter (Marvell 88SE9230 AHCI SATA controller)
Discs:
ada1 Corsair Force LS SSD SandForce Driven SSDs 57242MB 14308168000101670012 Solid State Device 6.0 Gb/s Available, Enabled ahcich2 Marvell 88SE9230 AHCI SATA controller 30 °C ONLINE
pass2 Marvell Console 1.01 Marvell Console 1.01 MB n/a Unknown 150.000MB/s Unavailable ahcich7 Marvell 88SE9230 AHCI SATA controller n/a ONLINE
ada2 ST33000651AS Seagate Barracuda XT 2861589MB Z290YTG3 7200 rpm 3.0 Gb/s Available, Enabled ahcich8 Intel ICH10 AHCI SATA controller 31 °C ONLINE
ada3 ST33000651AS Seagate Barracuda XT 2861589MB Z294XQCY 7200 rpm 3.0 Gb/s Available, Enabled ahcich9 Intel ICH10 AHCI SATA controller 31 °C ONLINE
ada4 ST33000651AS Seagate Barracuda XT 2861589MB Z290X0CS 7200 rpm 3.0 Gb/s Available, Enabled ahcich10 Intel ICH10 AHCI SATA controller 32 °C ONLINE
ada5 ST33000651AS Seagate Barracuda XT 2861589MB Z294QWMV 7200 rpm 3.0 Gb/s Available, Enabled ahcich11 Intel ICH10 AHCI SATA controller 31 °C ONLINE
da0 SanDisk Cruzer Facet 1.27 SanDisk Cruzer Facet 1.27 7634MB 4C530102011102101190 Unknown 40.000MB/s Unavailable umass-sim0 Intel 82801JI (ICH10) USB 2.0 controller USB-A n/a ONLINE
The 4x Seagate drives are connected to the on-board ICH10 Sata3 controller and the SSD is connected to the PCI-e add-in card.
ZFS:
pool: RAIDZ
state: ONLINE
scan: scrub repaired 0 in 6h26m with 0 errors on Sun Jun 12 04:17:10 2016
config:
NAME STATE READ WRITE CKSUM
RAIDZ ONLINE 0 0 0
ada2 ONLINE 0 0 0
ada4 ONLINE 0 0 0
ada3 ONLINE 0 0 0
ada5 ONLINE 0 0 0
2 x DS
iSCSI / comp - lz4 / dedup - no / sync - disabled
NFS / comp - lz4 / dedup - no / sync - disabled
Client:
DL385 G6 running XenServer 6.5
4 x iSCSI LUN's Multipath enabled
330000000eeafaaf9 dm-0 FreeBSD,iSCSI DISK
size=4.0T features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
|- 16:0:0:0 sdj 8:144 active ready running
|- 15:0:0:0 sdf 8:80 active ready running
`- 14:0:0:0 sdb 8:16 active ready running
All extents are file based and located within the iSCSI DS.
Switch:
Netgear GS724T
VLAN's 12/22/32 carry respective iSCSI traffic
Jumbo frames enabled
So again this is a 'Home Lab' environment, it is not intended as a mission critical tool instead it is a learning/pre-testing tool for my work.
Having read everything I can find about using SLOG/L2ARC to improve ZFS performance I thought I'd give it a try as running sync=disabled in a prod environment would be a no go! Knowing the SATA2 ports on offer from the Intel chipset would be an issue I've added a Marvel based PCI-e x2 SATA host card. To this I've connected a single 60G SSD,
A quick disktool test indicates this SSD gives me a transfer speed of around 350MBps, so certainly faster than the spinning rust and with a much higher IOPS rate.
From the CMD line I created two GPT partitions on the SSD 1x20G 1x34G. I then added partition 1 as a LOG device and partition 2 as a L2ARC to my pool.
I then changed the sync configuration of the DS to Sync = Always.
Now the problem.
From a Windows Server 2012 R2 VM running Crystal Disk 5.1.x I see the following performance:
No SLOG/Sync = Disabled
2G (x9 test)
4k Seq Q32 - Read 316MBs / Write 210MBs
4k Random Q32 - Read 91MBs / Write 72MBs
4k Seq - Read 166MBs / Write 146MBs
4k Random - Read 7MBs / Write 6MBs
SLOG/Sync = Always
2G (x9 test)
4k Seq Q32 - Read 310MBs / Write 11MBs
4k Random Q32 - Read 89MBs / Write 7MBs
4k Seq - Read 162MBs / Write 6MBs
4k Random - Read 6MBs / Write 1MBs
As you can see write performance has dropped through the floor! Obviously I expected to see a performance hit moving from Sync=Disabled to Sync=Always but nothing like this.
Advice / suggestions would be much appreciated.
After many hours of Googling I'm at a loss as to the problem I'm having so thought it was time to ask those better informed than myself
So first off let me describe my home lab environment:
N4F Host:
HP DL160 G6 (4x3.5" Chassis)
2 x Intel L5630 (4core 8thred) CPU's
68Gb RAM ECC
1 x Quad Port Broadcom Gig NIC (Broadcom NetXtreme Gigabit Ethernet, ASIC rev. 0x5719001) MTU 9000
1 x Quad Port SATA 3 Adapter (Marvell 88SE9230 AHCI SATA controller)
Discs:
ada1 Corsair Force LS SSD SandForce Driven SSDs 57242MB 14308168000101670012 Solid State Device 6.0 Gb/s Available, Enabled ahcich2 Marvell 88SE9230 AHCI SATA controller 30 °C ONLINE
pass2 Marvell Console 1.01 Marvell Console 1.01 MB n/a Unknown 150.000MB/s Unavailable ahcich7 Marvell 88SE9230 AHCI SATA controller n/a ONLINE
ada2 ST33000651AS Seagate Barracuda XT 2861589MB Z290YTG3 7200 rpm 3.0 Gb/s Available, Enabled ahcich8 Intel ICH10 AHCI SATA controller 31 °C ONLINE
ada3 ST33000651AS Seagate Barracuda XT 2861589MB Z294XQCY 7200 rpm 3.0 Gb/s Available, Enabled ahcich9 Intel ICH10 AHCI SATA controller 31 °C ONLINE
ada4 ST33000651AS Seagate Barracuda XT 2861589MB Z290X0CS 7200 rpm 3.0 Gb/s Available, Enabled ahcich10 Intel ICH10 AHCI SATA controller 32 °C ONLINE
ada5 ST33000651AS Seagate Barracuda XT 2861589MB Z294QWMV 7200 rpm 3.0 Gb/s Available, Enabled ahcich11 Intel ICH10 AHCI SATA controller 31 °C ONLINE
da0 SanDisk Cruzer Facet 1.27 SanDisk Cruzer Facet 1.27 7634MB 4C530102011102101190 Unknown 40.000MB/s Unavailable umass-sim0 Intel 82801JI (ICH10) USB 2.0 controller USB-A n/a ONLINE
The 4x Seagate drives are connected to the on-board ICH10 Sata3 controller and the SSD is connected to the PCI-e add-in card.
ZFS:
pool: RAIDZ
state: ONLINE
scan: scrub repaired 0 in 6h26m with 0 errors on Sun Jun 12 04:17:10 2016
config:
NAME STATE READ WRITE CKSUM
RAIDZ ONLINE 0 0 0
ada2 ONLINE 0 0 0
ada4 ONLINE 0 0 0
ada3 ONLINE 0 0 0
ada5 ONLINE 0 0 0
2 x DS
iSCSI / comp - lz4 / dedup - no / sync - disabled
NFS / comp - lz4 / dedup - no / sync - disabled
Client:
DL385 G6 running XenServer 6.5
4 x iSCSI LUN's Multipath enabled
330000000eeafaaf9 dm-0 FreeBSD,iSCSI DISK
size=4.0T features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
|- 16:0:0:0 sdj 8:144 active ready running
|- 15:0:0:0 sdf 8:80 active ready running
`- 14:0:0:0 sdb 8:16 active ready running
All extents are file based and located within the iSCSI DS.
Switch:
Netgear GS724T
VLAN's 12/22/32 carry respective iSCSI traffic
Jumbo frames enabled
So again this is a 'Home Lab' environment, it is not intended as a mission critical tool instead it is a learning/pre-testing tool for my work.
Having read everything I can find about using SLOG/L2ARC to improve ZFS performance I thought I'd give it a try as running sync=disabled in a prod environment would be a no go! Knowing the SATA2 ports on offer from the Intel chipset would be an issue I've added a Marvel based PCI-e x2 SATA host card. To this I've connected a single 60G SSD,
A quick disktool test indicates this SSD gives me a transfer speed of around 350MBps, so certainly faster than the spinning rust and with a much higher IOPS rate.
From the CMD line I created two GPT partitions on the SSD 1x20G 1x34G. I then added partition 1 as a LOG device and partition 2 as a L2ARC to my pool.
I then changed the sync configuration of the DS to Sync = Always.
Now the problem.
From a Windows Server 2012 R2 VM running Crystal Disk 5.1.x I see the following performance:
No SLOG/Sync = Disabled
2G (x9 test)
4k Seq Q32 - Read 316MBs / Write 210MBs
4k Random Q32 - Read 91MBs / Write 72MBs
4k Seq - Read 166MBs / Write 146MBs
4k Random - Read 7MBs / Write 6MBs
SLOG/Sync = Always
2G (x9 test)
4k Seq Q32 - Read 310MBs / Write 11MBs
4k Random Q32 - Read 89MBs / Write 7MBs
4k Seq - Read 162MBs / Write 6MBs
4k Random - Read 6MBs / Write 1MBs
As you can see write performance has dropped through the floor! Obviously I expected to see a performance hit moving from Sync=Disabled to Sync=Always but nothing like this.
Advice / suggestions would be much appreciated.