RDMA miniconf: Persistent device naming
Hi All,
I would like to propose the discussion about ability to add persistent device naming to RDMA subsystem.
Right now, the devices receive their names by simple addition of new free index to the name (mlx5_0, mlx5_1 ...). Such naming scheme depends on the PCI probing and in case of device reset can rename device.
Such situation doesn't help to provide constant udev rules, reliable ibverbs hotplug and advanced "set command" of RDMAtool which at some point of time will require reinit of ib_device.
In this discussion, I want to present netdev implementation of such feature, talk about implications on libibverbs and suggest possible device name convention.
Thanks
A message that is not in the archive (sent off-list or not yet received): 20170731113633.GU13672-U/[email protected]
Quoted 13 lines · Leon Romanovsky
Hi All,
I would like to propose the discussion about ability to add persistent device naming to RDMA subsystem.
Right now, the devices receive their names by simple addition of new free index to the name (
mlx5_0,mlx5_1...). Such naming scheme depends on the PCI probing and in case of device reset can rename device.Such situation doesn't help to provide constant udev rules, reliable ibverbs hotplug and advanced "set command" of RDMAtool which at some point of time will require reinit of
ib_device.
Quoted 6 lines
In this discussion, I want to present netdev implementation of such feature, talk about implications on libibverbs and suggest possible device name convention.
Thanks
Sounds like a good topic to me.
-Denny
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 7 lines · Leon Romanovsky
I would like to propose the discussion about ability to add persistent device naming to RDMA subsystem.
Right now, the devices receive their names by simple addition of new free index to the name (
mlx5_0,mlx5_1...). Such naming scheme depends on the PCI probing and in case of device reset can rename device.
Quoted 7 lines
Such situation doesn't help to provide constant udev rules, reliable ibverbs hotplug and advanced "set command" of RDMAtool which at some point of time will require reinit of
ib_device.In this discussion, I want to present netdev implementation of such feature, talk about implications on libibverbs and suggest possible device name convention.
Hello Leon,
Does this mean that there is user space software that depends on these names? Shouldn't all user space software be independent of the device names assigned by the kernel? For e.g. SCSI disks this was solved a long time ago by making /dev/disk/by-id/${name derived from persistent ID} soft links available. An example:
$ ls -l /dev/disk/by-id/scsi-35001b44c698c2947 lrwxrwxrwx 1 root root 9 Jul 31 07:53 /dev/disk/by-id/scsi-35001b44c698c2947 -> ../../sda
Bart.--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 12 lines · Bart Van Assche
Quoted 11 lines · Leon Romanovsky
I would like to propose the discussion about ability to add persistent device naming to RDMA subsystem.
Right now, the devices receive their names by simple addition of new free index to the name (
mlx5_0,mlx5_1...). Such naming scheme depends on the PCI probing and in case of device reset can rename device.Such situation doesn't help to provide constant udev rules, reliable ibverbs hotplug and advanced "set command" of RDMAtool which at some point of time will require reinit of
ib_device.
Quoted 7 lines
Quoted 3 lines
In this discussion, I want to present netdev implementation of such feature, talk about implications on libibverbs and suggest possible device name convention.
Hello Leon,
Does this mean that there is user space software that depends on these names?
Yes, during initialization phase libibverbs reads sysfs entry [1] and the ibverbs hotplug relies on this information for every ibv_get_device_list call.
In the RDMA netlink patches, I added notion of device index and the RDMAtool operates on it, instead of the device name.
Quoted 4 lines
Shouldn't all user space software be independent of the device names assigned by the kernel? For e.g. SCSI disks this was solved a long time ago by making
/dev/disk/by-id/${namederived from persistent ID} soft links available. An example:
Yes, it should, and I don't have enough knowledge to say why RDMA is "special" in this specific case.
Quoted 4 lines
$ ls -l /dev/disk/by-id/scsi-35001b44c698c2947 lrwxrwxrwx 1 root root 9 Jul 31 07:53 /dev/disk/by-id/scsi-35001b44c698c2947 -> ../../sda
[1] https://github.com/linux-rdma/rdma-core/blob/master/libibverbs/init.c#L138
Quoted 1 line
Bart.
Quoted 18 lines · Bart Van Assche
Quoted 7 lines · Leon Romanovsky
I would like to propose the discussion about ability to add persistent device naming to RDMA subsystem.
Right now, the devices receive their names by simple addition of new free index to the name (
mlx5_0,mlx5_1...). Such naming scheme depends on the PCI probing and in case of device reset can rename device.Quoted 7 lines
Such situation doesn't help to provide constant udev rules, reliable ibverbs hotplug and advanced "set command" of RDMAtool which at some point of time will require reinit of
ib_device.In this discussion, I want to present netdev implementation of such feature, talk about implications on libibverbs and suggest possible device name convention.
Hello Leon,
Quoted 8 lines
Does this mean that there is user space software that depends on these names? Shouldn't all user space software be independent of the device names assigned by the kernel? For e.g. SCSI disks this was solved a long time ago by making
/dev/disk/by-id/${namederived from persistent ID} soft links available. An example:$ ls -l /dev/disk/by-id/scsi-35001b44c698c2947 lrwxrwxrwx 1 root root 9 Jul 31 07:53 /dev/disk/by-id/scsi-35001b44c698c2947 -> ../../sda
The problem with RDMA is it relies heavily on sysfs, and the sysfs path name is what is being proposed to be changable.
The best fix is going to be to consistently use the new stable index to access all information, which means effectively obsoleting sysfs.
Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 20170731164705.GB28204-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org
Quoted 25 lines · Jason Gunthorpe
Quoted 24 lines · Bart Van Assche
Quoted 7 lines · Leon Romanovsky
I would like to propose the discussion about ability to add persistent device naming to RDMA subsystem.
Right now, the devices receive their names by simple addition of new free index to the name (
mlx5_0,mlx5_1...). Such naming scheme depends on the PCI probing and in case of device reset can rename device.Quoted 7 lines
Such situation doesn't help to provide constant udev rules, reliable ibverbs hotplug and advanced "set command" of RDMAtool which at some point of time will require reinit of
ib_device.In this discussion, I want to present netdev implementation of such feature, talk about implications on libibverbs and suggest possible device name convention.
Hello Leon,
Does this mean that there is user space software that depends on these names? Shouldn't all user space software be independent of the device names assigned by the kernel? For e.g. SCSI disks this was solved a long time ago by making
/dev/disk/by-id/${namederived from persistent ID} soft links available. An example:
Quoted 9 lines
Quoted 2 lines
$ ls -l /dev/disk/by-id/scsi-35001b44c698c2947 lrwxrwxrwx 1 root root 9 Jul 31 07:53 /dev/disk/by-id/scsi-35001b44c698c2947 -> ../../sdaThe problem with RDMA is it relies heavily on sysfs, and the sysfs path name is what is being proposed to be changable.
The best fix is going to be to consistently use the new stable index to access all information, which means effectively obsoleting sysfs.
I want to take RDMA one step more,
https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
I called the topic name "persistent", but the right name is "predictable".
Thanks
Quoted 5 lines
Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 20170731165453.GD13672-U/[email protected]
Quoted 4 lines · Leon Romanovsky
I want to take RDMA one step more,
https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/I called the topic name "persistent", but the right name is "predictable".
Once renaming is possible then having udev rework the names isn't a big step anymore.
Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 20170731170018.GA19061-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org
Quoted 8 lines · Jason Gunthorpe
Quoted 4 lines · Leon Romanovsky
I want to take RDMA one step more,
https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/I called the topic name "persistent", but the right name is "predictable".
Once renaming is possible then having udev rework the names isn't a big step anymore.
You need predictable starting point to perform automatic rename, currently neither index, neither names are not.
Quoted 2 lines
Jason
A message that is not in the archive (sent off-list or not yet received): 20170731170804.GE13672-U/[email protected]
Quoted 5 lines · Leon Romanovsky
Quoted 4 lines · Jason Gunthorpe
Quoted 3 lines · Leon Romanovsky
I want to take RDMA one step more,
https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
I called the topic name "persistent", but the right name is "predictable".
Once renaming is possible then having udev rework the names isn't a big step anymore.
You need predictable starting point to perform automatic rename, currently neither index, neither names are not.
udev has all the information needed to produce the naming pattern in the link above.
You'd end up with names like rdmap3s1f1 for instance.
Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 20170731172436.GA19375-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org
Quoted 11 lines · Jason Gunthorpe
Quoted 10 lines · Leon Romanovsky
Quoted 8 lines · Jason Gunthorpe
Quoted 4 lines · Leon Romanovsky
I want to take RDMA one step more,
https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/I called the topic name "persistent", but the right name is "predictable".
Once renaming is possible then having udev rework the names isn't a big step anymore.
Quoted 7 lines
Quoted 2 lines
You need predictable starting point to perform automatic rename, currently neither index, neither names are not.
udev has all the information needed to produce the naming pattern in the link above.
You'd end up with names like rdmap3s1f1 for instance.
I'm not so convinced that udev scripts digging into various outputs (lspci, e.t.c.) are better solution than kernel handles everything exactly as netdev.
Quoted 2 lines
Jason
A message that is not in the archive (sent off-list or not yet received): 20170731173813.GH13672-U/[email protected]
Quoted 15 lines · Leon Romanovsky
Quoted 14 lines · Jason Gunthorpe
Quoted 12 lines · Leon Romanovsky
Quoted 8 lines · Jason Gunthorpe
Quoted 4 lines · Leon Romanovsky
I want to take RDMA one step more,
https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/I called the topic name "persistent", but the right name is "predictable".
Once renaming is possible then having udev rework the names isn't a big step anymore.
You need predictable starting point to perform automatic rename, currently neither index, neither names are not.
Quoted 8 lines
Quoted 4 lines
udev has all the information needed to produce the naming pattern in the link above.
You'd end up with names like rdmap3s1f1 for instance.
I'm not so convinced that udev scripts digging into various outputs (lspci,
e.t.c.) are better solution than kernel handles everything exactly as netdev.
I'm confused. You linked to PredictableNetworkInterfaceNames, which is entirely implemented by udev.
The only kernel support for netdev is the ability to rename netdevs, everything else is done in userspace, by udev on modern systems.
The sooner we get the same kernel API for RDMA the better, I'd run it over rdma netlink I think.
Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 20170731174312.GA20133-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org
Quoted 19 lines · Jason Gunthorpe
Quoted 18 lines · Leon Romanovsky
Quoted 17 lines · Jason Gunthorpe
Quoted 5 lines · Leon Romanovsky
Quoted 4 lines · Jason Gunthorpe
Quoted 3 lines · Leon Romanovsky
I want to take RDMA one step more,
https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/Quoted 7 lines
Quoted 4 lines
Quoted 1 line
I called the topic name "persistent", but the right name is "predictable".
Once renaming is possible then having udev rework the names isn't a big step anymore.
You need predictable starting point to perform automatic rename, currently neither index, neither names are not.
udev has all the information needed to produce the naming pattern in the link above.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
You'd end up with names like rdmap3s1f1 for instance.
I'm not so convinced that udev scripts digging into various outputs (lspci,
e.t.c.) are better solution than kernel handles everything exactly as netdev.I'm confused. You linked to PredictableNetworkInterfaceNames, which is entirely implemented by udev.
I linked to that article to save copy/paste of advantages of such scheme.
Quoted 3 lines
The only kernel support for netdev is the ability to rename netdevs, everything else is done in userspace, by udev on modern systems.
I planned to take a deep look on the gaps prior to LPC, but in meanwhile, you are right and it is done in udev since 197.
Quoted 3 lines
The sooner we get the same kernel API for RDMA the better, I'd run it over rdma netlink I think.
Nice, I found who will present it :) Can you prepare short topic about it?
Quoted 2 lines
Jason