Hello Gestió,
Yes, slurm can restrict the resources that are available to the job using cgroups. I accidentally send my first reply as a separate email in this mailing list, which you can find here: https://lists.schedmd.com/mailman3/hyperkitty/list/slurm-users@lists.schedmd...
Sorry about that, --Megan