[slurm-users] srun --mem issue

Bill bill at princeton.edu
Thu Dec 8 13:52:12 UTC 2022


If you use a job_submit.lua script just add

if job_desc.pn_min_memory == 0 or job_desc.min_mem_per_cpu == 0 then
            log_info("slurm_job_submit: job from uid %d invalid memory 
request MaxMemPerNode", job_desc.user_id)
            return 2044 -- signal ESLURM_INVALID_TASK_MEMORY
end


Bill

On 12/7/22 12:03 PM, Felho, Sandor wrote:
> TransUnion is running a ten-node site using slurm with multiple queues. 
> We have an issue with --mem parameter. The is one user who has read the 
> slurm manual and found the --mem=0. This is giving the maximum memory on 
> the node (500 GiB's) for the single job. How can I block a --mem=0 request?
> 
> We are running:
> 
>   * OS: RHEL 7
>   * cgroups version 1
>   * slurm: 19.05
> 
> Thank you,
> 
> *Sandor Felho *
> 
> Sr Consultant, Data Science & Analytics
> 
> 



More information about the slurm-users mailing list