We do this here using the job_submit.lua script. Here is an example:
if part == "bigmem" then
if (job_desc.pn_min_memory ~= 0) then
if (job_desc.pn_min_memory < 190000 or
job_desc.pn_min_memory > 2147483646) then
slurm.log_user("You must request
more than 190GB for jobs in bigmem partition")
return 2052
end
end
end
-Paul Edmon-
On 12/16/2020 11:06 AM, Sistemas NLHPC wrote:
Hello
Good afternoon, i have a query currently in our cluster we have
different partitions:
1 partition called slims with 48 Gb of ram
1 partition called general 192 Gb of ram
1 partition called largemem with 768 Gb of ram.
Is it possible to restrict access to the largemem partition and for
tasks to be accepted as long as a minimum of 193 Gb is reserved in
slurm.conf or another method? This is because we have users who use
the largemem partition reserving less than 192 GB.
Thanks for help.
--
Mirko Pizarro Pizarro <mpiza...@nlhpc.cl <mailto:mpiza...@nlhpc.cl>
Ingeniero de Sistemas
National Laboratory for High Performance Computing (NLHPC)
www.nlhpc.cl <http://www.nlhpc.cl/>
CMM - Centro de Modelamiento Matemático
Facultad de Ciencias Físicas y Matemáticas (FCFM)
Universidad de Chile
Beauchef 851
Edificio Norte - Piso 6, of. 601
Santiago – Chile
tel +56 2 2978 4603