{
  "slug": "reconstruct-write",
  "term": "Reconstruct-write",
  "aliases": [
    "reconstruction write"
  ],
  "definition": "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.",
  "note": "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 [williams2006]. 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 [hesela-cost]. 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.\n\nLinux v6.12 can require reconstruction when old parity may be inconsistent even without a failed member [linux-rmw-v612]. Partial blocks, missing members, journals and concurrent state transitions require a separate implementation analysis.",
  "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"
  ],
  "related": [
    "read-modify-write",
    "full-stripe-write",
    "parity-raid",
    "raid-5",
    "raid-6",
    "raid-write-hole"
  ],
  "status": "shipping",
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-10-19",
  "citations": [
    {
      "id": "williams2006",
      "title": "Williams (2006): MD RAID Acceleration: Support for Asynchronous DMA/XOR Engines; sections 3-4",
      "url": "https://www.kernel.org/doc/ols/2006/ols2006v2-pages-417-422.pdf",
      "accessed": "2026-10-11"
    },
    {
      "id": "chen1994",
      "title": "Chen et al. (1994): RAID: High-Performance, Reliable Secondary Storage; sections 3.2.5-3.3.2 and 4.1.1",
      "url": "https://pdl.cmu.edu/PDL-FTP/RAID/computin.pdf",
      "accessed": "2026-10-11"
    },
    {
      "id": "hesela-cost",
      "title": "Hesela: RAID write penalty is not a speed ratio; model and limitations",
      "url": "https://hesela.com/analyses/raid-write-penalty-io-not-speed/",
      "accessed": "2026-10-11"
    },
    {
      "id": "linux-rmw-v612",
      "title": "Linux v6.12 drivers/md/raid5.c: uptodate_for_rmw() and handle_stripe_dirtying(), original-page validity, preread selection and recovery override.",
      "url": "https://github.com/torvalds/linux/blob/v6.12/drivers/md/raid5.c#L3875-L4043",
      "accessed": "2026-10-19"
    }
  ]
}
