parity-logging · research

Parity logging

Parity logging records pending parity changes in a log for later application while updating data in place.

Related Observatory article: Read on hesela.com

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

Citations

  1. Stodolsky et al. Parity Logging. ISCA 1993, section 2 (Figures 4-8 and Figure 9, footnote 1); section 5 footnote 6. (accessed 2026-11-01)

Further reading

  1. Linux v6.12: Partial Parity Log, protected failure cases and limitations. (accessed 2026-10-19)
  2. Hesela: RAID write accounting and parity replay traces (accessed 2026-10-19)

JSON: /data/terms/parity-logging.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Parity logging. Hesela. 2026-12-02. https://hesela.dev/terms/parity-logging/