{
  "slug": "space-amplification",
  "term": "Space amplification",
  "aliases": [],
  "definition": "Database space amplification quantifies storage overhead relative to logical data size under an explicitly stated total-space or excess-space convention.",
  "note": "For total-space accounting, divide stored database bytes by represented logical data bytes. State whether stored bytes include SST files, WAL, metadata, retained versions and temporary compaction output, and whether the denominator is uncompressed live keys and values. Report steady-state footprint separately from peak space during a merge. [rocks-tuning] Compression and compaction affect different parts of this accounting. [rocks-space] RocksDB Universal's max_size_amplification_percent estimates additional space relative to its oldest run; it is not the total-space ratio or a guaranteed disk-space cap. An insert-only workload can violate the heuristic's overwrite assumption. [rocks-universal] Sarkar et al. instead define excess-space amplification using invalidated-entry bytes over unique-entry bytes; those conventions are not interchangeable. [compaction-design]",
  "related": [
    "lsm-tree",
    "leveled-compaction",
    "tiered-compaction",
    "database-write-amplification"
  ],
  "citations": [
    {
      "id": "rocks-tuning",
      "title": "RocksDB project. Tuning Guide: amplification factors and their accounting boundaries.",
      "url": "https://github.com/facebook/rocksdb/wiki/RocksDB-Tuning-Guide",
      "accessed": "2026-10-14"
    },
    {
      "id": "rocks-space",
      "title": "RocksDB project. Space Tuning: compression, compaction and space usage.",
      "url": "https://github.com/facebook/rocksdb/wiki/Space-Tuning",
      "accessed": "2026-10-14"
    },
    {
      "id": "rocks-universal",
      "title": "RocksDB project. Universal Compaction: run selection, temporary space and amplification heuristic.",
      "url": "https://github.com/facebook/rocksdb/wiki/Universal-Compaction",
      "accessed": "2026-10-14"
    },
    {
      "id": "compaction-design",
      "title": "Sarkar, Staratzis, Zhu and Athanassoulis. Constructing and Analyzing the LSM Compaction Design Space. PVLDB 14(11), 2216-2229 (2021), DOI: 10.14778/3476249.3476274; updated arXiv:2202.04522v2 (2022), sections 2-5.",
      "url": "https://arxiv.org/abs/2202.04522v2",
      "accessed": "2026-10-14"
    },
    {
      "id": "hesela",
      "title": "Hesela. Bloom filters: optimize the lookup, not each filter; compaction and measurement boundaries.",
      "url": "https://hesela.com/analyses/bloom-filters-lsm-read-cost/",
      "accessed": "2026-10-14"
    }
  ],
  "status": "shipping",
  "advantages": [],
  "limitations": [],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-10-14"
}
