Pcornel
Storage · Physical Storage Media › NVMe

NVMe Queues

Cheat sheet · https://pcornel.dk/topic.php?topic=3897

Back to the Topic

Answer

NVMe queues are paired submission and completion queues, usually one pair per CPU core, so cores issue I/O in parallel without locking. Deep queues are why NVMe sustains high IOPS.

Remember

  • One submission/completion pair per core is typical.
  • Deep queues enable high IOPS.
  • Interrupt affinity matters.

First checks

  • nvme get-feature /dev/nvme0 -f 7 -H — queue count
  • ls /sys/block/nvme0n1/mq/ — blk-mq hardware queues
  • cat /sys/block/nvme0n1/queue/nr_requests — queue depth

Verify in this order

CPU core → own queue pair → device

Where it usually breaks

First mismatch in media/firmware → device controller → interface/link → host driver → block device → upper storage layer; preserve identity/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3897

Confirmation

Confirm action

Continue?