Reconstruct-write
A parity-array update method that computes new parity from incoming replacement data and unchanged data from the same stripe instead of updating old parity from old overwritten data.
In the healthy-array cold-cache accounting model, replacing u complete equal-size data blocks among k data blocks with p parity blocks requires k-u old-data reads and u+p writes [1]. If cU unchanged blocks are already coherently available at the parity layer, the reads fall to k-u-cU; the write count stays u+p [3]. Cached old changed-data blocks or parity do not reduce this path's prereads. The name describes parity regeneration during an update, not a failed-drive rebuild.
Linux v6.12 can require reconstruction when old parity may be inconsistent even without a failed member [4]. Partial blocks, missing members, journals and concurrent state transitions require a separate implementation analysis.
Relations
Advantages
- Avoids reading the overwritten data and old parity
- Can require fewer prereads as more of a stripe is replaced
Limitations
- Reading the unchanged data can cost more than RMW for small updates in wider stripes
- Fewer block transfers do not necessarily mean lower latency
- This definition does not specify a degraded-array update algorithm
Citations
- Williams (2006): MD RAID Acceleration: Support for Asynchronous DMA/XOR Engines; sections 3-4
- Hesela: RAID write penalty is not a speed ratio; model and limitations
- Linux v6.12 drivers/md/raid5.c: uptodate_for_rmw() and handle_stripe_dirtying(), original-page validity, preread selection and recovery override.