{
  "slug": "container-capping",
  "term": "Container capping",
  "aliases": [],
  "definition": "Container capping limits the old containers referenced by a backup segment by storing selected duplicate chunks again.",
  "note": "A locality-versus-space trade-off, not a cap on total repository containers. [lillibridge2013]\n\nThe backup stream is cut into segments of about 20 MB, roughly 5,000 chunks. For each segment the old containers, about 4 MB each, are ranked by how many of the segment's chunks they hold, and the top T are kept. Duplicates found in other containers are stored again in the open container, so each segment's recipe refers to at most T old containers plus 1 to 5 new ones. [lillibridge2013]\n\nWith a 128 MB restore cache, giving up 2% of deduplication bought a 4.0 times restore speed-up on a workgroup data set and 8% bought 6.4 times, but with a 1 GB cache only 1.7 and 2.3 times. Over 480 backups fragmentation grew 11 times without capping, 6 times with 90 containers per segment and 1.4 times with 10. [lillibridge2013] At most T + 5 containers per 20 MB segment bounds the speed factor below by 20 / (T + 5), 0.8 for T = 20.\n\nA 2015 study classes rewriting as the design dimension that trades deduplication ratio for restore speed and implements capping in an open-source test platform, whose code keeps the T containers that hold most of a buffer of pending chunks and marks the other duplicates for rewriting. [fu2015] [destor]",
  "related": [
    "deduplication",
    "chunk-fragmentation"
  ],
  "citations": [
    {
      "id": "lillibridge2013",
      "title": "Lillibridge, Eshghi and Bhagwat. Improving Restore Speed for Backup Systems that Use Inline Chunk-Based Deduplication. USENIX FAST 2013.",
      "url": "https://www.usenix.org/system/files/conference/fast13/fast13-final124.pdf",
      "accessed": "2026-10-11"
    },
    {
      "id": "hesela-dedup-restore",
      "title": "Deduplication ratio does not predict restore cost",
      "url": "https://hesela.com/analyses/deduplication-restore-fragmentation/",
      "accessed": "2026-10-11"
    },
    {
      "id": "fu2015",
      "title": "Fu et al. Design Tradeoffs for Data Deduplication Performance in Backup Workloads. USENIX FAST 2015.",
      "url": "https://www.usenix.org/system/files/conference/fast15/fast15-paper-fu.pdf",
      "accessed": "2026-10-16"
    },
    {
      "id": "destor",
      "title": "destor deduplication test platform, src/cap_rewrite.c, master branch (last commit April 2016).",
      "url": "https://github.com/fomy/destor/blob/master/src/cap_rewrite.c",
      "accessed": "2026-10-16"
    }
  ],
  "status": "research",
  "advantages": [
    {
      "text": "Combined with a forward assembly area for restore, capping gave larger speed-ups than either technique alone.",
      "citationIds": [
        "lillibridge2013"
      ]
    }
  ],
  "limitations": [
    {
      "text": "Each segment is capped on its own, which overlooks the relationship between consecutive segments.",
      "citationIds": [
        "destor"
      ]
    },
    {
      "text": "On a two-year synthetic data set, a 23% deduplication loss bought 8.8 times with a 128 MB cache but only 5.0 times with 1 GB.",
      "citationIds": [
        "lillibridge2013"
      ]
    },
    {
      "text": "Ingestion needs an extra segment-sized buffer per stream and must still look up chunk locations before the cap is applied.",
      "citationIds": [
        "lillibridge2013"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-10-22",
  "provenance": [
    "The capping paper is by authors at a storage-company research laboratory (HP Labs); its performance numbers come from two data sets and one LRU restore-cache model.",
    "The independent 2015 study and its platform describe and implement capping but do not reproduce the capping numbers; its 27.69% loss for a 2.8 times speed-up concerns a different rewriting algorithm.",
    "Speed is the paper proxy, the inverse of mean containers read per MB restored; the 24 ms per container used to convert it to MB/s is the paper's illustrative assumption.",
    "Arithmetic: 20 MB / 4 KB = 5,120 chunks; 20 / (T + 5) is 1.33 for T = 10 and 0.21 for T = 90, ignoring cache hits across segments; at about 41.7 MB/s per unit these floors are about 56, 33 and 8.8 MB/s.",
    "The deduplication-loss percentages are the paper's cumulative factors."
  ]
}
