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

Arthur Toussaint arthur.toussaint at wandercraft.eu
Wed Nov 17 08:14:07 UTC 2021


Hi Crhis, 
That makes sense, thanks a lot ! 
Arthur 


De: "Christopher Samuel" <chris at csamuel.org> 
À: "slurm-users" <slurm-users at lists.schedmd.com> 
Envoyé: Mercredi 17 Novembre 2021 02:36:36 
Objet: Re: [slurm-users] Can't use cgroups on debian 11 : unable to get parameter 'tasks' for '/sys/fs/cgroup/cpuset/' 

On 11/16/21 8:04 am, Arthur Toussaint wrote: 

> I've seen people having those kind of problems, but no one seem to be 
> able to solve it and keep the cgroups 

Debian Bullseye switched to cgroups v2 by default which Slurm doesn't 
support yet, you'll need to switch back to the v1 cgroups. The release 
notes have info on how to do this here: 

https://www.debian.org/releases/stable/amd64/release-notes/ch-information.en.html#openstack-cgroups 

Short version is it says you need to add this to the kernel boot params: 

systemd.unified_cgroup_hierarchy=false 
systemd.legacy_systemd_cgroup_controller=false 

The name of that second one looks a bit misleading, it's described in 
the systemd man page as: 

https://manpages.debian.org/testing/systemd/systemd.1.en.html 

> Takes effect if the full unified cgroup hierarchy is not used (see 
previous option). When specified without an argument or with a true 
argument, disables the use of "hybrid" cgroup hierarchy (i.e. a 
cgroups-v2 tree used for systemd, and legacy cgroup hierarchy[10], 
a.k.a. cgroups-v1, for other controllers), and forces a full "legacy" 
mode. When specified with a false argument, enables the use of "hybrid" 
hierarchy. 

All the best, 
Chris 
-- 
Chris Samuel : http://www.csamuel.org/ : Berkeley, CA, USA 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20211117/01fcdf2f/attachment-0001.htm>


More information about the slurm-users mailing list