Thanks for pointing me to DefMemPerCPU. This is the obvious solution, I
somehow overlooked that.
Matthias
Am 22.04.21 um 21:01 schrieb Sarlo, Jeffrey S:
In our configuration we have DefMemPerCPU=1024 as part of the partition
definition.
I don't know the answer to your question if that is expected behavior,
but it would keep you from having to do something with a plugin.
Jeff
------------------------------------------------------------------------
*From:* slurm-users <slurm-users-boun...@lists.schedmd.com> on behalf of
Matthias Leopold <matthias.leop...@meduniwien.ac.at>
*Sent:* Thursday, April 22, 2021 5:13 AM
*To:* Slurm User Community List <slurm-users@lists.schedmd.com>
*Subject:* [slurm-users] limiting memory usage when submission doesn't
specify memory requirements?
Hi,
I'm testing how limiting memory resources works in Slurm.
I'm using TaskPlugin=affinity,cgroup (slurm.conf) and
ConstrainRAMSpace=yes (cgroup.conf) and have set a MaxMemPerCPU limit on
the partition.
To my surprise MaxMemPerCPU is enforced as long as the job submission
requests a memory limit (like --mem-per-cpu), but isn't enforced when
job submission doesn't request a memory limit. Is this really expected
behaviour? How do I constrain these jobs? Force requesting memory limit
with submission plugin?
thx
Matthias
--
Matthias Leopold
IT Systems & Communications
Medizinische Universität Wien
Spitalgasse 23 / BT 88 /Ebene 00
A-1090 Wien
Tel: +43 1 40160-21241
Fax: +43 1 40160-921200