partial-parity-log · shipping · also PPL

Partial Parity Log

Partial Parity Log is a Linux MD RAID5 mechanism that records the XOR of untouched stripe chunks before dispatching data and parity updates.

The log resides on the stripe's parity member. Its recovery scope is narrower than a data journal. It records untouched-data parity for write-hole recovery, rather than accumulating changed-data deltas to batch normal parity updates.

After an unclean stop a stripe's parity may disagree with its data, and if the array is also degraded, blocks the interrupted write never touched can be rebuilt wrongly, so md refuses to start a dirty degraded array by default. Recovery XORs the logged partial parity with the data actually read from the modified members. The resulting parity matches those surviving values, not necessarily the pre-write stripe or the complete intended update. [3] Recovery also runs at start-up when all disks are present, which avoids a resync. [1]

Each log instance has a 4 KB header and at least 128 KB of partial parity, every entry and the header carry checksums, and full-stripe writes still log an entry with pp_size=0 so recovery knows which parity to recalculate. A write is logged on its stripe's parity disk, its data and parity writes start only after the log write completes, and member write-back caches are flushed between log units. Entries with bad checksums are skipped at recovery. [3] PPL supports up to 64 disks. [1]

Partial parity is one 4 KB unit per stripe row whatever the number of untouched chunks, so a write to two data chunks over three rows logs 12 KB of partial parity for 24 KB of data. [3] A journal device instead logs data and parity before the array and replays them, closing the write hole at the cost of extra writes. [4]

Relations

related
RAID write hole, RAID 5, Parity RAID, Write-intent bitmap, Parity logging, Speculative partial write, Full-stripe write

Advantages

  • No separate journal device is required. [1]
  • Logging load spreads across the array because each stripe logs on its own parity member. [1, 3]

Limitations

  • Does not guarantee preservation of in-flight data; loss of a modified member is outside that protection. [1]
  • The documented Linux MD implementation does not combine PPL with a write-intent bitmap. [1]
  • The documentation quotes a write-performance reduction of up to 30 to 40%. [1]

Citations

  1. Linux v6.12: Partial Parity Log (accessed 2026-10-11)
  2. Linux v6.12 drivers/md/raid5-ppl.c and include/uapi/linux/raid/md_p.h, PPL header and entry format. (accessed 2026-10-25)
  3. Neil Brown. A journal for MD/RAID5. LWN.net, 24 November 2015. (accessed 2026-10-16)

Further reading

  1. Hesela: RAID write hole, bitmap and PPL (accessed 2026-10-11)
Sources & caveats
  • The kernel documentation and source are project material whose file header credits a hardware company (Intel) as the origin of the feature.
  • The 30 to 40% reduction comes from the feature's own description, not from an independent measurement.
  • The journal article is by the md maintainer and describes the alternative, not PPL; no cited source measures PPL independently.
  • Arithmetic from the header definition: 24-byte entries in 4096 - 512 - 24 = 3,560 bytes allow at most 148 entries per header; the 24 KB and 12 KB example follows the source comment.
  • Behaviour is for Linux v6.12.
  • The surviving-state interpretation follows ppl_recover_entry in Linux v6.12; the documentation's before-write wording must not be read as rollback of modified data.

JSON: /data/terms/partial-parity-log.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Partial Parity Log. Hesela. 2026-10-25. https://hesela.dev/terms/partial-parity-log/