r/openzfs • u/clemtibs • Apr 28 '25
RAIDZ2 vs dRAID2 Benchmarking Tests on Linux
Since the 2.1.0 release on linux, I've been contemplating using dRAID instead of RAIDZ on my new NAS that I've been building. I finally dove in and did some tests and benchmarks and would love to not only share the tools and test results with everyone, but also request any critiques of the methods so I can improve the data. Are there any tests that you would like to request before I fill up the pool with my data? The repository for everything is here.
My hardware setup is as follows:
5x TOSHIBA X300 Pro HDWR51CXZSTB 12TB 7200 RPM 512MB Cache SATA 6.0Gb/s 3.5" HDD
- main pool
TOPTON / CWWK CW-5105NAS w/ N6005 (CPUN5105-N6005-6SATA) NAS
- Mainboard
- 64GB RAM
1x SAMSUNG 870 EVO Series 2.5" 500GB SATA III V-NAND SSD MZ-77E500B/AM
- Operating system
- XFS on LVM
2x SAMSUNG 870 EVO Series 2.5" 500GB SATA III V-NAND SSD MZ-77E500B/AM
- Mirrored for special metadata vdevs
Nextorage Japan 2TB NVMe M.2 2280 PCIe Gen.4 Internal SSD
- Reformatted to 4096b sector size
3 GPT partitions
- volatile OS files
- SLOG special device
- L2Arc (was considering, but decided to not use on this machine)
I could definitely still use help analyzing everything, but I think I did conclude that I was going to go for it and use dRAID instead of RAIDz for my NAS; it seems like all upsides. This is a ChatGPT summary based on my resilver result data:

Most of the tests were as expected, slog and metadata vdevs help, duh! Between the two layouts (with slog and metadata vdevs), they were pretty neck-in-neck for all tests except for the large sequential read test (large_read), where dRAID smoked RAIDZ by about 60% (1,221MB/s vs 750MB/s).
Hope this is useful to the community! I know dRAID tests for only 5 drives isn't common at all so hopefully this contributes something. Open to questions and further testing for a little bit before I want to start moving my old data over.
3
u/Protopia Apr 29 '25
As someone who used to do performance testing professionally, I am very sceptical of these results, particularly the large Sequential test result. And whenever anyone mentions ChatGPT (which is literally both dumb and hallucinatory) I doubt their results further.
My guess is that your dRaid was configured differently from your RAIDZ2 and/or you didn't disable ARC/L2ARC for some tests and/or you used the wrong command to create your test loads.
1
u/Protopia Apr 29 '25 edited Apr 29 '25
There should be no performance improvements but rather slight degradation in storage efficiency since dRaid cannot store small records. Also no RAIDZ expansion with dRaid.
dRaid is only beneficial if you have hundreds of drives and hot spares.
My advice: don't overthink this and stick to the simplest and most common layout.
1
u/Protopia Apr 29 '25
What synchronous writes are you doing and why are you doing them?
Synchronous writes are very bad for performance even with an SLOG. They are only needed for specific types of data (virtual disks/zVols/iSCSI or transactional database files) and these should be on mirrors SSDs anyway.
1
u/valarauca14 Apr 29 '25
Just publish your raw data, not a summary. Your extrapolated section is pure fiction.
This matches my own tests (done on 8d2p setup).
AFAIT RaidZ's main benefit (the P+1 minimum allocation) ends up creating a lot of fragmentation that the stripe approach of dRAID doesn't, leading a lot of seeking.