[slurm-users] how to disable --mem and --mem-per-cpu in srun, salloc and sbatch
Marcus Wagner
wagner at itc.rwth-aachen.de
Fri Jan 5 01:44:21 MST 2018
Hi Ashlee,
the min_mem_per_cpu parameter is in fact not nil. If it is not set by
the user, the value is 9223372036854775806
Best
Marcus
On 01/05/2018 08:58 AM, Yinping Ma wrote:
> hello, shenglong wang
>
> Thanks for your relpy, I tried this before.
>
> I write this in job_submit.lua:
>
> ---------------------------------------------------------------------------------------------
>
> function slurm_job_submit(job_desc, part_list, submit_uid)
> if job_desc.min_mem_per_cpu ~= nil then
> return slurm.SUCCESS
> else
> slurm.log_user("job_desc.pn_min_memory is not nil.
> job_desc.min_mem_per_cpu=%s",job_desc.min_mem_per_cpu)
> return slurm.ERROR
> end
> end
>
> ----------------------------------------------------------------------------------------------
>
> It can disable --mem but can't disable --mem-per-cpu.
>
> I don't know how to disable --mem-per-cpu, can you give any suggestion ?
>
> all the best,
> Ashlee
>
>
> 2018-01-05 11:04 GMT+08:00 Shenglong Wang <sw77 at nyu.edu
> <mailto:sw77 at nyu.edu>>:
>
>
> You can try to use SLURM LUA plugins to check and reject the
> submissions.
>
> Best,
> Shenglong
>
>
>> On Jan 4, 2018, at 9:58 PM, 马银萍 <mayinpingpku at gmail.com
>> <mailto:mayinpingpku at gmail.com>> wrote:
>>
>> hello,
>>
>> I want to stop users to use --mem and --mem-per-cpu in
>> srun,salloc and sbatch, but I can't figure out how to do, did I
>> need to modify slurm source code to realisze this?
>>
>> Thanks for any insight!
>>
>> best.
>> Ashlee
>
>
--
Marcus Wagner, Dipl.-Inf.
IT Center
Abteilung: Systeme und Betrieb
RWTH Aachen University
Seffenter Weg 23
52074 Aachen
Tel: +49 241 80-24383
Fax: +49 241 80-624383
wagner at itc.rwth-aachen.de
www.itc.rwth-aachen.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20180105/af42ce8b/attachment-0001.html>
More information about the slurm-users
mailing list