Search

A technology, a device or an article

HMB: whose RAM does a DRAM-less SSD use?

Host software allocates RAM to an NVMe controller. Buffer ownership and mapping locality explain the design beyond the DRAM-less label.

A blue outlined area linked to a larger field of yellow paper cells
Original ITNWS AI-assisted conceptual illustration. Not a product photograph or measured evidence.ITNWS · Original ITNWS AI-assisted editorial illustration

The memory is in the computer. The SSD controller is allowed to use it.

That arrangement is called Host Memory Buffer, or HMB, in NVMe. It helps explain how a DRAM-less SSD can obtain a volatile working area without placing a separate DRAM package on the drive. The interesting engineering choice is the interface between two owners of resources: host software allocates memory, and the storage controller uses the region under the protocol’s rules.

Start there, rather than with the missing chip. The word DRAM-less tells us something about the drive’s hardware composition. HMB tells us about a capability negotiated with the host. They are related product ideas, but they are not synonyms and neither is a complete performance specification.

The NVMe Base Specification, revision 2.0d, defines the HMB feature. It allows host memory to be allocated for exclusive controller use. The host must respect that ownership while the feature is enabled. This is a protocol document from January 2024, checked on October 22, 2026; we do not present it as a new October announcement.

A loan with an address

An application normally asks the operating system for memory without assigning that region directly to an SSD. HMB is part of the storage-driver and controller relationship. The driver arranges suitable memory and communicates descriptors the device can use. The controller’s view is therefore a defined allocation, rather than permission to browse arbitrary application memory.

NVMe expresses the allocation through protocol fields and a descriptor list. Enabling the feature is an explicit operation. The specification also defines disabling it and conditions for returning previously allocated memory. These details matter because resource lifetime is part of correctness: the host cannot casually reuse pages while the controller still treats them as its buffer.

The diagram gives a conceptual view. Its region sizes are not to scale, and it is not a drawing of a particular controller. The blue area belongs physically to host RAM but is reserved for the controller’s permitted use while the allocation is active.

Conceptual HMB ownership diagram: allocated host RAM is available to the controller during its allocation lifetime. Not to scale or a particular SSD design.
Conceptual HMB ownership diagram: allocated host RAM is available to the controller during its allocation lifetime. Not to scale or a particular SSD design. — ITNWS · Original ITNWS chart; underlying data attributed in caption

The distinction between physical location and permission explains much of the feature. Host memory has not become NAND. It has not moved onto the SSD’s circuit board. A driver has made a region available across the system’s I/O arrangement, with defined ownership and lifetime. The drive still needs persistent media for persistent data.

One useful controller task is keeping frequently needed address-translation information close at hand. Logical block addresses received from the host need to be associated with the drive’s internal storage organisation. The controller’s working information can occupy memory, and caching useful portions can reduce the work needed to find a location. The precise use of HMB remains an implementation matter; the feature name alone does not disclose a vendor’s entire cache policy.

This creates a workload question. If requests repeatedly touch a relatively small set of addresses, a limited cache of translation information may cover much of the active working set. A broader random pattern can need information spread over many more locations. The total capacity printed on the drive is therefore not the only quantity relevant to a working-memory cache.

Consider a deliberately simplified mapping example. Suppose every 4 KiB of addressable user data has an independent 4-byte mapping entry. Describing 1 TiB at that granularity would take 1 GiB: 2^40 ÷ 2^12 × 4 = 2^30 bytes. This is a teaching construction, not a claim that every SSD uses four-byte entries, one-level page mapping or a full in-memory table.

Now suppose a hypothetical cache holds only 64 MiB of those entries. It cannot hold that entire constructed table. It can still hold a useful subset. Whether the subset helps depends on which entries requests need and how the implementation manages them. The arithmetic explains why “some memory” can be useful without being large enough to contain a complete naive map.

Other designs can use another granularity, hierarchy, compression or mapping scheme. An outside observer should not reverse-engineer a vendor’s metadata solely by dividing advertised capacity by an assumed HMB size. The example isolates one relationship: working-set coverage changes with the organisation and size of the metadata being cached.

The host is allowed to have limits

The Linux NVMe PCI driver source, examined on October 22, contains a maximum-host-memory parameter with a default of 128 MiB per controller in the inspected version. That is a software limit in that source version, not a statement that every Linux system reserves 128 MiB for every NVMe SSD.

A controller can advertise requirements and preferences; the driver must decide what it can allocate within its own limits. Support, successful allocation and the enabled state all matter. A marketing claim that a drive supports HMB is therefore different from an observation that the feature is active in a particular machine with a particular allocation.

Memory is also a shared system resource. Reserving a region for the controller reduces the memory available for other uses by that amount, though the whole system’s performance effect depends on its workload. A small allocation on a generously provisioned computer may be unremarkable. The same allocation cannot simply be called free on a constrained system whose applications are already competing for RAM.

