[slurm-users] How to enforce memory contrains?
tina.friedrich at it.ox.ac.uk
Tue Oct 5 08:31:23 UTC 2021
we do pretty much what you do - constrain via cgroups - and it works
fine. So I know it's possible. (I don't think I've ever twiddled the
I think you also need
SelectType=select/cons_res (or cons_tres)
in your slurm.conf; have you got that?
My cgroup.conf is this:
On 05/10/2021 09:15, Hermann Schwärzler wrote:
> Hi Rodrigo,
> a possible solution is using
> in slurm.conf.
> With this settings, programs that try to allocate more memory than
> requested in the job's settings will fail.
> Be aware that this puts a limit on *virtual* memory, not on RSS. This
> might or might not be what you want as a lot of programs tend to
> allocate (a lot) more virtual memory than they really use (RSS).
> On 10/5/21 12:46 AM, Rodrigo Santibáñez wrote:
>> Hello Slurm Users,
>> I'm having a hard time configuring slurm to kill jobs when they use
>> more memory than requested. Also, I can't make jobs use only RAM, and
>> some of them starts to use SWAP.
>> I don't know what I'm missing.
>> Thanks for your help
>> slurmd -V
>> slurm 20.02.6
Tina Friedrich, Advanced Research Computing Snr HPC Systems Administrator
Research Computing and Support Services
IT Services, University of Oxford
More information about the slurm-users