nvme-multipath-io-policy · shipping · also NVMe iopolicy

NVMe multipath I/O policy

An NVMe multipath I/O policy is the host-side rule that chooses which controller path carries the next request to a namespace reachable through several paths.

Linux v6.12 offers three policies, numa, round-robin and queue-depth, with numa as the default. Every policy follows ANA state first: an optimized path is preferred, a non-optimized path is used only when no optimized one is usable, and inaccessible paths are skipped. [2] [1]

The numa policy caches one path per NUMA node and, when that entry is empty or no longer optimized, picks the optimized path with the smallest node distance to its controller. Round-robin moves from the last path used for the current node to the next usable one. Queue-depth picks the path whose controller has the fewest requests in flight and stops scanning at an optimized path with 0 such requests. [1]

The queue-depth counter is controller-level: it rises when a request starts and falls when it ends, only while the subsystem uses that policy, and it includes requests to every namespace behind the controller. The nvme_core iopolicy module parameter is the default copied into a subsystem when it is created, and an existing subsystem keeps its own iopolicy attribute in sysfs. Writing that attribute clears the cached paths of all its controllers. [1] [4]

Relations

related
NVMe multipath, Asymmetric Namespace Access, ANA group, Multipath I/O

Advantages

  • The numa policy keeps I/O from a CPU node on the nearest controller, which limits cross-node traffic on NUMA systems. [2]
  • Round-robin uses every path of a homogeneous fabric evenly when the paths have similar latency and bandwidth. [2]

Limitations

  • Round-robin does not look at how busy a path is, so a slower path receives the same share of requests as a faster one. [2, 1]
  • Queue-depth adds an atomic increment and decrement on a shared controller counter for every request, which the other policies avoid. [1]

Citations

  1. Linux v6.12, drivers/nvme/host/multipath.c: ANA selection, controller nr_active accounting and subsystem iopolicy. (accessed 2026-10-23)
  2. Linux kernel documentation: native NVMe multipath policies. (accessed 2026-10-23)
  3. Linux v6.12, drivers/nvme/host/core.c: nvme_init_subsystem and the default iopolicy. (accessed 2026-10-23)

Further reading

  1. Hesela: NVMe multipath: ANA access states and Linux path policies (accessed 2026-10-15)
Sources & caveats
  • linux-code is the Linux v6.12 drivers/nvme/host/multipath.c source, read in the path selectors, the request start and end hooks and the subsystem iopolicy store.
  • linux612-core is the Linux v6.12 drivers/nvme/host/core.c source, read in nvme_init_subsystem where the default policy is applied.
  • linux-ana is the kernel administration guide page on NVMe multipath, read in the rendering labelled 7.3.0 on the access date, which lists the same three policies.
  • The kernel release that first added each policy was not checked.

JSON: /data/terms/nvme-multipath-io-policy.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. NVMe multipath I/O policy. Hesela. 2026-10-23. https://hesela.dev/terms/nvme-multipath-io-policy/