Skip to content
BENIBIX Learn

Non-Volatile Memory Express (NVMe)

Infrastructure🔧 HardwareStorage Drives

Also known as NVMe, NVMe SSD, NVM Express, M.2 NVMe

How an SSD talks to a computer. It runs on fast PCI Express lanes.

Think of it like

Think of it like a road with many lanes. Lots of cars can drive side by side.

Example

Emma's PC has a Samsung 990 PRO, an NVMe SSD on four PCIe 4.0 lanes. It is rated to read 7,450 megabytes a second, where a SATA link stops near 600.

Why it matters

The link sets the top speed of a drive. A fast SSD on a SATA link runs at a small part of what NVMe allows.

Definition

NVMe is the way a computer talks to an SSD over PCI Express, the fast slots on the motherboard. The older SATA link was made for hard drives and has one queue of requests. NVMe allows up to 65,535 queues, and each one can hold up to 65,535 requests. That suits flash chips, which can work on many requests at once. Many NVMe drives are small M.2 sticks that plug straight into the motherboard.

Example code

console
$ lsblk -d -o NAME,SIZE,ROTA
NAME      SIZE ROTA
sda       7.3T    1
nvme0n1   1.8T    0
Linux names an NVMe drive nvme0n1. A 1 under ROTA marks the spinning hard drive.
The NVMe drive on the right uses four PCIe lanes. That wide link is why it beats the SATA SSD beside it.

Common mistake

Thinking every M.2 drive is NVMe. Some M.2 drives use SATA inside and are no faster than a normal SATA SSD.

Key takeaways

  1. 1
    Made for flash. Not built around spinning discs.
  2. 2
    Many queues. Up to 65,535, each with 65,535 requests.
  3. 3
    Over PCIe. Straight onto the fast lanes of the board.

Compare

Learn it properly