{
  "slug": "full-stripe-write",
  "term": "Full-stripe write",
  "aliases": [
    "full stripe write"
  ],
  "definition": "A parity-array write supplying replacement data for every data position of a stripe so its new parity can be computed without reading the prior stripe contents.",
  "note": "Parity is still written. A healthy stripe with k equal-size data blocks and p parity blocks writes k+p blocks for k blocks of payload.\n\nFor writes that do not cover a stripe, the Linux MD RAID 4/5/6 driver must read old data before it can calculate new parity, and sequential writes dispatched at different times can incur the same reads. A write-back journal on an extra cache disk aggregates such data and flushes it to the members only once it forms a full-stripe write. Several hundred megabytes of cache suffice for write-through mode, while at least several gigabytes are recommended for write-back aggregation. [linux-cache]\n\nThe in-memory stripe cache also bounds aggregation. Its stripe_cache_size defaults to 256 entries, with lower and upper limits of 17 and 32768. [md-admin]",
  "advantages": [
    {
      "text": "Eliminates old-data and old-parity reads for parity computation when all replacement data is present",
      "citationIds": [
        "linux-cache"
      ]
    }
  ],
  "limitations": [
    "Request splitting and misalignment can leave partial stripes",
    {
      "text": "Covering every data position does not by itself close the write hole, since a crash during the multi-member write can still leave data and parity mismatched",
      "citationIds": [
        "linux-cache"
      ]
    },
    {
      "text": "In write-back mode completion is reported once data reaches the cache disk, so a cache-disk failure can lose acknowledged writes",
      "citationIds": [
        "linux-cache"
      ]
    }
  ],
  "related": [
    "read-modify-write",
    "reconstruct-write",
    "parity-raid",
    "raid-write-hole",
    "write-amplification",
    "striping",
    "stripe-unit",
    "differential-raid"
  ],
  "status": "shipping",
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-10-23",
  "citations": [
    {
      "id": "linux-cache",
      "title": "Linux kernel documentation: RAID 4/5/6 cache, write-through and write-back modes",
      "url": "https://www.kernel.org/doc/html/latest/driver-api/md/raid5-cache.html",
      "accessed": "2026-10-23"
    },
    {
      "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": "md-admin",
      "title": "Linux kernel documentation: RAID arrays (md), sysfs stripe_cache_size and journal_mode",
      "url": "https://docs.kernel.org/admin-guide/md.html",
      "accessed": "2026-10-23"
    }
  ],
  "provenance": [
    "linux-cache re-read 2026-10-23 for the read-before-parity rule, write-back aggregation, cache sizing and completion points. md-admin is the md administration guide, read for stripe_cache_size and journal_mode defaults.",
    "The k+p block count follows a companion analysis's write-cost model, which is listed but not used in prose.",
    "The partial-parity-log entry links here because a partial parity log addresses the write hole without a cache disk, whereas a write-back journal aggregates data into full-stripe writes."
  ]
}
