{
  "slug": "mapping-cache",
  "term": "SSD mapping cache",
  "aliases": [
    "cached mapping table",
    "CMT"
  ],
  "definition": "An SSD mapping cache retains selected logical-to-physical address mappings in memory.",
  "note": "The cache stores locations rather than necessarily caching user data. A miss can require reading mapping metadata before the user-data read. This is an I/O dependency, not a universal latency multiplier. [learned]\n\nWith 4-byte physical addresses, one 2 KB translation page holds 512 consecutive mappings, and a full page-level table takes about 2 MB per 1 GB of flash, about 0.2%. A table that large on a 16 GB device needs about 32 MB of controller memory, which motivates caching only part of it. In DFTL's described miss path, an unchanged victim needs no writeback. A changed victim can require a translation-page read and rewrite before fetching the requested mapping: two metadata reads and one metadata write in that worst case, excluding user-data I/O and garbage collection. [dftl]\n\nCapacity alone does not establish the hit ratio. Access history and the replacement rule matter. In a FEMU reimplementation of TPFTL, random-read throughput was up to 60% below sequential-read throughput; a cache holding 50% of mappings reached a 25.9% hit ratio. These are configuration-specific emulator results. [learned]\n\nA mapping-cache miss need not become a translation-page read. LearnedFTL can use a bitmap-qualified model prediction instead. Its model coverage and cache hit ratio are separate quantities. [learned]",
  "status": "shipping",
  "advantages": [
    {
      "text": "Keeping only recently used page-level entries in memory lets the controller avoid block-level merge operations without holding the whole table.",
      "citationIds": [
        "dftl"
      ]
    }
  ],
  "limitations": [
    {
      "text": "Entries changed since loading must be written back to translation pages on eviction, which adds flash writes. Batching updates to one translation page reduces but does not remove them.",
      "citationIds": [
        "dftl"
      ]
    }
  ],
  "related": [
    "ftl",
    "dram-cache-ssd",
    "hmb",
    "translation-page",
    "lru-replacement",
    "cache-pollution",
    "page-level-mapping",
    "global-translation-directory",
    "working-set",
    "locality-of-reference",
    "block-level-mapping",
    "lazyftl",
    "tpftl",
    "leaftl",
    "page-validity-bitmap",
    "learnedftl"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-22",
  "citations": [
    {
      "id": "learned",
      "title": "Wang et al. LearnedFTL: A Learning-Based Page-Level FTL for Reducing Double Reads in Flash-Based SSDs. HPCA 2024, pp. 616-629, sections II-IV.",
      "url": "https://ranger.uta.edu/~jiang/publication/Conferences/2024/HPCA24%28LearnedFTL%29.pdf",
      "accessed": "2026-11-09"
    },
    {
      "id": "hesela",
      "title": "SSD mapping caches: why DRAM size is not a speed rating",
      "url": "https://hesela.com/analyses/ssd-mapping-cache-hmb/",
      "accessed": "2026-10-12"
    },
    {
      "id": "ftl-guide",
      "title": "Hesela: Flash Translation Layer technology guide",
      "url": "https://hesela.com/tech/ftl/",
      "accessed": "2026-10-18"
    },
    {
      "id": "dftl",
      "title": "Gupta, Kim and Urgaonkar. DFTL: A Flash Translation Layer Employing Demand-based Selective Caching of Page-level Address Mappings. ASPLOS 2009.",
      "url": "https://www.cse.psu.edu/~buu1/papers/ps/dftl-asplos09.pdf",
      "accessed": "2026-11-09"
    }
  ],
  "provenance": [
    "dftl read 2026-10-23, sections 2 and 3, for translation-page capacity, table size, worst-case miss cost and batched write-back.",
    "learned read 2026-10-23, sections II-B and III, for random-read throughput and hit ratio versus cache share.",
    "A companion analysis with cold, scan and return phases is listed but not used in prose. A companion technology guide is listed but not used in prose.",
    "DFTL section 3.2 rechecked 2026-11-09: the quoted worst case concerns translation overhead for that design, not a device-wide I/O or latency bound.",
    "LearnedFTL sections II-B and IV-A rechecked 2026-11-09: the named TPFTL baseline was reimplemented in FEMU, not measured on a commercial SSD."
  ]
}
