[PATCHv2 3/4] tree: add attribute numa_nodes for NVMe path object
Hannes Reinecke
hare at suse.de
Mon Apr 21 23:27:06 PDT 2025
On 4/17/25 15:59, Nilay Shroff wrote:
> Add a new attribute named "numa_nodes" under the NVMe path object. This
> attribute is used by the iopolicy "numa". The numa_nodes value is stored
> for each NVMe path and represents the NUMA node(s) associated with it.
> When the iopolicy is set to "numa", I/O traffic originating from a given
> NUMA node will be forwarded through the corresponding NVMe path.
>
> The numa_nodes attribute is useful for observing which NVMe path the
> kernel would choose for I/O forwarding based on NUMA affinity. To support
> this, export the attribute in libnvme.map so it can be accessed via
> nvme-cli.
>
> Signed-off-by: Nilay Shroff <nilay at linux.ibm.com>
> ---
> src/libnvme.map | 1 +
> src/nvme/private.h | 1 +
> src/nvme/tree.c | 10 ++++++++++
> src/nvme/tree.h | 8 ++++++++
> 4 files changed, 20 insertions(+)
>
Reviewed-by: Hannes Reinecke <hare at suse.de>
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare at suse.de +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich
More information about the Linux-nvme
mailing list