There is no need to exaggerate the cost to make the trade-off visible. A hypothetical 64 MiB allocation is 0.390625% of 16 GiB. That numerical share is small, but the fraction alone cannot establish latency or throughput. It tells us the amount reserved relative to one stated host-memory total. A benchmark would need to observe the intended workload and the rest of the system.

The path to host memory also differs from a local memory interface inside the controller’s own hardware. Access involves the system’s I/O relationship and appropriate DMA mappings. HMB can be valuable without being physically identical to dedicated on-drive DRAM. Calling it “the same DRAM, just elsewhere” removes the location and access costs that make it a design choice in the first place.

Those differences are particularly relevant when discussing adapters or alternative operating environments. A path that exposes an NVMe SSD as another kind of storage device may not provide every feature the native NVMe driver can use. It would be unsafe to promise HMB operation through an arbitrary bridge on the strength of the drive’s support alone. The active software and connection path must be identified.

The price comparison still needs the SSD

Avoiding an on-drive DRAM package changes a bill of materials. It also changes the controller design and the resources used to implement its working state. The final saving depends on the actual product, component prices, controller and manufacturing decisions. We do not possess a vendor cost ledger that would turn the missing package into a universal discount per terabyte.

A DRAM-less design can be appropriate for a product’s intended workload. It can also behave differently when the workload exceeds its effective caches or creates a more demanding access pattern. The correct comparison is between complete drives under defined conditions. A label cannot establish that every product using one design approach is faster or slower than every product using another.

Sequential headline speed is particularly incomplete for this question. A large streaming transfer can exercise the device differently from repeated small random reads across a broad address space. Cache state and request locality affect what information the controller needs. An evaluation of HMB should therefore say what the requests were and whether the feature was actually enabled, rather than attributing every result to the drive’s label.

The feature also does not provide power-loss protection. Host RAM is volatile; allocating some of it to the controller does not make acknowledged writes automatically persistent. Durability depends on the relevant write commands and the complete device implementation. Our separate FTL article addresses that contract. Here it is enough to keep the borrowed working area from being mistaken for protected persistent storage.

Nothing in this explanation requires changing a reader’s driver parameters. The source code and specification describe the mechanism; no ITNWS benchmark or configuration experiment was performed for this article. A measured comparison would require a controlled system and a workload selected to answer the actual performance question.

Several different caches are often compressed into the word memory. The operating system’s page cache holds file data under host software control. An SSD’s pseudo-SLC writing area uses part of its flash under an implementation-specific policy. HMB is a host-memory allocation made available to the controller. They occupy different places and serve different mechanisms. A result involving one should not be attributed automatically to another.

This distinction helps explain why a repeated file read is a poor standalone test of the feature. The operating system may satisfy the request from its own cache without generating the same storage access as the initial read. Faster repetition then says little about the SSD controller’s translation cache. A meaningful experiment needs to establish which requests reached the device and what state was preserved between runs.

Likewise, a very large write can expose flash-programming behaviour and internal housekeeping without isolating the effect of HMB. The allocation might remain useful for metadata while another bottleneck determines throughput. A complete drive can contain several limiting resources at once. Finding a slowdown does not identify the particular memory whose absence caused it.

These examples do not make comparison impossible. They make the experimental question concrete: compare the same identified drive, feature state, host environment and request pattern, then observe the outcome that matters. The protocol explains what resources can be supplied. Only an appropriate measurement can establish the benefit of that supply for the selected workload.

The units matter too. MiB and GiB denote binary capacities; MB and GB denote decimal ones. Our teaching map’s 64 MiB contains 67,108,864 bytes. At four bytes per entry that is 16,777,216 entries. If each describes 4 KiB of data, the set covers 64 GiB of address space, or 6.25% of 1 TiB.

That is coverage in the selected simplified table, not a promised cache-hit percentage. Concentrated requests may benefit substantially; another distribution changes the outcome. A real implementation can use different entries, levels and overhead. Keeping the teaching numbers while silently replacing the assumed organisation with a real controller would invalidate the inference.

An experiment therefore needs more than a statement that the drive supports HMB. Distinguish controller capability, the host’s permitted limit and the resource actually allocated. The allocation may differ from the maximum. Feature support and the negotiated outcome are separate observations.

Changing operating environments does not automatically preserve the previous allocation. The driver and available resources become experimental conditions. This does not rank operating systems; it identifies the controller resource available during a particular measurement and explains the configuration to which that result belongs.

The useful mental picture is an allocation with a lifetime. A portion of host RAM becomes available for a storage controller’s permitted work, then must be released according to the interface. The cheaper-looking SSD has not discovered memory that costs nothing. It has arranged for some working memory to live on the other side of a carefully managed agreement.

Sources & documentation

  1. Nvme Base ↗
  2. Linux Nvme ↗