{
  "slug": "parity-logging",
  "term": "Parity logging",
  "aliases": [],
  "definition": "Parity logging records pending parity changes in a log for later application while updating data in place.",
  "note": "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.\n\nLinux MD Partial Parity Log instead records unchanged stripe chunks' XOR for write-hole recovery; it is not this update-performance scheme.\n\nIts 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. [stodolsky1993]\n\nRegion 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. [stodolsky1993]\n\nStriping 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. [stodolsky1993]",
  "status": "research",
  "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"
  ],
  "related": [
    "afraid",
    "floating-parity",
    "parity-logging-reserved-space",
    "read-modify-write",
    "partial-parity-log",
    "speculative-partial-write",
    "parity-raid"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-12-02",
  "citations": [
    {
      "id": "stodolsky1993",
      "title": "Stodolsky et al. Parity Logging. ISCA 1993, section 2 (Figures 4-8 and Figure 9, footnote 1); section 5 footnote 6.",
      "url": "https://www.pdl.cmu.edu/PDL-FTP/ParityLogging/ISCA93.pdf",
      "accessed": "2026-11-01"
    },
    {
      "id": "linux-ppl",
      "title": "Linux v6.12: Partial Parity Log, protected failure cases and limitations.",
      "url": "https://github.com/torvalds/linux/blob/v6.12/Documentation/driver-api/md/raid5-ppl.rst",
      "accessed": "2026-10-19"
    },
    {
      "id": "hesela",
      "title": "Hesela: RAID write accounting and parity replay traces",
      "url": "https://hesela.com/analyses/raid-write-penalty-io-not-speed/#parity-logging",
      "accessed": "2026-10-19"
    }
  ]
}
