NVMe reclaim unit handle
An FDP controller resource that references one reclaim unit in each reclaim group of an endurance group.
A placement handle is scoped to a namespace and maps to a reclaim unit handle scoped to the endurance group. A placement identifier combines a reclaim group identifier with a placement handle, and a write carries it in the Data Placement Directive. When the RU referenced by a handle is written to capacity, the controller updates the handle to reference an empty RU, so a handle is not a fixed physical location. [1]
The FDP configuration descriptor reports the number of handles in NRUH, bytes 09:08, which must be non-zero, followed by one 4-byte descriptor per handle starting at byte 64. The first byte of that descriptor gives the handle type, where 1h means Initially Isolated and 2h means Persistently Isolated. With type 1h, garbage collection may move data into an RU that also holds data written through any handle of the same type in that reclaim group. With type 2h, relocated data shares an RU only with data written through the same handle. [1]
The same descriptor limits placement identifiers per namespace through MAXPIDS, bytes 11:10, a 0's based value that must be less than NRG multiplied by NRUH. In NVM Command Set 1.1, the Reclaim Unit Handle Status descriptor is 32 bytes and identifies each entry by placement identifier and handle identifier. [1] [4]
Relations
Advantages
- Each write selects its destination through the placement identifier, so the host can separate data streams without managing physical addresses. [1]
Limitations
- Handle changes caused by a Controller Level Reset are reported as an FDP event, so the mapping from handle to RU cannot be assumed to persist across a reset. [1]
Citations
- NVM Express Base Specification 2.1 (5 August 2024), section 1.5 FDP terms, section 3.2.4, Figures 280-281 and section 5.1.12.1.31.
- NVM Express NVM Command Set Specification 1.1 (5 August 2024), section 3.2.1.1 Figure 20.
Further reading
- NVM Express. Flexible Data Placement Overview, FMS 2023, slides 6-7 and 16-23. Historical architecture overview, not a current software-support matrix.
- Samsung. Getting Started with Flexible Data Placement, v4, sections 4.1.1 and 6.1. Vendor implementation guide.
Sources & caveats
- base is the NVM Express Base Specification 2.1, read in the FDP terms, section 3.2.4, Figures 280 and 281 and the FDP event descriptions.
- nvm is the NVM Command Set Specification 1.1, read in Figure 20 for the Reclaim Unit Handle Status descriptor.
- Field offsets, sizes and type codes are quoted from the specifications and were not checked on a device.