[PATCH v9 00/29] Native SCSI Multipath support
Laurence Oberman
loberman at redhat.com
Sat Nov 14 11:59:19 PST 2026
On Sat, 2026-11-14 at 11:29 -0500, Laurence Oberman wrote:
> On Sat, 2026-11-14 at 14:03 +0100, Xose Vazquez Perez wrote:
> > On 11/10/26 10:05 AM, John Garry wrote:
> >
> > > On 11/9/26 20:19, Laurence Oberman wrote:
> > > > 3. Smaller points
> > > >
> > > > - numa with equal NUMA distance uses one path per LUN, so with
> > > > two AO
> > > > paths through two HBAs, half the optimized bandwidth is idle
> > > > (sdl:2
> > > > above under numa). That matches NVMe, but users coming from
> > > > dm-multipath service-time will notice. Would round-robin or
> > > > queue-depth be a better default for SCSI?
> > >
> > > Maybe, but round-robin may not be always ideal considering only a
> > > bio mode of operation is supported and no merging like dm-mpath
> > > RQ
> > > mode.
> >
> > iopolicy can easily be customized per array/device via udev rules.
> > Just like it's done for NVMe:
> > https://github.com/linux-nvme/nvme-cli/blob/master/nvmf-autoconnect/udev-rules/71-nvmf-hpe.rules.in
> >
> > Additionally, "service-time" and "latency" I/O policies are
> > currently
> > under
> > development:
> > https://lore.kernel.org/linux-nvme/20261026111019.3724465-1-kanie@linux.alibaba.com/T/
> > https://lore.kernel.org/linux-nvme/20260815173502.1185929-1-nilay@linux.ibm.com/T/
> >
> > > > - There is no userspace tool yet to show heads, paths and ALUA
> > > > state
> > > > (the equivalent of multipath -ll or nvme list-subsys). I
> > > > used
> > > > a
> > > > small sysfs script for this testing. Ben, is native SCSI
> > > > multipath
> > > > support in multipath-tools planned?
> > >
> > > Well, the whole point is that we don't need userspace tools.
> > > However, I appreciate that there is no general SCSI tooling which
> > > could help here. I know that Himanshu M did work on a SCSI
> > > version
> > > of
> > > nvme-cli tool previously. Martin may know the status of that.
> >
> > Agreed that userspace tools are not strictly needed for
> > configuration, but
> > observability is key.
> > A standard utility to visualize the device topology, path health
> > and
> > ALUA
> > states at a glance, similar to what multipath-tools provides, would
> > save a
> > lot of friction for sysadmins migrating away from dm-multipath.
> > Relying solely on ad-hoc scripts or manual sysfs parsing can become
> > quite
> > tedious in production environments.
> Hello Xose
>
> I have a working rust based userspace tool for this. It started as a
> path and IOPS monitor and works well. I am cleaning it up this
> weekend
> and will share a repo next week.
>
> The email client wraps the lines, looks better on the wider screen
>
>
> === NVMe Per-Path Monitor ===
>
> nvme-subsys0 NQN: lobe
> iopolicy: numa
>
> Sample interval: 1s | latency: average per completed I/O in this
> interval
>
> PATH CTRL ANA STATE TRANSPORT R
> IOPS W IOPS R AVG LAT W AVG LAT READ BW WRITE BW
> ─────────────────────────────────────────────────────────────────────
> ──
>
> ────────────────────────────────────────────────────────────
> nvme0c1n1 nvme1 optimized rdma:192.168.2.254:4420
> 59.5K 59.6K 17.82ms 15.76ms 232.3 MB/s 232.8 MB/s
> nvme0c2n1 nvme2 optimized rdma:192.168.1.254:4420
> 0 0 - - 0 B/s 0 B/s
>
> Change to round-robin
>
> === NVMe Per-Path Monitor ===
>
> nvme-subsys0 NQN: lobe
> iopolicy: round-robin
>
> Sample interval: 1s | latency: average per completed I/O in this
> interval
>
> PATH CTRL ANA STATE TRANSPORT R
> IOPS W IOPS R AVG LAT W AVG LAT READ BW WRITE BW
> ─────────────────────────────────────────────────────────────────────
> ──
>
> ────────────────────────────────────────────────────────────
> nvme0c1n1 nvme1 optimized rdma:192.168.2.254:4420
> 15.2K 15.2K 13.52ms 11.04ms 118.8 MB/s 118.6 MB/s
> nvme0c2n1 nvme2 optimized rdma:192.168.1.254:4420
> 14.9K 15.5K 54.22ms 63.23ms 116.6 MB/s 121.1 MB/s
>
> Thanks
> Laurence
See the README.md, needs cargo/rust to build it.
git clone https://github.com/loberman/nvme-scsi-path-iops.git
cd nvme-scsi-path-iops
cargo build --release
Binary will be in target/release/nvme-path-iops
This is working well for me with native nvme multipath and native scsi
multipath.
Let me know if you like it.
https://github.com/loberman/nvme-scsi-path-iops.git
More information about the Linux-nvme
mailing list