[slurm-users] Problem with cgroup plugin in Ubuntu22.04 and slurm 21.08.5

Angel de Vicente angel.de.vicente at iac.es
Fri Apr 21 12:33:10 UTC 2023


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,
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Tel.: +34 922-605-747
 Web.: http://research.iac.es/proyecto/polmag/

 GPG: 0x8BDC390B69033F52
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5877 bytes
Desc: not available
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20230421/231f415f/attachment.bin>

More information about the slurm-users mailing list