Technology card
ShippingFlash Translation Layer (FTL)
Flash translation layer
How an SSD preserves logical addresses while relocating data, and why mapping policy, cache size and recovery guarantees need separate checks.
Glossary entry on hesela.dev · JSON record · Page-level mapping · Block-level mapping · Mapping-cache analysis · Metadata writeback · Recovery contracts · Nameless writes · Zone Append
Related
On this page6 sections
In one minute
A flash translation layer maps host logical addresses to physical flash locations and manages flash-specific operations such as reclamation.
An overwrite can place new contents in a different flash page while keeping the host address unchanged. The map identifies the current location; the superseded page can remain physically programmed until its block is erased. Invalidation is not erasure. [1]
Before reclaiming a block, garbage collection preserves any still-live pages elsewhere. Wear leveling has a different objective: spreading erase wear. The policies interact, but reclaiming space and balancing wear are not interchangeable tasks. [1]
Mapping granularity and map residency are separate choices. Page-level mapping need not keep its entire table in RAM: DFTL selectively caches entries and stores translation pages in flash. Its Global Translation Directory locates those pages. [2]
Page-level mapping does not promise access to every free page in the device. Agrawal and colleagues describe a static choice of allocation pool followed by dynamic mapping within that pool. Pool scope can affect load balancing and parallel access even when mappings remain page-granular. This is a design alternative, not a claim about every SSD; product-specific placement requires product-specific evidence. [1]
A miss in a demand-fetched mapping cache can require a translation-page read before the requested data read. But a cache miss does not always imply that extra read: the LearnedFTL paper's design can instead use a bitmap-qualified address prediction. An unqualified prediction takes the translation-page fallback, and the bitmap must track the current mapping. This is a research-design distinction, not a commercial-device guarantee. Extra I/O is not a universal two-times latency multiplier; cache behavior, scheduling and other work also matter. [3]
Metadata writeback can add work beyond fetching a missing mapping; see the linked analysis. [2]
Recovery must reconstruct usable mappings and distinguish current data from obsolete copies. Agrawal and colleagues discuss persistent metadata and backup energy; these are design considerations, not proof that a particular SSD implements a specified crash contract. [1]
Raw flash can use a different stack. Linux UBIFS sits on UBI volumes over MTD; UBI provides wear leveling and bad-block management but still exposes flash erase semantics. It should not be described as a conventional block-device FTL. [4]
Nameless writes change the interface, not merely the mapping cache. The HotStorage 2010 proposal lets the device choose a write's destination and return its address. The filesystem records that address; it cannot select arbitrary physical overwrite locations. Placement and wear management remain device responsibilities. Its preferred reclaim callback asks the filesystem to rewrite the data and trim its old location; the later FAST prototype instead notifies the filesystem after device-side migration. The proposal also identifies allocation leaks when data reaches the device before the filesystem records its reference. [5] [6]
The FAST 2012 design does not eliminate every map. A small virtual segment keeps metadata addresses stable and stops recursive pointer updates. Associated metadata identifies the filesystem references to relocated data. Wear-leveling migrations of nameless data retain temporary remappings until the filesystem writes its changed reference metadata to the device and acknowledges the callback; only then is the remapping removed. In-place reclamation instead rewrites live pages at their original locations; protecting the temporary copy requires battery- or capacitor-backed memory. Recovery also assumes pages are written atomically with their out-of-band metadata. Startup scans valid pages to reconstruct the virtual map; crash recovery then repairs filesystem references in a dedicated transaction. [6]
Zhang and colleagues evaluated modified ext3 in ordered journaling mode on an emulated SSD. Table 2 specifies a 4 GB device; the separate mapping-space study uses filesystem images of several sizes. Do not read those larger image sizes as physical devices tested for performance, or treat reported speedups as retail-drive guarantees. Section 6.7 reports four crash-injection points in that emulator, not exhaustive power-loss validation of hardware. This is source review, not a reproduced benchmark. [6]
NVMe Zone Append also returns a location, but it is a logical block address within the host-selected zone. It does not expose the physical flash address used by the research interface. Similar request/response shapes do not establish identical relocation, recovery or persistence guarantees. [7]
For a device investigation, record the model and firmware, access range, read/write mix and steady-state conditions. Check cache behavior separately from persistence guarantees, then use the linked analyses for mapping-footprint examples and explicit recovery models.
The FAST 2013 OpenSSD implementation used a split FTL, mostly in the host OS. It reports a data-loss window between relocation and filesystem notification: the earlier design's atomic page/OOB metadata mechanism was unavailable on that platform. Metadata flushing was implemented, but this race remained. An attempted two-command address-return workaround also exposed a 4 KB filesystem-block versus 32 KB virtual-page mismatch: reordered writes could reprogram a page without erasure. These are limitations of that prototype, not all SSDs. The reported reclamation sequence copies live pages to host DRAM, erases their old block, then writes them to a new block. Hesela's test recommendation is therefore to inject failures during the erase-to-rewrite interval as well as before the callback; this is an inference from the sequence, not a measured failure rate. [8]
Hesela's synthesis: moving an address map across the host/device boundary also moves recovery obligations. Evaluate placement, notification and durable reference updates separately. A throughput result cannot establish crash consistency, and an emulator's recovery argument does not automatically transfer to hardware with different primitives. No hardware experiment was performed for this source comparison.
Mapping policies
These classical mapping schemes describe address translation, not the amount of RAM installed in a product. Mapping granularity, placement scope and RAM residency answer different questions.
Classical FTL mapping policies and their tradeoffs
- Page-level mapping
- Mapping ruleTracks each logical page independently. [2]
- TradeoffFlexible placement within the allocation policy; a larger mapping representation.
- Block-level mapping
- Mapping ruleTranslates a logical flash block and retains the page offset. [2]
- TradeoffFewer entries; less flexible placement for small updates.
- Hybrid log-block mapping
- Mapping ruleCombines block-mapped data blocks with page-mapped update blocks. [2]
- TradeoffUpdate flexibility brings merge work.
Uncertainty notes
- Source-based engineering overview, not a device benchmark or reproduction of the cited papers.
- The older papers support mechanisms and terminology; their NAND geometry, timings and simulated speedups are not used as present-day product specifications.
Sources
- 01Agrawal et al. Design Tradeoffs for SSD Performance. USENIX ATC 2008, pp. 57-70, sections 3.1, 3.2 and 3.4. · accessed 2026-11-22
- 02Aayush Gupta, Youngjae Kim and Bhuvan Urgaonkar. DFTL: A Flash Translation Layer Employing Demand-based Selective Caching of Page-level Address Mappings. ASPLOS 2009, pp. 229-240, sections 2 and 3. DOI 10.1145/1508244.1508271. · accessed 2026-10-18
- 03Wang et al. LearnedFTL: A Learning-Based Page-Level FTL for Reducing Double Reads in Flash-Based SSDs. HPCA 2024, pp. 616-629, sections II-III. DOI 10.1109/HPCA57654.2024.00054. · accessed 2026-10-18
- 04Linux kernel documentation: UBI File System, Introduction. · accessed 2026-10-18
- 05Arpaci-Dusseau, Arpaci-Dusseau and Prabhakaran. Removing The Costs Of Indirection in Flash-based SSDs with Nameless Writes. HotStorage 2010, sections 2-4. · accessed 2026-10-27
- 06Zhang et al. De-indirection for Flash-based SSDs with Nameless Writes. FAST 2012, updated 7 February 2012, sections 3-6. · accessed 2026-10-27
- 07Western Digital. Zoned Storage Devices Overview, Zone Append. · accessed 2026-10-26
- 08Saxena et al. Getting Real: Lessons in Transitioning Research Simulations into Hardware Systems. FAST 2013, sections 3.4.1-3.4.2, pp. 223-224. · accessed 2026-11-21