[slurm-users] Problem with cgroup plugin in Ubuntu22.04 and slurm 21.08.5
Hermann Schwärzler
hermann.schwaerzler at uibk.ac.at
Fri Apr 21 13:03:16 UTC 2023
Hi Ángel,
which version of cgroups does Ubuntu 22.04 use?
What is the output of
mount | grep cgroup
on your system?
Regards,
Hermann
On 4/21/23 14:33, Angel de Vicente wrote:
> Hello,
>
> I've installed Slurm in a workstation (this is a single-node install)
> with Ubuntu 22.04, and have installed Slurm version 21.08.5 (I didn't
> compile it myself, just installed it with "apt install").
>
> In the slurm.conf file I have:
>
> ,----
> | ProctrackType=proctrack/cgroup
> | TaskPlugin=task/affinity,task/cgroup
> `----
>
> When I submit a job, the "slurmd.log" shows:
>
> ,----
> | [2023-04-21T12:22:14.128] task/affinity: task_p_slurmd_batch_request: task_p_slurmd_batch_request: 127018
> | [2023-04-21T12:22:14.128] task/affinity: batch_bind: job 127018 CPU input mask for node: 0x00000001
> | [2023-04-21T12:22:14.129] task/affinity: batch_bind: job 127018 CPU final HW mask for node: 0x00000001
> | [2023-04-21T12:22:14.156] [127018.extern] error: cgroup namespace 'cpuset' not mounted. aborting
> | [2023-04-21T12:22:14.156] [127018.extern] error: unable to create cpuset cgroup namespace
> | [2023-04-21T12:22:14.156] [127018.extern] error: cgroup namespace 'memory' not mounted. aborting
> | [2023-04-21T12:22:14.156] [127018.extern] error: unable to create memory cgroup namespace
> | [2023-04-21T12:22:14.156] [127018.extern] error: failure enabling memory enforcement: Unspecified error
> | [2023-04-21T12:22:14.156] [127018.extern] error: Couldn't load specified plugin name for task/cgroup: Plugin init() callback failed
> | [2023-04-21T12:22:14.156] [127018.extern] error: cannot create task context for task/cgroup
> | [2023-04-21T12:22:14.156] [127018.extern] error: job_manager: exiting abnormally: Plugin initialization failed
> `----
>
> If I change TaskPlugin to be just
>
> ,----
> | TaskPlugin=task/affinity
> `----
>
> then the job executes without any problems.
>
> Do you know how I could fix this while keeping the cgroup plugin? My
> intuition tells me that I should probably get the latest version of
> Slurm and compile it myself, but I thought I would ask here before going
> that route.
>
> Any ideas/pointers? Many thanks,
More information about the slurm-users
mailing list