rdma-core in Dabian
Hi Benjamin,
It looks like, we fixed all outstanding reviews comments for inclusion of rdma-core into Debian.
How can we move forward and see rdma-core part of Debian?
Thanks
A message that is not in the archive (sent off-list or not yet received): 20170507064349.GM22833-U/[email protected]
Hi Leon,
Am Sonntag, den 07.05.2017, 09:43 +0300 schrieb Leon Romanovsky:
Quoted 6 lines
Hi Benjamin,
It looks like, we fixed all outstanding reviews comments for inclusion of rdma-core into Debian.
How can we move forward and see rdma-core part of Debian?
I found some time to continue the review of the source package merge. I finally reviewed all changes from the 11 source packages to rdma-core. The review is done except for the debian/copyright file regarding the upstream part (i.e. the copyright for all files outside of debian/). The resulting changes from the review can be found in the pull request
https://github.com/linux-rdma/rdma-core/pull/128
Remaining topics to address:
* review copyright (by me)
* ibacm: Required-Start on openibd (see separate post)
* rdma-ndd shipped by infiniband-diags and rdma-core (see separate post)
* srp_daemon: Disallow all targets if not explicitly allowed by default (see separate post)
* Can we upstream some redhat files, i.e. move them out of the redhat directory and maintain them in their corresponding code? Following files fall in this category:
** ibacm.service
** srp_daemon.service
** rdma service (see next point)
* Can we provide an upstream rdma-core "package" that contains the rdma service and the following files from the redhat directory? ** rdma.conf
** rdma.kernel-init
** rdma.service
** rdma.udev-rules
* Fix lintian issues:
I: rdma-core: extended-description-is-probably-too-short
I: iwpmd: extended-description-is-probably-too-short
Patches for improved descriptions are welcome.
W: iwpmd: init.d-script-missing-start etc/init.d/iwpmd 2 4
Any objections to add 2 and 4?
I: srptools: init.d-script-does-not-implement-optional-
option etc/init.d/srptools status
I can write that if you decide not to consolidate the srp daemon (see bonus point below)
W: ibverbs-providers: package-name-doesnt-match-sonames libmlx5-1
I think we should just ignore this warning since using libmlx5-1 is just one part of ibverbs-providers that shouldn't be use alone, should it?
W: ibverbs-providers: non-dev-pkg-with-shlib-symlink usr/lib/x86_64-
linux-gnu/libmlx5.so.1.1.14 usr/lib/x86_64-linux-gnu/libmlx5.so
This libmlx5.so symlink should be part of a development package. Should I add a new binary libmlx5-dev package or should it be moved to libibverbs-dev (where already the header files are)?
* Bonus points: consolidate the srp daemon. Debian ships a different service file than upstream, but I am against an additional layer introduced by srp_daemon.sh. It would also be nice to have a systemd service shipped by upstream (and not just in the redhat directory)
Once these points are addressed (and in case I found no new stuff), I will upload the package to Debian experimental since Debian is in freeze. And no, we are months too late for Debian 9 (stretch). The packaging doesn't use the latest stuff to allow a no-change backport to Debian 8 and 9.
Signature · 14 lines
Benjamin Drung System Developer Debian & Ubuntu Developer ProfitBricks GmbH Greifswalder Str. 207 D - 10405 Berlin Email: [email protected] Web: https://www.profitbricks.com Sitz der Gesellschaft: Berlin. Registergericht: Amtsgericht Charlottenburg, HRB 125506B. Geschäftsführer: Achim Weiss.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 7 lines · Benjamin Drung
Am Sonntag, den 07.05.2017, 09:43 +0300 schrieb Leon Romanovsky:
* Can we upstream some redhat files, i.e. move them out of the redhat directory and maintain them in their corresponding code? Following files fall in this category:
** ibacm.service
** srp_daemon.service
** rdma service (see next point)
One of the design goals of the systemd project was to avoid that different service files would be needed for different distro's. So I think it's weird that these service files exist in the redhat/ directory.
Quoted 5 lines
I: srptools: init.d-script-does-not-implement-optional-
option etc/init.d/srptools statusI can write that if you decide not to consolidate the srp daemon (see bonus point below)
I will submit a patch.
Quoted 4 lines
* Bonus points: consolidate the srp daemon. Debian ships a different service file than upstream, but I am against an additional layer introduced by
srp_daemon.sh. It would also be nice to have a systemd service shipped by upstream (and not just in the redhat directory)
I will have a look at this too.
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 6 lines · Bart Van Assche
Quoted 4 lines
* Bonus points: consolidate the srp daemon. Debian ships a different service file than upstream, but I am against an additional layer introduced by
srp_daemon.sh. It would also be nice to have a systemd service shipped by upstream (and not just in the redhat directory)I will have a look at this too.
My thoughts..
It looked to me like srp_daemon needed one process per port.
The best path looked to me like using systemd templates (eg srp_daemon@mlx4_0/0) to allow systemd to directly manage the per port srp_daemon.
Then the question is how to request the right templates are created.. Perhaps udev rules can do this directly, but I'm not sure about how to get the port #, perhaps an udev triggered script or something can do it.
Perhaps there could be an inbetween progarm that took the udev events and asked systemd to make the right units.
Another option is to have a srp_daemon 'runner' that monitors udev and actively manages a set of fork'd childern so that the children cover all required ports. But this is actually somewhat hard to do well..
The big issue with the redhat script is that it is not hotplug safe, and needs special boot ordering, which we really need to get away from in general for robustness.
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): 20170509181807.GB9715-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org
Quoted 24 lines · Jason Gunthorpe
Quoted 6 lines · Bart Van Assche
Quoted 4 lines
* Bonus points: consolidate the srp daemon. Debian ships a different service file than upstream, but I am against an additional layer introduced by
srp_daemon.sh. It would also be nice to have a systemd service shipped by upstream (and not just in the redhat directory)I will have a look at this too.
My thoughts..
It looked to me like
srp_daemonneeded one process per port.The best path looked to me like using systemd templates (eg srp_daemon@mlx4_0/0) to allow systemd to directly manage the per port
srp_daemon.Then the question is how to request the right templates are created.. Perhaps udev rules can do this directly, but I'm not sure about how to get the port #, perhaps an udev triggered script or something can do it.
Perhaps there could be an inbetween progarm that took the udev events and asked systemd to make the right units.
Quoted 7 lines
Another option is to have a
srp_daemon'runner' that monitors udev and actively manages a set of fork'd childern so that the children cover all required ports. But this is actually somewhat hard to do well..The big issue with the redhat script is that it is not hotplug safe, and needs special boot ordering, which we really need to get away from in general for robustness.
Hello Jason,
Thanks for having shared your thoughts.
When using systemd templates instead of the current approach it would become cumbersome for users to stop and start the srp_daemon on all ports simultaneously. Additionally, if an RDMA adapter is hot-added, should the srp_daemon be started or should it not be started for the newly added ports?
An in-between program could indeed do the job of listening for udev events and actively managing srp_daemon children. Since we already have an in-between program, namely srp_daemon.sh, the simplest approach is to modify that shell script. Can you have a look at the attached patch?
Thanks,
Bart.
From bec3884e36298ab2b6fb09c533b575fa95bd3378 Mon Sep 17 00:00:00 2001
From: Bart Van Assche <[email protected]>
Date: Fri, 12 May 2017 10:24:44 -0700
Subject: [PATCH] srp_daemon.service: Add support for hotplugging
Instead of only starting srp_daemon.sh after the RDMA subsystem has been initialized, make srp_daemon.sh scan periodically for RDMA ports. An advantage of the new approach is that it supports hot-add of RDMA adapters.
--- redhat/srp_daemon.service | 4 ---- srp_daemon/srp_daemon.sh.in | 41 ++++++++++++++++++++++++++--------------- 2 files changed, 26 insertions(+), 19 deletions(-)
redhat/srp_daemon.service +0 -4
@@ -3,10 +3,6 @@ Description=Start or stop the daemon that attaches to SRP devices Documentation=man:srp_daemon file:/etc/rdma/rdma.conf file:/etc/srp_daemon.conf DefaultDependencies=false Conflicts=emergency.target emergency.service -Requires=rdma.service -Wants=opensm.service -After=rdma.service opensm.service -After=network.target Before=remote-fs-pre.target [Service]
srp_daemon/srp_daemon.sh.in +26 -15
57 lines not on this page · raw message
Signature · 1 line
2.12.2
A message that is not in the archive (sent off-list or not yet received): 1494613473.14477.12.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org
Quoted 3 lines · Bart Van Assche
When using systemd templates instead of the current approach it would become cumbersome for users to stop and start the
srp_daemonon all ports simultaneously.
I think systemd PartOf dependencies is intended to solve that problem..
PartOf=
Configures dependencies similar to Requires=, but limited to stopping and restarting of units. When systemd stops or restarts the units listed here, the action is propagated to this unit. Note that this is a one-way dependency -- changes to this unit do not affect the listed units.
So there could still be a service name that covered all of the children (eg srp_daemon.service and [email protected])
Quoted 2 lines
Additionally, if an RDMA adapter is hot-added, should the
srp_daemonbe started or should it not be started for the newly added ports?
I'm not sure what is best for that policy..
Today it looks like srp_daemon defaults to explicitly opt-in to running on ports. To continue that policy the admin would have to explicitly opt in to each port. Eg perhaps something like:
systemctl enable srp_daemon@mlx4_0/0
Instead of editing a /etc/ config file.
systemd has a '.device' system, which as I understand it, would allow srp_daemon@mlx4_0/0 to depend on mlx4_0/0.device, which is created by udev on hotplug, and would trigger running the service.
(perhaps for this reason the template value would be umad0, not mlx4_0/0)
Quoted 4 lines
An in-between program could indeed do the job of listening for udev events and actively managing
srp_daemonchildren. Since we already have an in-between program, namelysrp_daemon.sh, the simplest approach is to modify that shell script. Can you have a look at the attached patch?
This seems like a reasonable improvement, but as I said, the inbetween program is a bit more complex that you probably want to do with a script:
- Sites do not like things running on timers due to the introduced jitter, so the trivial sleep loop is not nice.
- Failure of a child should result in a sensible log message and a restart protocol like systemd has. Failure to SIGTERM the child should escalate to SIGKILL to prevent lockups during shutdown
- Dumping stderr/etc into /dev/null is a bad idea (eg glibc internal asserts are lost now). In a systemd world each child should get its own stderrr logger connection so this stuff works right.
- We still need to be able to configure which ports srp_daemon runs on and to 'reload' that configuration into the script
- Ideally hot removal of an adaptor requires halting just those daemons without triggering restart
Since so much of that overlaps with systemd capabilities it does make some sense to have systemd manage the child processes directly.
For instance you could have the srp_daemon script like in the patch but replace this:
${prog} -e -c -n [..]
with
systemctl start srp_daemon_port@${hca_id}/${port}
Using PartOf dependencies.. The user experience would be very similar to the script directly forking, but many more of the above areas are covered off..
But.. in that case we don't even need the script. If the admin wishes to run srp_daemon on all IB ports then a simple udev rule will do the job:
SUBSYSTEM=="infiniband", TAG+="systemd", ATTRS{node_desc}=="*", ENV{SYSTEMD_WANTS}+="srp_daemon_port@$name.service"
[more or less]
And now the timer is gone too.
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
Quoted 3 lines · Benjamin Drung
* Can we upstream some redhat files, i.e. move them out of the redhat directory and maintain them in their corresponding code? Following files fall in this category:
Anything in the redhat directory could be moved out if it is going to be used by another distro. It is there waiting for other distros to look at it.
Quoted 6 lines
* Can we provide an upstream rdma-core "package" that contains the rdma service and the following files from the redhat directory? ** rdma.conf
** rdma.kernel-init
** rdma.service
** rdma.udev-rules
Do you mean adding a 'rdma-core' package to debian/?
We could move the relevant stuff out of redhat/ and into, say, kernel-boot/ or something.
IMHO there is no reason not to do that..
Quoted 5 lines
Patches for improved descriptions are welcome.
W: iwpmd: init.d-script-missing-start etc/init.d/iwpmd 2 4
Any objections to add 2 and 4?
Debian and RH6 are the only places I know of that use init.d scripts, so I think most changes Debian needs would be fine.
Quoted 5 lines
W: ibverbs-providers: package-name-doesnt-match-sonames libmlx5-1
I think we should just ignore this warning since using libmlx5-1 is just one part of ibverbs-providers that shouldn't be use alone, should it?
Probably.. It is has become a bit odd with mlx5 being directly linkable now..
Quoted 6 lines
W: ibverbs-providers: non-dev-pkg-with-shlib-symlink
usr/lib/x86_64-linux-gnu/libmlx5.so.1.1.14 usr/lib/x86_64-linux-gnu/libmlx5.soThis libmlx5.so symlink should be part of a development package. Should I add a new binary libmlx5-dev package or should it be moved to libibverbs-dev (where already the header files are)?
It should be with the headers, so I suggest libibverbs-dev
Quoted 4 lines
* Bonus points: consolidate the srp daemon. Debian ships a different service file than upstream, but I am against an additional layer introduced by
srp_daemon.sh. It would also be nice to have a systemd service shipped by upstream (and not just in the redhat directory)
The srp daemon needs proper native systemd support, not via a shell script wrapper. More like rdma-ndd. This is probably a bigger project..
I didn't think debian had a .service file for it at all?
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): 20170509180517.GA9715-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org
Am Dienstag, den 09.05.2017, 12:05 -0600 schrieb Jason Gunthorpe:
Quoted 10 lines · Benjamin Drung
Quoted 5 lines
* Can we upstream some redhat files, i.e. move them out of the redhat
directory and maintain them in their corresponding code? Following files fall in this category:Anything in the redhat directory could be moved out if it is going to be used by another distro. It is there waiting for other distros to look at it.
* The ifdown-ib and ifup-ib scripts are redhat-specific. It won't work with ifupdown from Debian.
* The files related to mlx4 look like a special handling for mlx4 to me and they do not following the KISS principle.
* What's the purpose of the cxgb{3,4} modprobe files?
* rdma.modules-setup.sh is not needed since Debian does not use dracut.
Everything else should be moved.
Quoted 8 lines
Quoted 7 lines
* Can we provide an upstream rdma-core "package" that contains the rdma
service and the following files from the redhat directory? ** rdma.conf
** rdma.kernel-init
** rdma.service
** rdma.udev-rules
Quoted 4 lines
Do you mean adding a 'rdma-core' package to debian/?
We could move the relevant stuff out of redhat/ and into, say, kernel-boot/ or something.
I meant a directory ('kernel-boot' sounds good) where these files live and a corresponding binary package where these files are installed into.
Jarod already created a rdma-core package in debian/control in commit 8df5873b9. Currently we do not have a rdma-core package in Debian and no package with a kernel-boot service file. I know that the openibd and
mlnx-ofed-kernel-utils packages shipped a openibd service that does
similar job.
Do we want to call the binary package that contains the kernel-boot service 'rdma-core' or simplify that to 'rdma'? We should use the same binary package name across the distributions (unless it's conflicting with a naming convention).
Can you come up with a patch set? I will be happy to review it. Note that paths like /usr/libexec/rdma-init-kernel (in rdma.service) needs to be made configurable. In Debian, we would install these helper scripts in /usr/lib/$packagename/$filename.
Quoted 10 lines
IMHO there is no reason not to do that..
Quoted 5 lines
Patches for improved descriptions are welcome.
W: iwpmd: init.d-script-missing-start etc/init.d/iwpmd 2 4
Any objections to add 2 and 4?
Debian and RH6 are the only places I know of that use init.d scripts, so I think most changes Debian needs would be fine.
Thanks. I will create a patch then.
Quoted 15 lines
Quoted 6 lines
W: ibverbs-providers: package-name-doesnt-match-sonames libmlx5-1
I think we should just ignore this warning since using libmlx5-1 is just one part of ibverbs-providers that shouldn't be use alone, should
it?Probably.. It is has become a bit odd with mlx5 being directly linkable now..
Quoted 5 lines
W: ibverbs-providers: non-dev-pkg-with-shlib-symlink
usr/lib/x86_64-
linux-gnu/libmlx5.so.1.1.14usr/lib/x86_64-linux-gnu/libmlx5.so
Quoted 6 lines
Quoted 4 lines
This libmlx5.so symlink should be part of a development package. Should
I add a new binary libmlx5-dev package or should it be moved to libibverbs-dev (where already the header files are)?It should be with the headers, so I suggest libibverbs-dev
Okay. I will put it there.
Quoted 7 lines
Quoted 6 lines
* Bonus points: consolidate the srp daemon. Debian ships a different
service file than upstream, but I am against an additional layer introduced bysrp_daemon.sh. It would also be nice to have a systemd
service shipped by upstream (and not just in the redhat directory)
Quoted 5 lines
The srp daemon needs proper native systemd support, not via a shell script wrapper. More like rdma-ndd. This is probably a bigger project..
I didn't think debian had a .service file for it at all?
Yes. I referred to the sysvinit script when I wrote "service file" (and not to a .service systemd file). ;) It would be nice if Debian ships
both: a sysvinit script (legacy support and users that do not want to use systemd) and a systemd .service file.
Signature · 19 lines
Benjamin Drung System Developer Debian & Ubuntu Developer ProfitBricks GmbH Greifswalder Str. 207 D - 10405 Berlin Email: [email protected] Web: https://www.profitbricks.com Sitz der Gesellschaft: Berlin. Registergericht: Amtsgericht Charlottenburg, HRB 125506B. Geschäftsführer: Achim Weiss. -- 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 · Benjamin Drung
Am Dienstag, den 09.05.2017, 12:05 -0600 schrieb Jason Gunthorpe:
Quoted 10 lines · Benjamin Drung
Quoted 5 lines
* Can we upstream some redhat files, i.e. move them out of the redhat
directory and maintain them in their corresponding code? Following files fall in this category:Anything in the redhat directory could be moved out if it is going to be used by another distro. It is there waiting for other distros to look at it.
Quoted 5 lines
* The ifdown-ib and ifup-ib scripts are redhat-specific. It won't work with ifupdown from Debian.
* The files related to mlx4 look like a special handling for mlx4 to me and they do not following the KISS principle.
One part is managing the need to setup multi-protocol ports on boot. This seems like a general requirement for mlx4/5 so maybe it should get some more common solution..
Quoted 1 line
* What's the purpose of the cxgb{3,4} modprobe files?
cxgb is a multi-kernel module driver, those scripts are an attempt to load the other parts when the main driver is loaded. I'm not sure why cxgb is special enough to get these files but mlx/etc are not.
I suspect it is old cruft because redhat/rdma.kernel-init handles things uniformly on systemd environments.
I've been thinking we should patch the kernel to solve this problem instead of using this ugly userspace solution..
Quoted 5 lines
Jarod already created a rdma-core package in debian/control in commit
8df5873b9. Currently we do not have a rdma-core package in Debian and no package with a kernel-boot service file. I know that the openibd and
mlnx-ofed-kernel-utils packages shipped a openibd service that does
similar job.
Yes, pulling something like openibd into rdma-core is the idea here..
Quoted 4 lines
Do we want to call the binary package that contains the kernel-boot service 'rdma-core' or simplify that to 'rdma'? We should use the same binary package name across the distributions (unless it's conflicting with a naming convention).
I think rdma-core is fine..
Quoted 4 lines
Can you come up with a patch set? I will be happy to review it. Note that paths like
/usr/libexec/rdma-init-kernel(in rdma.service) needs to be made configurable. In Debian, we would install these helper scripts in/usr/lib/$packagename/$filename.
Maybe Leon's team will try to tackle some of this? It is complicated, the RH scripts do quite a bit stuff :\
But this doesn't seem particularly urgent for Debian packaging, right?
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): 20170510155005.GB1007-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org
Quoted 29 lines · Jason Gunthorpe
Quoted 12 lines · Benjamin Drung
Am Dienstag, den 09.05.2017, 12:05 -0600 schrieb Jason Gunthorpe:
Quoted 10 lines · Benjamin Drung
Quoted 5 lines
* Can we upstream some redhat files, i.e. move them out of the redhat
directory and maintain them in their corresponding code? Following files fall in this category:Anything in the redhat directory could be moved out if it is going to be used by another distro. It is there waiting for other distros to look at it.
Quoted 5 lines
* The ifdown-ib and ifup-ib scripts are redhat-specific. It won't work with ifupdown from Debian.
* The files related to mlx4 look like a special handling for mlx4 to me and they do not following the KISS principle.
One part is managing the need to setup multi-protocol ports on boot. This seems like a general requirement for mlx4/5 so maybe it should get some more common solution..
Quoted 1 line
* What's the purpose of the cxgb{3,4} modprobe files?
cxgb is a multi-kernel module driver, those scripts are an attempt to load the other parts when the main driver is loaded. I'm not sure why cxgb is special enough to get these files but mlx/etc are not.
Quoted 5 lines
I suspect it is old cruft because redhat/rdma.kernel-init handles things uniformly on systemd environments.
I've been thinking we should patch the kernel to solve this problem instead of using this ugly userspace solution.
Can it be related to the fact that mlx5 core calls to request_module_nowait for mlx5_ib and chelsio doesn't do it?
Quoted 16 lines
Quoted 6 lines
Jarod already created a rdma-core package in debian/control in commit
8df5873b9. Currently we do not have a rdma-core package in Debian and no package with a kernel-boot service file. I know that the openibd and
mlnx-ofed-kernel-utils packages shipped a openibd service that does
similar job.Yes, pulling something like openibd into rdma-core is the idea here..
Quoted 4 lines
Do we want to call the binary package that contains the kernel-boot service 'rdma-core' or simplify that to 'rdma'? We should use the same binary package name across the distributions (unless it's conflicting with a naming convention).
I think rdma-core is fine..
Quoted 7 lines
Quoted 4 lines
Can you come up with a patch set? I will be happy to review it. Note that paths like
/usr/libexec/rdma-init-kernel(in rdma.service) needs to be made configurable. In Debian, we would install these helper scripts in/usr/lib/$packagename/$filename.Maybe Leon's team will try to tackle some of this? It is complicated, the RH scripts do quite a bit stuff :\
I would be happy to help, but I'm not sure that I understand what should be done :(
Quoted 4 lines
But this doesn't seem particularly urgent for Debian packaging, right?
Jason
A message that is not in the archive (sent off-list or not yet received): 20170510160201.GD1839-U/[email protected]
Am Mittwoch, den 10.05.2017, 19:02 +0300 schrieb Leon Romanovsky:
Quoted 32 lines · Jason Gunthorpe
Quoted 31 lines · Benjamin Drung
Quoted 9 lines
Jarod already created a rdma-core package in debian/control in commit
8df5873b9. Currently we do not have a rdma-core package in Debian and
no package with a kernel-boot service file. I know that the openibd and
mlnx-ofed-kernel-utils packages shipped a openibd service that does
similar job.Yes, pulling something like openibd into rdma-core is the idea here..
Quoted 7 lines
Do we want to call the binary package that contains the kernel- boot
service 'rdma-core' or simplify that to 'rdma'? We should use the same
binary package name across the distributions (unless it's conflicting
with a naming convention).I think rdma-core is fine..
Quoted 6 lines
Can you come up with a patch set? I will be happy to review it. Note
that paths like/usr/libexec/rdma-init-kernel(in rdma.service) needs
to be made configurable. In Debian, we would install these helper scripts in/usr/lib/$packagename/$filename.
Quoted 7 lines
Quoted 3 lines
Maybe Leon's team will try to tackle some of this? It is complicated,
the RH scripts do quite a bit stuff :\I would be happy to help, but I'm not sure that I understand what should
be done :(
Move redhat/rdma.service and everything that is required by it to a new 'kernel-boot' directory. Add a CMakeLists.txt file that installs the service. Make sure that the hard-coded paths are set by cmake. Also check the moved scripts for old, legacy stuff that might not work somewhere else.
Signature · 14 lines
Benjamin Drung System Developer Debian & Ubuntu Developer ProfitBricks GmbH Greifswalder Str. 207 D - 10405 Berlin Email: [email protected] Web: https://www.profitbricks.com Sitz der Gesellschaft: Berlin. Registergericht: Amtsgericht Charlottenburg, HRB 125506B. Geschäftsführer: Achim Weiss.
Quoted 5 lines · Leon Romanovsky
Quoted 2 lines
I've been thinking we should patch the kernel to solve this problem instead of using this ugly userspace solution.
Can it be related to the fact that mlx5 core calls to
request_module_nowaitformlx5_iband chelsio doesn't do it?
Yeah, maybe we should update chelsio kernel drivers instead of using these strange modprobe files...
Steve?
Quoted 5 lines
Quoted 2 lines
Maybe Leon's team will try to tackle some of this? It is complicated, the RH scripts do quite a bit stuff :\
I would be happy to help, but I'm not sure that I understand what should be done :(
I'm not totally clear either, TBH. The overall topic is to move files out of redhat/ and into the common directory. This requires removing the redhat-isms and making sure the redhat solution is what we really want upstream.
eg it seems rdma.cxgb[3]4.sys.modprobe is probably best done by patching the kernel instead, not copying the modprobe files.
rdma.kernel-init does:
- Load extra ULP modules
* /etc/rdma/rdma.conf is not appropriate for Debian
* 'TECH_PREVIEW' is a RedHat concept
- Obsolete mttr/errata stuff. This is in the kernel now (delete it)
- Yet another go at loading extra driver kernel modules (move to kernel)
- Something about SRIOV (?)
For ULP modules, I think we are loading too many by hand, again, the kernel really needs fixing to autoload our stuff on first use. So, I suggest a quick pass over that idea to see how much kernel code can be fixed up.
So the stuff to move to common user space code might just be the port configuration and sriov? But someone needs to study this entire topic with a broad view including the kernel.
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): 20170510163341.GA25041-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org
Quoted 7 lines
From: Jason Gunthorpe [mailto:jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org]
Quoted 3 lines · Leon Romanovsky
Quoted 2 lines
I've been thinking we should patch the kernel to solve this problem instead of using this ugly userspace solution.
Quoted 7 lines
Quoted 2 lines
Can it be related to the fact that mlx5 core calls to
request_module_nowaitformlx5_iband chelsio doesn't do it?Yeah, maybe we should update chelsio kernel drivers instead of using these strange modprobe files...
Steve?
Under what criteria would cxgb4 want to request its Upper Layer Drivers (ULDs) to be loaded? You wouldn't want to load the iwarp and iscsi drivers if they aren't going to be used, would you?
Quoted 29 lines
Quoted 6 lines
Quoted 3 lines
Maybe Leon's team will try to tackle some of this? It is complicated, the RH scripts do quite a bit stuff :\
I would be happy to help, but I'm not sure that I understand what should be done :(
I'm not totally clear either, TBH. The overall topic is to move files out of redhat/ and into the common directory. This requires removing the redhat-isms and making sure the redhat solution is what we really want upstream.
eg it seems rdma.cxgb[3]4.sys.modprobe is probably best done by patching the kernel instead, not copying the modprobe files.
rdma.kernel-init does:
- Load extra ULP modules
*/etc/rdma/rdma.confis not appropriate for Debian
* 'TECH_PREVIEW' is a RedHat concept
- Obsolete mttr/errata stuff. This is in the kernel now (delete it)
- Yet another go at loading extra driver kernel modules (move to kernel)
- Something about SRIOV (?)For ULP modules, I think we are loading too many by hand, again, the kernel really needs fixing to autoload our stuff on first use. So, I suggest a quick pass over that idea to see how much kernel code can be fixed up.
Quoted 5 lines
So the stuff to move to common user space code might just be the port configuration and sriov? But someone needs to study this entire topic with a broad view including the kernel.
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
Quoted 10 lines · Steve Wise
Quoted 10 lines
From: Jason Gunthorpe [mailto:jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org]
Quoted 5 lines · Leon Romanovsky
Quoted 2 lines
I've been thinking we should patch the kernel to solve this problem instead of using this ugly userspace solution.
Can it be related to the fact that mlx5 core calls to
request_module_nowaitformlx5_iband chelsio doesn't do it?
Quoted 8 lines
Quoted 4 lines
Yeah, maybe we should update chelsio kernel drivers instead of using these strange modprobe files...
Steve?
Under what criteria would cxgb4 want to request its Upper Layer Drivers (ULDs) to be loaded? You wouldn't want to load the iwarp and iscsi drivers if they aren't going to be used, would you?
Sounds like Mellanox is loading rocee drivers unconditionally, so why not load iwarp ones too? People who really don't want that can opt out with some modprobe configuration to block the modules.
iscsi should probably be demand loaded when userspace uses iscsi that crosses a cxgb chip..
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
Quoted 10 lines · Steve Wise
Quoted 10 lines
From: Jason Gunthorpe [mailto:jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org]
Quoted 5 lines · Leon Romanovsky
Quoted 2 lines
I've been thinking we should patch the kernel to solve this problem instead of using this ugly userspace solution.
Can it be related to the fact that mlx5 core calls to
request_module_nowaitformlx5_iband chelsio doesn't do it?
Quoted 8 lines
Quoted 4 lines
Yeah, maybe we should update chelsio kernel drivers instead of using these strange modprobe files...
Steve?
Under what criteria would cxgb4 want to request its Upper Layer Drivers (ULDs) to be loaded? You wouldn't want to load the iwarp and iscsi drivers if they aren't going to be used, would you?
If you don't want them, you will blacklist them. There is nothing wrong with ready-to-use approach.
Quoted 38 lines
Quoted 37 lines
Quoted 9 lines
Quoted 6 lines
Maybe Leon's team will try to tackle some of this? It is complicated, the RH scripts do quite a bit stuff :\
I would be happy to help, but I'm not sure that I understand what should be done :(
I'm not totally clear either, TBH. The overall topic is to move files out of redhat/ and into the common directory. This requires removing the redhat-isms and making sure the redhat solution is what we really want upstream.
eg it seems rdma.cxgb[3]4.sys.modprobe is probably best done by patching the kernel instead, not copying the modprobe files.
rdma.kernel-init does:
- Load extra ULP modules
*/etc/rdma/rdma.confis not appropriate for Debian
* 'TECH_PREVIEW' is a RedHat concept
- Obsolete mttr/errata stuff. This is in the kernel now (delete it)
- Yet another go at loading extra driver kernel modules (move to kernel)
- Something about SRIOV (?)For ULP modules, I think we are loading too many by hand, again, the kernel really needs fixing to autoload our stuff on first use. So, I suggest a quick pass over that idea to see how much kernel code can be fixed up.
So the stuff to move to common user space code might just be the port configuration and sriov? But someone needs to study this entire topic with a broad view including the kernel.
Jason
A message that is not in the archive (sent off-list or not yet received): 20170510165858.GG1839-U/[email protected]
Quoted 11 lines · Steve Wise
Quoted 10 lines
Quoted 10 lines
From: Jason Gunthorpe [mailto:jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org]
Quoted 5 lines · Leon Romanovsky
Quoted 2 lines
I've been thinking we should patch the kernel to solve this problem instead of using this ugly userspace solution.
Can it be related to the fact that mlx5 core calls to
request_module_nowaitformlx5_iband chelsio doesn't do it?
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
Yeah, maybe we should update chelsio kernel drivers instead of using these strange modprobe files...
Steve?
Under what criteria would cxgb4 want to request its Upper Layer Drivers
(ULDs)
Quoted 5 lines
Quoted 2 lines
to be loaded? You wouldn't want to load the iwarp and iscsi drivers if they aren't going to be used, would you?
If you don't want them, you will blacklist them. There is nothing wrong with ready-to-use approach.
Ok...
Quoted 33 lines
Quoted 33 lines
Quoted 33 lines
Quoted 10 lines
Quoted 7 lines
Maybe Leon's team will try to tackle some of this? It is complicated, the RH scripts do quite a bit stuff :\
I would be happy to help, but I'm not sure that I understand what should be done :(
I'm not totally clear either, TBH. The overall topic is to move files out of redhat/ and into the common directory. This requires removing the redhat-isms and making sure the redhat solution is what we really want upstream.
eg it seems rdma.cxgb[3]4.sys.modprobe is probably best done by patching the kernel instead, not copying the modprobe files.
rdma.kernel-init does:
- Load extra ULP modules
*/etc/rdma/rdma.confis not appropriate for Debian
* 'TECH_PREVIEW' is a RedHat concept
- Obsolete mttr/errata stuff. This is in the kernel now (delete it)
- Yet another go at loading extra driver kernel modules (move to kernel)
- Something about SRIOV (?)For ULP modules, I think we are loading too many by hand, again, the kernel really needs fixing to autoload our stuff on first use. So, I suggest a quick pass over that idea to see how much kernel code can be fixed up.
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
So the stuff to move to common user space code might just be the port configuration and sriov? But someone needs to study this entire topic with a broad view including the kernel.
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
Am Mittwoch, den 10.05.2017, 09:50 -0600 schrieb Jason Gunthorpe:
Quoted 20 lines · Benjamin Drung
Quoted 19 lines
Am Dienstag, den 09.05.2017, 12:05 -0600 schrieb Jason Gunthorpe:
Quoted 8 lines · Benjamin Drung
Quoted 6 lines
* Can we upstream some redhat files, i.e. move them out of the redhat
directory and maintain them in their corresponding code? Following
files fall in this category:Quoted 5 lines
Anything in the redhat directory could be moved out if it is going to
be used by another distro. It is there waiting for other distros to
look at it.* The ifdown-ib and ifup-ib scripts are redhat-specific. It won't work
with ifupdown from Debian.
Quoted 7 lines
Quoted 3 lines
* The files related to mlx4 look like a special handling for mlx4 to me
and they do not following the KISS principle.One part is managing the need to setup multi-protocol ports on boot. This seems like a general requirement for mlx4/5 so maybe it should get some more common solution..
A common solution would be better.
Quoted 11 lines
Quoted 1 line
* What's the purpose of the cxgb{3,4} modprobe files?
cxgb is a multi-kernel module driver, those scripts are an attempt to load the other parts when the main driver is loaded. I'm not sure why cxgb is special enough to get these files but mlx/etc are not.
I suspect it is old cruft because redhat/rdma.kernel-init handles things uniformly on systemd environments.
I've been thinking we should patch the kernel to solve this problem instead of using this ugly userspace solution..
Yes, better fix it in the kernel.
Quoted 12 lines
Quoted 9 lines
Jarod already created a rdma-core package in debian/control in commit
8df5873b9. Currently we do not have a rdma-core package in Debian and
no package with a kernel-boot service file. I know that the openibd and
mlnx-ofed-kernel-utils packages shipped a openibd service that does
similar job.Yes, pulling something like openibd into rdma-core is the idea here..
Quoted 8 lines
Quoted 6 lines
Do we want to call the binary package that contains the kernel-boot service 'rdma-core' or simplify that to 'rdma'? We should use the same
binary package name across the distributions (unless it's conflicting
with a naming convention).I think rdma-core is fine..
Okay. I am fine with this name.
Quoted 7 lines
Quoted 6 lines
Can you come up with a patch set? I will be happy to review it. Note
that paths like/usr/libexec/rdma-init-kernel(in rdma.service) needs
to be made configurable. In Debian, we would install these helper scripts in/usr/lib/$packagename/$filename.
Quoted 5 lines
Maybe Leon's team will try to tackle some of this? It is complicated, the RH scripts do quite a bit stuff :\
But this doesn't seem particularly urgent for Debian packaging, right?
I would love to have it in the Debian package. Currently the rdma-core binary package contains only rdma-ndd. If we defer the kernel-init part, I have to rename rdma-core or remove it.
Signature · 19 lines
Benjamin Drung System Developer Debian & Ubuntu Developer ProfitBricks GmbH Greifswalder Str. 207 D - 10405 Berlin Email: [email protected] Web: https://www.profitbricks.com Sitz der Gesellschaft: Berlin. Registergericht: Amtsgericht Charlottenburg, HRB 125506B. Geschäftsführer: Achim Weiss. -- 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