[slurm-users] OverMemoryKill Not Working?

Mark Hahn hahn at mcmaster.ca
Fri Oct 25 13:40:54 UTC 2019


> need.   I simply want to enforce the memory limits as specified by the user
> at job submission time.   This seems to have been the behavior in previous

but cgroups (with Constrain) do that all by themselves.

> If someone could post just a simple slurm.conf file that forces the memory
> limits to be honored (and kills the job if they are exceeded), then I could
> extract what I need from that.

slurm.conf:
TaskPlugin=task/cgroup
JobAcctGatherParams=NoOverMemoryKill

cgroup.conf:
ConstrainRAMSpace=yes
ConstrainKmemSpace=no
ConstrainSwapSpace=yes
AllowedRamSpace=100
AllowedSwapSpace=0
MaxRAMPercent=100
MaxSwapPercent=100
MinRAMSpace=30

I think those are the relevant portions.

regards,
-- 
operator may differ from spokesperson.	            hahn at mcmaster.ca



More information about the slurm-users mailing list