Hi!
I've been using ZFS for a while now (in RAIDZ2 mode) and I'm wondering what are the ways to improve the write speed of my current setup?
My setup is as such:
Intel Celeron 1.8Ghz
3 x Sata3 1TB WD Red in RaidZ-2 (5400 rpm)
8GB DDR3 RAM
1Gb Intel PCI-e NIC card
I am getting around 40-50MB/s write speed. When I write to the NAS, I am only seeing around 30%-40% cpu utilization and less than 30% DDR utilization.
Is this the max. write speed I can get with this setup or is there a setting where I can push the write speeds higher?
Thanks!
This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
Is it still possible to improve ZFS write performance
-
mfbatzap
- NewUser

- Posts: 4
- Joined: 20 Dec 2017 18:18
- Status: Offline
- lindsay
- Forum Moderator

- Posts: 282
- Joined: 23 Jun 2012 09:59
- Location: Steinkjer,Norway
- Status: Offline
Re: Is it still possible to improve ZFS write performance
I get 110-112MB/s but it depends sometimes on client if it do other things like P2P
Protected by smoothiebox Red,Green,
Purple,Orange Zones/VLAN`s
Powered by AMD A10-6700T
XigmaNAS Box-1 11.2.0.4 - Omnius (revision 6625)
Platform : x64-embedded on 2X Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
Motherboard: ASUS Z10PA-D8, 2xSocket-2011-3
SATA Controllers : 1X Avago Technologies (LSI) SAS2008 and 1x Avago Technologies (LSI) SAS2308
Pool 1 (Media-Pool) 8X4TB in raidz2
Pool 2 (Media-Pool-2) 4X2TB in raidz2 and 2X2TB in mirror mirror and 2X3TB in mirror
Pool 3 (Media-Pool-3) 2X2TB in mirror and 2X4TB in mirror and 2X1TB in mirror
Purple,Orange Zones/VLAN`s
Powered by AMD A10-6700T
XigmaNAS Box-1 11.2.0.4 - Omnius (revision 6625)
Platform : x64-embedded on 2X Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
Motherboard: ASUS Z10PA-D8, 2xSocket-2011-3
SATA Controllers : 1X Avago Technologies (LSI) SAS2008 and 1x Avago Technologies (LSI) SAS2308
Pool 1 (Media-Pool) 8X4TB in raidz2
Pool 2 (Media-Pool-2) 4X2TB in raidz2 and 2X2TB in mirror mirror and 2X3TB in mirror
Pool 3 (Media-Pool-3) 2X2TB in mirror and 2X4TB in mirror and 2X1TB in mirror
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: Is it still possible to improve ZFS write performance
I suppose that your actual bottleneck is your vdev.
you use 3 disk in a RAIDZ2 config that is not recomended, so you only have one HD available for data and two for reundancy, so you need to write at same time in three disk.
you can have better write througput if use 3 disk in RaidZ1, or 2 vdev of 3 disk in raidZ2 in a big pool.
some interesting links:
https://constantin.glez.de/2010/06/04/a ... rformance/
https://forums.freenas.org/index.php?th ... age.44068/
and the most interesting for your case:
https://calomel.org/zfs_raid_speed_capacity.html
rule of dumb:
you use 3 disk in a RAIDZ2 config that is not recomended, so you only have one HD available for data and two for reundancy, so you need to write at same time in three disk.
you can have better write througput if use 3 disk in RaidZ1, or 2 vdev of 3 disk in raidZ2 in a big pool.
some interesting links:
https://constantin.glez.de/2010/06/04/a ... rformance/
https://forums.freenas.org/index.php?th ... age.44068/
and the most interesting for your case:
https://calomel.org/zfs_raid_speed_capacity.html
rule of dumb:
When building a RAID it is common practice to use the "power of two plus parity" raid infrastructure to maximize parity striping, speed and well as capacity. When using ZFS the standard RAID rules may not apply, especially when LZ4 compression is active. ZFS can vary the size of the stripes on each disk and compression can make those stripes unpredictable. The current rule of thumb when making a ZFS raid is:
MIRROR (raid1) used with two(2) to four(4) disks or more.
RAIDZ-1 (raid5) used with five(5) disks or more.
RAIDZ-2 (raid6) used with six(6) disk or more.
RAIDZ-3 (raid7) used with eleven(11) disks or more.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
-
mfbatzap
- NewUser

- Posts: 4
- Joined: 20 Dec 2017 18:18
- Status: Offline
Re: Is it still possible to improve ZFS write performance
Thanks guys!
Unfortunately I only have 4 sata ports in my machine. The part I do not understand is...
Unfortunately I only have 4 sata ports in my machine. The part I do not understand is...
butraid6 or raidz2 distributes parity along with the data and can lose two physical drives instead of just one like raid 5. Because more parity needs to be calculated raid 6 is slower then raid5, but raid6 is safer. raidz2 requires at least four disks and will use two(2) disks of space for parity.
If it needs at least four disks, why 6 disks is recommended? So that the raid can break the reads/writes to more disks, hence speed up the read/write?RAIDZ-2 (raid6) used with six(6) disk or more.
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: Is it still possible to improve ZFS write performance
for RaidZ2 4 disk is the minimun, but lose 50% of space in parity, so 6 disk is the recomended, ( read & write speed is better with 6 disk), easy to understand.
with same 50% loss , your speed are better if chose mirror ( 2 mirror of two disk each) in a big Pool
with same 50% loss , your speed are better if chose mirror ( 2 mirror of two disk each) in a big Pool
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510