[slurm-users] cgroups/v2 plugin rpmbuild issue

5 views
Skip to first unread message

Chris Taylor via slurm-users

unread,
Jul 5, 2024, 11:31:57 PM (10 days ago) Jul 5
to slurm...@lists.schedmd.com
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

--
slurm-users mailing list -- slurm...@lists.schedmd.com
To unsubscribe send an email to slurm-us...@lists.schedmd.com

Chris Taylor via slurm-users

unread,
Jul 6, 2024, 12:28:46 PM (10 days ago) Jul 6
to Chris Taylor via slurm-users
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

Adam Tygart via slurm-users

unread,
Jul 6, 2024, 12:40:03 PM (10 days ago) Jul 6
to Chris Taylor, Chris Taylor via slurm-users
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

Chris Taylor via slurm-users

unread,
Jul 6, 2024, 1:18:49 PM (10 days ago) Jul 6
to Adam Tygart, Adam Tygart via slurm-users
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...@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.
>

Reply all
Reply to author
Forward
0 new messages