What is NVMe?
An interface standard for fast access to SSDs connected over PCI Express. It processes many commands in parallel and has lower latency than SATA, which was designed for HDDs.
Japanese name: NVMe
An interface standard for fast access to SSDs connected over PCI Express. It processes many commands in parallel and has lower latency than SATA, which was designed for HDDs.
Japanese name: NVMe
SATA SSDs use AHCI, a host interface designed for hard disks: one command queue holding up to 32 commands, behind a link that tops out around 600 MB/s. Flash memory can service many requests in parallel, so this became the bottleneck. NVMe (NVM Express) is a protocol designed for non-volatile memory attached directly to PCI Express. It supports up to 64K I/O queues, each up to 64K commands deep, uses a compact command set, and lets each CPU core own its own queues, cutting software overhead and lock contention.
NVMe queues are rings in host memory. To issue a read or write, the driver places a 64-byte command in a submission queue and writes the new tail position to a doorbell register on the device. The controller fetches commands by DMA, moves the data directly to or from host memory, and writes a 16-byte entry to the paired completion queue, typically signaling the host with an MSI-X interrupt. The host then updates the completion queue's head doorbell. Host and device advance independently, so many transfers are in flight at once.
Because NVMe rides on PCIe, the link generation and lane count set the upper limit of its bandwidth: about 7 GB/s for PCIe 4.0 x4 drives and over 10 GB/s with PCIe 5.0 x4. Protocol latency is a few microseconds, small compared with flash read times of tens of microseconds. NVMe drives come as compact M.2 cards, 2.5-inch U.2 drives and add-in cards. Note that M.2 is only a connector: an M.2 slot may carry SATA or PCIe, so an M.2 SSD is not necessarily NVMe. NVMe over Fabrics extends the protocol across networks.
Besides reads and writes, NVMe defines administrative commands for creating queues, identifying the controller, managing namespaces and updating firmware. The Deallocate operation, part of the Dataset Management command, is the NVMe equivalent of ATA TRIM: it tells the SSD which logical blocks no longer hold useful data, so garbage collection can erase them without copying. This reduces write amplification, which improves sustained write performance and extends flash endurance.
Answer: B. The CPU only writes addresses and lengths into descriptors and notifies the device, which reads them and carries out the transfers itself
A descriptor ring is a table in main memory, used in a circular way, where each entry says which address to transfer and how many bytes. The CPU fills free descriptors and tells the device once, through a register, how far it has written. The device reads the descriptors by DMA, transfers the data and either marks finished descriptors as complete or writes completions to a separate completion ring (such as an NVMe completion queue). CPU and device can advance many transfers without waiting for each other.
NVMe stands for Non-Volatile Memory Express, also written NVM Express. It is a host interface and command protocol for accessing SSDs and other non-volatile memory over PCI Express.
A SATA SSD uses the AHCI protocol with a single 32-command queue and a link limited to about 600 MB/s. An NVMe SSD connects over PCIe with up to about 65,000 I/O queues, giving several to more than ten gigabytes per second and lower software latency.
Yes. NVMe provides the same function through the Deallocate attribute of the Dataset Management command, which operating systems issue when files are deleted.
NVMe appears in 3 practice questions across 2 topics, including SRAM and flash memory, I/O Interfaces & Buses.
As an Amazon Associate I earn from qualifying purchases.
This page was drafted with AI and fact-checked by a separate AI review before publication. Our Editorial policy explains how we write and check content. If you spot an error, please tell us on our Contact page.