Parity logging
Parity logging records pending parity changes in a log for later application while updating data in place.
The original ISCA 1993 design batches parity updates to replace small random accesses with larger transfers. Its parity-update image is the XOR of old and new data, so forming it still requires the old value unless cached. Recovery must incorporate unapplied log records before using parity to reconstruct lost data.
Linux MD Partial Parity Log instead records unchanged stripe chunks' XOR for write-hole recovery; it is not this update-performance scheme.
Its simulated completion point has data on disk and the update record in fault-tolerant storage. Simultaneous controller-memory and disk loss requires nonvolatile buffers when counted as one failure; software corruption of the buffers is outside scope. These are historical model assumptions, not modern-device power-loss qualification. [1]
Region buffering. The single-log sketch needs a disk-sized parity workspace. Partitioning it into regions reduces the reintegration workspace, but each region needs a protected accumulation buffer. Writes to different region logs are random track writes, not one globally sequential stream. Rotating logs across members removes an array-wide bottleneck without removing an individual region's bottleneck. [1]
Striping a region log can relieve that bottleneck. In the original layout, its fragments must stay off disks holding the data they protect. More log striping consumes additional capacity and can make transfers too small to remain efficient. [1]
Relations
- related
- AFRAID, Floating parity, Parity logging with reserved space, Read-modify-write, Partial Parity Log, Speculative partial write, Parity RAID
Advantages
- Batches parity maintenance while keeping normal data reads direct
Limitations
- Pending logs participate in recovery and consume storage
- Log appends and eventual parity integration still cost I/O