Use this when using NVMe drives for low latency and high IOPS.
NVMe
NVMe is the storage protocol designed for flash on PCIe, with many deep queues and low overhead. NVMe drives reach hundreds of thousands of IOPS and microsecond latency, far beyond SATA or SAS.
1. NVMe is the protocol for SSDs over PCIe (and fabrics).
2. Parallel queues, low latency.
3. Tools: nvme-cli.
4. Check link speed and temperature.
5. Namespaces divide a drive.
host driver → queues → controller → namespaces
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- M.2 slot running at reduced PCIe lanes.
- No cooling, causing thermal throttling under load.
- Consumer NVMe without power-loss protection in servers.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Subtopics
Go one level deeper into this subject.
The NVMe protocol is a lean command set for non-volatile memory over PCIe or fabrics.
Subtopic PCIePCIe is the bus that connects NVMe drives directly to the CPU.
Subtopic NVMe NamespacesNVMe namespaces divide an NVMe drive into separate logical block devices, such as /dev/nvme0n1 and nvme0n2, each with its own size and format.
Subtopic NVMe QueuesNVMe queues are paired submission and completion queues, usually one pair per CPU core, so cores issue I/O in parallel without locking.
Subtopic NVMe-oFNVMe-oF (NVMe over Fabrics) extends NVMe across a network over RDMA, Fibre Channel or TCP, giving remote flash close to local NVMe latency for shared and disaggregated storage.
Subtopic NVMe TroubleshootingTroubleshoot NVMe with nvme list, nvme smart-log for wear, temperature and media errors, nvme error-log, dmesg for controller resets or timeouts, PCIe link width and speed (lspci -vv), and firmware versions.
- NVMe runs over PCIe with many deep queues.
- Link width and generation limit bandwidth.
- NVMe drives throttle when hot.
nvme list— devices and namespacesnvme smart-log /dev/nvme0— healthlspci -vv -s <bdf> | grep LnkSta— PCIe link
ReferenceHow it works1 section · depth on demand
What NVMe is
NVMe is the command protocol and driver model for flash attached over PCIe (or fabrics). It replaces AHCI's single 32-command queue with many deep queues mapped to CPU cores, cutting latency to tens of microseconds.
ReferenceImportant terms & boundaries2 sections · depth on demand
Commands
nvme list
nvme smart-log /dev/nvme0
nvme id-ns /dev/nvme0n1 -H | grep 'LBA Format'
lspci -vv -s <bdf> | grep LnkSta
In depth
NVMe is a command set and transport designed for flash, attached over PCIe instead of a SATA/SAS controller. It removes the AHCI single queue of 32 commands and replaces it with up to 64K queues of up to 64K commands, mapped per CPU core.
| Interface | Queues × depth | Typical 4K random read |
|---|---|---|
| SATA (AHCI) | 1 × 32 | ~100k IOPS |
| SAS 12G | 1 × 254 per device | ~200k IOPS |
| NVMe PCIe 4.0 ×4 | 64K × 64K | 700k–1M+ IOPS |
nvme list
nvme id-ctrl /dev/nvme0 | grep -E 'mn|fr|sn'
nvme smart-log /dev/nvme0
lspci -vv -s <slot> | grep -i lnksta # negotiated PCIe speed/width
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Physical Storage Media → NVMe. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://nvmexpress.org/specifications/ · confidence 94%