[slurm-users] Can't use cgroups on debian 11 : unable to get parameter 'tasks' for '/sys/fs/cgroup/cpuset/'

Christoph Brüning christoph.bruening at uni-wuerzburg.de
Wed Nov 17 09:24:04 UTC 2021


Hi,

I encountered an issue a while back when Slurm would expect a cgroups v1 
hierarchy, but Debian 11 had switched to cgroups v2.

I don't know whether this has been tackled in Slurm since then, but I 
worked around it by adding "systemd.unified_cgroup_hierarchy=0" to the 
kernel command line to enable hybrid cgroup mode.

See also 
https://unix.stackexchange.com/questions/480747/how-to-find-out-if-systemd-uses-legacy-hybrid-or-unified-mode-cgroupsv1-vs-cgr 
to find out which mode is active on your system.

Best,
Christoph



On 16/11/2021 17.04, Arthur Toussaint wrote:
> Hi,
> I'm trying to use cgroups in my slurm config on Debian 11 (installed through
> debian apt repo), but slurmd won't start, I've attached the relevant 
> slurmd.log
> as well as slurm.conf and cgroup.conf files
> The error seems to be unable to get parameter 'tasks' for 
> '/sys/fs/cgroup/cpuset/'
> I've added the `cgroup_enable=memory swapaccount=1` to the cmdline but that
> doesn't help
> I've seen people having those kind of problems, but no one seem to be 
> able to solve it and keep the cgroupsThanks a lot
> Arthur
> 

-- 
Dr. Christoph Brüning
Universität Würzburg
HPC & DataManagement @ ct.qmat & RZUW
Am Hubland
D-97074 Würzburg
Tel.: +49 931 31-80499



More information about the slurm-users mailing list