Parity declustering
Parity declustering places parity groups across a larger device pool to distribute reconstruction work.
Stripe width and placement scope are separate parameters; lower peak survivor load does not by itself establish shorter repair time.
With C disks and parity stripes of G units, parity takes 1/G of the space and the declustering ratio alpha = (G - 1) / (C - 1) is the fraction of each survivor read to rebuild a failed disk, 1 for RAID 5. Any two failures among the C disks still lose data. The layouts come from balanced block designs. [1]
In simulations of a 21-disk array under 105 small random accesses per second, half reads and half writes, alpha 0.15 rebuilt a failed disk about twice as fast as RAID 5 with about 33% lower user response time. Reconstruction algorithms that redirected reads to the replacement disk did not consistently help, because the extra random work slowed its rebuild writes. [1] In that array alpha 0.15 means G = 4, so parity takes 25% of the space.
A modern open-source layout spreads groups of D data and P parity devices with distributed spares over all children through permutation maps, so every disk takes part in a resilver, but its fixed stripe width raises the minimum allocation to 32 KiB for D = 8 with 4 KiB sectors. [3] [4]
Relations
- related
- RAID 5, Distributed spare, Repair-read amplification, RAID rebuild, Minimum-storage regenerating code, Chained declustering
Advantages
- Spreading groups over a larger pool at fixed G lowers alpha without increasing total reads, which stay at G - 1 times the failed capacity. [1]
Limitations
- Random IOPS of the open-source layout approximate floor((N - S) / (D + P)) times one drive, and its load balance degrades with child count, to an imbalance ratio of 1.273 at 31 children. [3, 4]
Citations
- Mark Holland and Garth A. Gibson. Parity Declustering for Continuous Operation in Redundant Disk Arrays. ASPLOS 1992, pp. 23-35; sections 2, 4-8.
- OpenZFS 2.3.0 manual page zpoolconcepts(7), dRAID section.
- OpenZFS 2.3.0 module/zfs/vdev_draid.c, group layout and permutation-map comments.
Further reading
Sources & caveats
- The 1992 results come from a simulator of disks of that period, not from measured arrays; the earlier analysis the paper builds on is cited from it, not read.
- The open-source documentation and code describe one implementation (OpenZFS dRAID) whose terminology differs; no cited source measures repair time on a modern device pool.
- Arithmetic: alpha 0.15, 0.45 and 1.0 in a 21-disk array correspond to G = 4, 10 and 21, with parity at 25%, 10% and about 4.8% of space.
- Arithmetic on the open-source example: 14 drives, 2 spares and groups of 9 give LCM(9, 12) = 36 columns, 4 groups over 3 rows, matching its 576 MB slice; N = 20, D = 8, P = 2, S = 2 gives 14.4 disks of capacity.