# NVMe

> The fast way for a computer to talk to an SSD, designed for flash from the start.

- Level: Intermediate
- Topics: Hardware
- URL: https://tidbit.legios.com.ar/nvme/
- In Spanish: [NVMe](https://tidbit.legios.com.ar/es/nvme/)

**NVMe**, short for NVM Express, is the protocol a computer uses to talk to modern SSDs. It defines how the CPU sends read and write requests to the drive and gets answers back. It runs over PCIe, the same high-speed connection that graphics cards use, which puts the drive almost directly next to the processor.

Before NVMe, SSDs plugged into SATA, a connection designed in the era of spinning hard disks. SATA tops out around 600 megabytes per second and handles requests through a single queue of up to 32 commands, which was fine when a disk's arm could only be in one place at a time. Flash memory has no moving parts and can work on many requests at once, so SATA became the bottleneck. NVMe, first published in 2011, allows up to 65,535 queues with up to 65,536 commands each, and drives over PCIe reach several gigabytes per second.

In practice, most NVMe drives in laptops and desktops are small sticks that slot into an M.2 connector on the motherboard. M.2 is just the shape, though: some M.2 drives still speak SATA, so it pays to check. In data centers, NVMe is the default for fast storage, and NVMe over Fabrics extends the same protocol across a network so servers can use remote flash almost as if it were local.

## An analogy

Like replacing a single toll booth with one cashier by a highway with thousands of lanes. The cars, your data, were already fast; NVMe stopped making them wait in one line.

## Keep in mind

- The protocol for talking to SSDs over PCIe; replaced SATA for fast drives.
- Built for flash: many parallel queues instead of one.
- Usually comes as an M.2 stick, but not every M.2 drive is NVMe.
- Standard in data centers; NVMe over Fabrics extends it over the network.

## Go deeper

- [NVM Express on Wikipedia](https://en.wikipedia.org/wiki/NVM_Express)
- [NVM Express (official site)](https://nvmexpress.org/)

## Related terms

- [SSD](https://tidbit.legios.com.ar/ssd/): Storage with no moving parts: where your files live when the power is off.
- [CPU](https://tidbit.legios.com.ar/cpu/): The chip that runs your programs, one instruction after another, very fast.
- [PCIe](https://tidbit.legios.com.ar/pcie/): The fast internal highway that connects graphics cards and SSDs to the CPU.
- [Hard disk drive](https://tidbit.legios.com.ar/hard-disk-drive/): Storage that keeps data on spinning magnetic platters: slower than an SSD, but cheap.
- [Bit and byte](https://tidbit.legios.com.ar/bit-and-byte/): The smallest unit of digital information, and the group of eight that computers count in.
- [Laptop](https://tidbit.legios.com.ar/laptop/): A whole computer folded into one portable case that runs on a battery.
- [Motherboard](https://tidbit.legios.com.ar/motherboard/): The main circuit board that every other part of a computer plugs into.
- [Data center](https://tidbit.legios.com.ar/data-center/): A building full of servers where the internet, the cloud and AI actually run.
