Page-level mapping (FTL)
Page-level mapping tracks each logical page independently, allowing out-of-place updates without retaining a fixed page offset within a mapped erase block.
In the fully associative model, an update can use any eligible free page and the table records the new location. [1] This avoids the whole-block read-modify-write needed for small updates in the coarse-mapping example. [3]
Page-level mapping does not guarantee device-wide placement freedom. Agrawal and colleagues describe static allocation pools, from a flash plane to multiple packages, with dynamic mapping inside each pool. Pool scope, mapping granularity and RAM residency are separate design choices. Their 2008 design study does not establish the placement policy of a current commercial SSD. [4]
The cost is table size. With binary units made explicit, one 4-byte entry per 4 KiB page needs 1 GiB of map payload for a 1 TiB device [3], and a 16 GiB device with 2 KiB pages needs 32 MiB for four-byte mapping entries. [1] Mapping granularity does not require full RAM residency, because the table can live on flash in translation pages holding 512 four-byte entries per 2 KiB page, 2 MiB or about 0.2% of a 1 GiB device, with only selected entries cached. [1]
The logical mapping unit need not equal one host LBA, and NAND page size is not fixed across devices. In OSTEP's simple demand-cached design, a missing mapping is fetched from flash; dirty eviction also causes metadata writeback. [3] DFTL can batch colocated mapping updates into one translation-page rewrite, so changed entries and media writes are not one-to-one. [5]
A miss alone does not determine cost. In LearnedFTL's design, a bitmap-qualified prediction bypasses the translation-page read; an unqualified prediction uses the fallback. The bitmap must remain valid for the current mapping. This is a research-design counterexample, not a commercial-device guarantee. [6]
Relations
- related
- Flash translation layer (FTL), Block-level mapping (FTL), SSD mapping cache, FTL translation page, Reverse mapping (FTL), LazyFTL, DFTL
Advantages
- Fine-grained addressing lets garbage collection replace the full merges of hybrid schemes with cheaper partial merges. [1]
Limitations
- After power loss an in-memory table must be rebuilt, in the simplest design by scanning the out-of-band areas of every page, which is slow on a large device. [3]
Citations
- Gupta, Kim and Urgaonkar. DFTL: Demand-based Selective Caching of Page-level Address Mappings. ASPLOS 2009, sections 2-3 and 5.2.
- Arpaci-Dusseau. Operating Systems: Three Easy Pieces, chapter 44 Flash-based SSDs, version 1.10, sections 44.4-44.10.
- Agrawal et al. Design Tradeoffs for SSD Performance. USENIX ATC 2008, section 3.1, pp. 60-61.
- Gupta, Kim and Urgaonkar. DFTL technical report CSE-08-012, August 2008, section 3.2, pp. 14-15.
- Wang et al. LearnedFTL. HPCA 2024, sections III-A and III-B, pp. 620-621, Figure 9.
Further reading
Sources & caveats
- dftl is the ASPLOS 2009 paper read in sections 2-3 and 5.2; ostep is a free university textbook, chapter 44, version 1.10, read in sections 44.4-44.10.
- The historical DFTL capacity examples use binary geometry; map payload does not include all cache-management overhead.
- Binary arithmetic: 1 TiB / 4 KiB = 2^28 entries; four bytes per entry gives 1 GiB. At 1 TB and 4 KiB, the payload is 976,562,500 bytes. These are different capacity conventions.
- Translation-page arithmetic: 2048 bytes / 4 bytes = 512 entries per translation page.
- Agrawal section 3.1 distinguishes static pool selection from dynamic mapping within a pool; it is a design counterexample to unrestricted device-wide placement, not a survey of current products.
- Rechecked OSTEP v1.10 p. 16, the August 2008 DFTL report section 3.2 and LearnedFTL sections III-A/B on 2026-11-22. Cache-miss costs are design-specific; no emulator or hardware experiment is claimed.