* [PATCH] nvme: document the per-path multipath sysfs attributes
@ 2026-12-04 6:25 Guixin Liu
2026-12-04 8:20 ` Christoph Hellwig
2026-12-04 9:50 ` Nilay Shroff
0 siblings, 2 replies; 3+ messages in thread
From: Guixin Liu @ 2026-12-04 6:25 UTC (permalink / raw)
To: Keith Busch, Jens Axboe, Christoph Hellwig, Sagi Grimberg,
Nilay Shroff, Daniel Wagner, Hannes Reinecke
Cc: linux-nvme
nvme-multipath.rst documents how to set the iopolicy but does not
mention the per-path sysfs attributes that observe the result of the
path selection: numa_nodes for the numa policy, queue_depth for the
queue-depth policy, and path_state, which is available regardless of
the configured policy. Document all three, following the same style
used for the per-path attributes of the queue-depth policy in
Documentation/ABI/stable/sysfs-nvme.
Signed-off-by: Guixin Liu <kanie@linux.alibaba.com>
---
Documentation/admin-guide/nvme-multipath.rst | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/Documentation/admin-guide/nvme-multipath.rst b/Documentation/admin-guide/nvme-multipath.rst
index 058894187cbb..113666226680 100644
--- a/Documentation/admin-guide/nvme-multipath.rst
+++ b/Documentation/admin-guide/nvme-multipath.rst
@@ -56,6 +56,13 @@ The list of policies supported by the kernel can be read from the read-only
Discovery subsystems have no I/O paths and report "none" for both attributes;
writing to their "iopolicy" attribute is not supported.
+The state of a path can be monitored regardless of the configured policy
+through the read-only "path_state" attribute of the path device
+(/sys/block/nvmeXcYnZ/path_state): "enabled" if the path is usable for I/O,
+or "ctrl-down", "ana-pending" or "ns-not-ready" if the path is disabled
+because its controller is not live, an ANA state change is pending, or the
+namespace is not ready.
+
NUMA
----
@@ -64,6 +71,10 @@ The NUMA policy selects the path closest to the NUMA node of the current CPU for
I/O distribution. This policy maintains the nearest paths to each NUMA node
based on network interface connections.
+Each path shows the NUMA nodes for which it is the currently selected path in
+the read-only "numa_nodes" attribute (/sys/block/nvmeXcYnZ/numa_nodes), e.g.
+"0-1,3". It returns empty while the subsystem's iopolicy is not "numa".
+
When to use the NUMA policy:
1. Multi-core Systems: Optimizes memory access in multi-core and
multi-processor systems, especially under NUMA architecture.
@@ -91,6 +102,10 @@ Queue-Depth
The queue-depth policy manages I/O requests based on the current queue depth
of each path, selecting the path with the least number of in-flight I/Os.
+Each path shows the number of I/Os currently in flight on its controller in
+the read-only "queue_depth" attribute (/sys/block/nvmeXcYnZ/queue_depth). It
+returns empty while the subsystem's iopolicy is not "queue-depth".
+
When to use the queue-depth policy:
1. High load with small I/Os: Effectively balances load across paths when
the load is high, and I/O operations consist of small, relatively
--
2.43.7
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] nvme: document the per-path multipath sysfs attributes
2026-12-04 6:25 [PATCH] nvme: document the per-path multipath sysfs attributes Guixin Liu
@ 2026-12-04 8:20 ` Christoph Hellwig
2026-12-04 9:50 ` Nilay Shroff
1 sibling, 0 replies; 3+ messages in thread
From: Christoph Hellwig @ 2026-12-04 8:20 UTC (permalink / raw)
To: Guixin Liu
Cc: Keith Busch, Jens Axboe, Sagi Grimberg, Nilay Shroff,
Daniel Wagner, Hannes Reinecke, linux-nvme
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] nvme: document the per-path multipath sysfs attributes
2026-12-04 6:25 [PATCH] nvme: document the per-path multipath sysfs attributes Guixin Liu
2026-12-04 8:20 ` Christoph Hellwig
@ 2026-12-04 9:50 ` Nilay Shroff
1 sibling, 0 replies; 3+ messages in thread
From: Nilay Shroff @ 2026-12-04 9:50 UTC (permalink / raw)
To: Guixin Liu, Keith Busch, Jens Axboe, Christoph Hellwig,
Sagi Grimberg, Daniel Wagner, Hannes Reinecke
Cc: linux-nvme
On 12/4/26 11:55 AM, Guixin Liu wrote:
> nvme-multipath.rst documents how to set the iopolicy but does not
> mention the per-path sysfs attributes that observe the result of the
> path selection: numa_nodes for the numa policy, queue_depth for the
> queue-depth policy, and path_state, which is available regardless of
> the configured policy. Document all three, following the same style
> used for the per-path attributes of the queue-depth policy in
> Documentation/ABI/stable/sysfs-nvme.
>
> Signed-off-by: Guixin Liu<kanie@linux.alibaba.com>
Looks good to me:
Reviewed-by: Nilay Shroff <nilay@linux.ibm.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-12-04 9:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 6:25 [PATCH] nvme: document the per-path multipath sysfs attributes Guixin Liu
2026-12-04 8:20 ` Christoph Hellwig
2026-12-04 9:50 ` Nilay Shroff
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox