[slurm-users] How to automatically kill a job that exceeds its memory limits (--mem-per-cpu)?

Jean-mathieu CHANTREIN jean-mathieu.chantrein at univ-angers.fr
Mon Oct 7 16:55:59 UTC 2019


Hello, 

I tried using, in slurm.conf 
TaskPlugin=task/affinity, task/cgroup 
SelectTypeParameters=CR_CPU_Memory 
MemLimitEnforce=yes 

and in cgroup.conf: 
CgroupAutomount=yes 
ConstrainCores=yes 
ConstrainRAMSpace=yes 
ConstrainSwapSpace=yes 
MaxSwapPercent=10 
TaskAffinity=no 

But when the job reaches its limit, it passes alternately from R to D state without being killed, even when it exceeds the 10% of swap partition allowed. 

Do you have an idea to do this? 

Regards, 

Jean-Mathieu 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20191007/c3dd8d72/attachment.htm>


More information about the slurm-users mailing list