HMB, short for host memory buffer, is an optional NVMe feature that allows a solid-state drive to borrow a small region of the host computer’s system RAM and use it as working memory for its controller. In storage hardware, HMB is the main technique that lets a DRAM-less SSD recover much of the random-access performance it would otherwise lose by lacking its own memory chip.
The feature was introduced in NVMe specification 1.2 and is negotiated between the drive and the operating system driver at startup. The borrowed region is typically between 16 MB and 64 MB, which is far smaller than the dedicated DRAM of a mainstream drive but large enough to hold the most frequently used part of the drive’s address mapping data.
How HMB extends the SSD controller’s memory
An HMB-capable drive uses host RAM to hold the hot portion of its flash translation layer (FTL) mapping table. Every SSD must translate logical block addresses from the operating system into physical locations in NAND flash, and this lookup table is large: a common rule of thumb is about 1 MB of mapping data per 1 GB of capacity, so a 1 TB drive needs roughly 1 GB to keep the full table in fast memory.
A drive with onboard DRAM keeps that whole table close to the controller. A DRAM-less controller has only a few megabytes of internal SRAM, so without HMB it must fetch mapping entries from the NAND itself, adding a flash read to many random accesses. With HMB, the controller caches recently used mapping segments in host memory and reaches them over the PCIe link through direct memory access (DMA).
The negotiation follows a defined sequence. The drive reports a preferred buffer size and a minimum size in its identify data, the host driver allocates memory (which may be split into several physically separate chunks), and the driver passes a descriptor list to the drive through a Set Features command. From then on, the host must not touch that memory until the drive releases it.
| Step | Performed by | What happens |
|---|---|---|
| Capability report | SSD | Drive advertises preferred and minimum HMB size |
| Allocation | Host driver | RAM is reserved, possibly in several chunks |
| Descriptor transfer | Host driver | Chunk addresses are sent with Set Features |
| Active use | SSD controller | Mapping data is cached in host RAM over DMA |
| Release | Host driver | Buffer is reclaimed before sleep, reset or shutdown |
Key parameters of a host memory buffer
The usefulness of HMB depends on buffer size, link latency and drive capacity. Because the buffer is a small fraction of the full mapping table, it acts as a cache: random accesses that hit cached segments are fast, while those that miss still require a flash read of the mapping data.
The table below summarizes typical values and their practical effect. Exact figures vary by controller design and firmware, so these ranges describe common consumer drives rather than fixed limits.
| Parameter | Typical value | Effect on performance |
|---|---|---|
| Buffer size | 16 MB to 64 MB | Larger buffers cover more of the address space |
| Mapping coverage | Tens of GB of data range | Determines how often lookups hit the cache |
| Access path | PCIe DMA to host RAM | Slower than onboard DRAM but far faster than NAND |
| Added latency | About 1 to 2 microseconds per access | Small compared with a NAND read |
| Specification | NVMe 1.2 and later | Older drivers or SATA drives cannot use it |
A 64 MB buffer typically covers tens of gigabytes of the logical address range. That is sufficient for the working set of most desktop applications, which is why HMB drives perform close to DRAM-equipped drives in everyday use even though their caches are small.
HMB compared with onboard DRAM and SATA designs
HMB sits between a full DRAM cache and no cache at all. It cannot match a dedicated DRAM chip on sustained random workloads across the whole drive, but it narrows most of the gap in typical client use at a lower cost and power draw.
SATA solid-state drives cannot use HMB because the feature is part of the NVMe command set. A DRAM-less SATA drive therefore relies entirely on internal SRAM and is usually the weakest option for random input and output.
| Design | Where mapping data lives | Random performance | Typical use |
|---|---|---|---|
| DRAM-equipped NVMe | Dedicated DRAM on the drive | Highest and most consistent | Workstations, heavy multitasking |
| DRAM-less NVMe with HMB | Host RAM cache plus controller SRAM | Good for typical client workloads | Budget laptops, gaming systems |
| DRAM-less NVMe without HMB | Controller SRAM and NAND | Noticeably lower on random reads | Systems with unsupported drivers |
| DRAM-less SATA | Controller SRAM and NAND | Lowest of the four | Low-cost upgrades of older PCs |
HMB affects the mapping cache only. It does not replace the SLC cache, which is a region of NAND written in a faster mode to absorb bursts of writes, nor does it change write amplification or wear leveling policies directly, although better mapping access can help the controller run garbage collection more efficiently.
Operating system and platform support
HMB works only when both the drive firmware and the host driver support it. Windows has supported HMB in its built-in NVMe driver since Windows 10 version 1607, and the Linux kernel NVMe driver supports it as well, with a module parameter that caps the maximum buffer size.
Platform choices also matter. Some systems limit the buffer size through firmware or driver settings, and some virtualized or embedded environments disable it. In such cases the drive falls back to its SRAM-only behavior, which can make a budget drive appear much slower than its benchmark results suggest.
- Windows: enabled by default in the inbox NVMe driver; the host decides the final size within the drive’s limits.
- Linux: enabled by default; the
max_host_mem_size_mbparameter can reduce or raise the cap. - Hypervisors and passthrough: support depends on how the device and guest memory are mapped.
- Firmware: drive updates sometimes change the requested buffer size or caching policy.
Limitations, risks and common misconceptions
The main trade-off of HMB is that it improves cost and power at the expense of worst-case consistency. Workloads that touch data scattered across the whole drive, such as large databases or sustained random writes, exceed the cached range and expose the underlying DRAM-less behavior.
Several misunderstandings appear repeatedly when people evaluate these drives. The table below pairs each common belief with the more accurate view.
| Misconception | Accurate view |
|---|---|
| HMB uses gigabytes of system RAM | It typically reserves only 16 MB to 64 MB |
| HMB drives equal DRAM drives in all tasks | They match in light use but trail under heavy random load |
| HMB stores user data in RAM | It caches mapping metadata, not file contents |
| Power loss corrupts data in the buffer | Authoritative mapping data is kept in NAND |
| Any NVMe drive uses HMB | Only drives that request it do so |
Because the buffer lives in host memory, the design depends on the integrity of system RAM and the host driver. Firmware is written so that the authoritative copy of mapping data always resides in flash, and the drive must cope with the host reclaiming the buffer during sleep transitions. Well-designed controllers rebuild the cache after resume, which can cause a brief slowdown after waking from sleep.
In simple terms
Every SSD needs a kind of index of storage locations that tells it where each piece of data is physically stored. Expensive drives keep that index in their own fast memory chip. Cheaper drives leave that chip out to save money and power.
HMB lets those cheaper drives borrow a small corner of the computer’s main memory to keep the most-used part of the index handy. It is like a librarian without a desk who is allowed to use a small shelf at the front counter: not as good as a full desk, but much faster than walking to the archive for every request. The key takeaway is that HMB makes a budget SSD feel fast in everyday use.
A practical example
A small office buys twenty budget laptops, each with a 512 GB DRAM-less NVMe SSD and 16 GB of RAM. The IT technician notices that the drives request a host memory buffer of 64 MB, which the Windows NVMe driver grants automatically. That reservation uses well under 1 percent of system memory.
Staff work with email, spreadsheets and a browser, so their active data stays within the range the buffer covers. Boot times and application launches feel similar to those of the managers’ more expensive laptops. However, when one employee runs a full-disk antivirus scan while copying a large project archive, random read performance drops noticeably, because those accesses spread across the whole drive.
The technician concludes that HMB drives are the right choice for general office work, and reserves DRAM-equipped SSDs for the two engineering workstations that compile large codebases every day.