Trying to use rpmbuild on Rocky9 Linux, Slurm 21.08 - I want to build with cgroups/v2 support and have these installed:
libbpf-devel.x86_64 2:1.3.0-2.el9 dbus-devel.x86_64 1:1.12.20-8.el9 kernel-headers.x86_64 5.14.0-427.22.1.el9_4 hwloc-devel.x86_64 2.4.1-5.el9
In https://slurm.schedmd.com/cgroup_v2.html it says:
Requirements For building cgroup/v2 there are two required libraries checked at configure time... Look at your config.log when configuring to see if they were correctly detected on your system.
I don't see any mention of 'ebpf', 'bpf', or 'dbus' when I grep through ~/rpmbuild/BUILD/slurm-21.08.8-2/config.log. Before I noticed that, I installed the RPMS on my cluster and get cgroup errors when I try to run a job or get an allocation. The slurmctld and slurmd processes start up fine on the servers, and I have a generic /etc/slurm/cgroup.conf.
It seems like the cgroups plugin isn't getting built right with rpmbuild- how do I troubleshoot? Thanks
Chris
Also it looks like only the v1 plugin gets built and added to the RPM-
# ls -l /usr/lib64/slurm/cgroup_v1.so -rwxr-xr-x 1 root root 385872 Jul 1 18:47 /usr/lib64/slurm/cgroup_v1.so # ls -l /usr/lib64/slurm/cgroup_v2.so ls: cannot access '/usr/lib64/slurm/cgroup_v2.so': No such file or directory
Chris
The version of Slurm you're building doesn't have support for cgroup v2. 22.05 does, but I'd recommend going through the upgrade cycle and moving to something even moderately recent.
https://github.com/SchedMD/slurm/blob/slurm-22.05/RELEASE_NOTES#L60
-- Adam
On Sat, Jul 6, 2024 at 11:29 AM Chris Taylor via slurm-users slurm-users@lists.schedmd.com wrote:
Also it looks like only the v1 plugin gets built and added to the RPM-
# ls -l /usr/lib64/slurm/cgroup_v1.so -rwxr-xr-x 1 root root 385872 Jul 1 18:47 /usr/lib64/slurm/cgroup_v1.so # ls -l /usr/lib64/slurm/cgroup_v2.so ls: cannot access '/usr/lib64/slurm/cgroup_v2.so': No such file or directory
Chris
-- slurm-users mailing list -- slurm-users@lists.schedmd.com To unsubscribe send an email to slurm-users-leave@lists.schedmd.com
Ah, thanks :) - I just realized this when I saw v1 was the only plugin included in the source. Yes I'm cycling through 21.08 so I can eventually get on the latest Slurm. Chris
On 07/06/2024 9:38 AM PDT Adam Tygart via slurm-users slurm-users@lists.schedmd.com wrote:
The version of Slurm you're building doesn't have support for cgroup v2. 22.05 does, but I'd recommend going through the upgrade cycle and moving to something even moderately recent.