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 <s...@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, 马银萍 <mayinping...@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 > > >