Host memory buffer (HMB)
Host Memory Buffer is an optional NVMe feature through which a controller uses assigned host-memory ranges.
The host enables HMB through Set Features (feature identifier 0Dh). Its contents are vendor-specific: cached FTL mapping entries are a documented use, not a required layout. Unlike Controller Memory Buffer (CMB), HMB resides in host memory. [1] [4]
NVMe 1.4a requires correct operation without HMB and protection against data loss or corruption on surprise removal while HMB is used. These requirements do not establish protection for every in-flight write. [1] [5]
HMPRE and HMMIN specify requested memory in 4 KiB units; HSIZE describes allocation in CC.MPS memory-page units. EHM reports enablement separately. [1]
While HMB is enabled, the host must not modify its descriptor list or assigned memory. Successful completion of disabling HMB permits host reuse. When enabling HMB with Memory Return (MR)=1, the size, descriptor-list address, descriptors and buffer contents must match what the controller last saw before HMB was disabled. MR=0 specifies an allocation whose contents are undefined to the controller. This return contract is not a persistence guarantee. [1] Re-enabling an enabled HMB returns Command Sequence Error; disabling an already disabled HMB succeeds without changing state. [1]
Relations
- related
- NVMe, Consumer SSD, PCIe storage attachment, Flash translation layer (FTL), SSD DRAM cache, SSD mapping cache, FTL translation page, Controller Memory Buffer (CMB), NVMe Persistent Memory Region (PMR)
Advantages
- Host-provided working memory can support an SSD architecture without onboard DRAM. [2]
- More space for cached FTL tables can reduce address-mapping overhead. [4]
Limitations
- Actual allocation and performance depend on host support and device implementation. [1, 2]
- Cache allocation does not specify hold-up energy or the recovery procedure for interrupted writes. [5]
Citations
- NVM Express 1.4a (9 March 2020), sections 5.15.2.2, 5.21.1.13 and 8.9. Copyright 2007-2020 NVM Express, Inc.
- KIOXIA: HMB (Host Memory Buffer) technology for DRAM-less SSDs, 28 August 2018.
- Micron: Optimizing storage with host assists for the AI PC of the future.
- Micron: Client vs. Data Center SSDs, December 2023, page 5: data-at-rest and data-in-flight protection.
- Kim and Kim (2020). HMB in DRAM-less NVMe SSDs: Their usage and effects on performance. PLOS ONE 15(3): e0229645, section IV, Figure 10.
Further reading
Sources & caveats
- Protocol statements use NVMe 1.4a. KIOXIA and Micron describe implementations, not an independent comparison of all DRAM-less SSDs.
- Kim and Kim's 2020 size-sweep evidence did not establish the mapping-cache interpretation for fixed-allocation SSD-B. [7]