Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

NVMe Protocol

Direct answer

The NVMe protocol is a lean command set for non-volatile memory over PCIe or fabrics. It uses up to 64K queues with 64K commands each and few register accesses, so it scales with CPU cores and flash speed.

When to use this

Use this to understand NVMe's command and queue model.

First 30 seconds

1. NVMe uses submission/completion queue pairs with doorbells.

2. Up to 64K queues × 64K entries.

3. Scheduler none is usually best.

4. Admin vs I/O commands.

5. Features via get/set-feature.

Operational verification

application → blk-mq → NVMe SQ → controller → CQ

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Physical storage media and interfaces
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformPhysical storage media and interfaces
Scope / prerequisiteUse this to understand NVMe's command and queue model.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Checks Verify boundary
  • nvme list shows the controller and namespaces.
  • nvme id-ctrl /dev/nvme0 for model, firmware and features.
  • Benchmark with fio --iodepth=32 --numjobs=4 to see parallel performance.
Step 2 Common mistakes Narrow the fault
  • Expecting NVMe speed through a SATA/AHCI driver or adapter.
  • Ignoring queue depth — single-threaded tests understate NVMe performance.
Evidence references

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.

observation · 1
Key points
  • Up to 64K queues with 64K commands each.
  • Few register accesses per command.
  • Scales with CPU cores.
Key checks
  • nvme id-ctrl /dev/nvme0 — controller capabilities
  • nvme get-feature /dev/nvme0 -f 7 — number of queues
  • cat /sys/block/nvme0n1/queue/scheduler — I/O scheduler (none)
ReferenceHow it works1 section · depth on demand

How it works

NVMe is a command set designed for flash over PCIe. The host and controller communicate through submission and completion queue pairs in memory; the host writes commands, rings a doorbell register, and the controller posts completions. Many queues (often one per CPU core) avoid locking and give low latency.

ReferenceImportant terms & boundaries1 section · depth on demand

Key facts

ItemValue
QueuesUp to 65,535 I/O queues, each up to 65,536 commands
TransportPCIe, or fabrics (NVMe/TCP, RDMA, FC)
NamespacesLogical volumes on a controller (/dev/nvme0n1)
CommandsRead, Write, Flush, Dataset Management (TRIM)
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docPhysical storage media and interfaces current

Authoritative/upstream documentation reviewed for bounded claims in Physical Storage Media → NVMe → NVMe Protocol. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://nvmexpress.org/specifications/ · confidence 94%
Confirmation

Confirm action

Continue?