{
  "slug": "minimum-storage-regenerating-code",
  "term": "Minimum-storage regenerating code",
  "aliases": [
    "MSR code"
  ],
  "definition": "A minimum-storage regenerating code minimizes repair download at the minimum-storage point for a specified recovery threshold and helper count.",
  "note": "With k fragments sufficient to recover the data, n stored fragments, d helpers and S bytes per fragment, symmetric single-loss repair downloads dS/(d-k+1), where k <= d < n. This budget is conditional on a suitable code and repair procedure, not a property of every MDS implementation. In a (4, 2) example, a 2 Mb object is stored as four 1 Mb fragments; three helpers each send 0.5 Mb, so repair moves 1.5 Mb instead of the 2 Mb needed to decode the object first. [dimakis]\n\nFunctional repair preserves recoverability but can change a fragment's contents; exact repair reproduces the lost fragment. One practical exact-repair construction with (20, 16) and 19 helpers reads 256 of 1024 sub-symbols from each helper, a normalized repair bandwidth of 0.297. Lower download volume does not by itself establish lower physical disk reads or shorter recovery time. [clay]",
  "related": [
    "drboost",
    "optimal-access-repair",
    "maximum-distance-separable-code",
    "subpacketization",
    "repair-locality",
    "repair-read-amplification",
    "maximum-repair-load",
    "parity-declustering",
    "clay-code",
    "minimum-bandwidth-regenerating-code",
    "repair-by-transfer"
  ],
  "status": "limited",
  "advantages": [
    {
      "text": "At the minimum-storage point each node stores no more than an MDS fragment, so the repair saving comes without extra storage overhead.",
      "citationIds": [
        "dimakis"
      ]
    }
  ],
  "limitations": [
    {
      "text": "Sub-packetization grows with the code: the (20, 16) construction divides each fragment into 1024 sub-symbols, which can fragment reads on small stripes.",
      "citationIds": [
        "clay"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-22",
  "provenance": [
    "dimakis read 2026-10-23, sections I and III and Fig. 2, for the repair-bandwidth formula and the (4, 2) example.",
    "clay read 2026-10-23, sections 2 and 5, for exact repair and the (20, 16) parameters.",
    "A cluster-storage plugin manual with a deprecation notice is listed but not used in prose; check the deployed release.",
    "A companion analysis on local versus whole-node repair is listed but not used in prose.",
    "2026-11-22: linked the CLAY construction; reviewed shortening and distinguished helper-byte accounting from primary-forwarding traffic."
  ],
  "citations": [
    {
      "id": "dimakis",
      "title": "Dimakis et al. Network Coding for Distributed Storage Systems. IEEE TIT 56(9), 4539-4551 (2010), DOI 10.1109/TIT.2010.2054295; equation 5.",
      "url": "https://pbg.web.engr.illinois.edu/papers/coding-journal.pdf",
      "accessed": "2026-10-23"
    },
    {
      "id": "clay",
      "title": "Vajha et al. Clay Codes: Moulding MDS Codes to Yield an MSR Code. FAST 2018, 139-154; sections 2, 4 and 5.",
      "url": "https://www.usenix.org/system/files/conference/fast18/fast18-vajha.pdf",
      "accessed": "2026-10-23"
    },
    {
      "id": "clay-plugin-manual",
      "title": "Ceph: CLAY code plugin, development documentation; helper ranges, sub-chunks and deprecation notice.",
      "url": "https://docs.ceph.com/en/latest/rados/operations/erasure-code-clay/",
      "accessed": "2026-10-18"
    },
    {
      "id": "hesela-lrc",
      "title": "Hesela: Local repair is not whole-node repair",
      "url": "https://hesela.com/analyses/lrc-repair-costs-locality/",
      "accessed": "2026-10-18"
    }
  ]
}
