<div dir="ltr">Hi ole,<div><br></div><div>Thanks Ole. </div><div>After setting the Enforce it worked.</div><div>I am new to slurm to thanks for helping me.</div><div><br></div><div><br></div><div>Regards</div><div>Navin</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 17, 2020 at 5:36 PM Ole Holm Nielsen <<a href="mailto:Ole.H.Nielsen@fysik.dtu.dk">Ole.H.Nielsen@fysik.dtu.dk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Navin,<br>
<br>
I wonder if you have configured the Slurm database and the slurmdbd <br>
daemon?  I think the limit enforcement requires the use of the database.<br>
<br>
What is the output of:<br>
<br>
$ scontrol show config | grep AccountingStorageEnforce<br>
<br>
See also <a href="https://slurm.schedmd.com/accounting.html#limit-enforcement" rel="noreferrer" target="_blank">https://slurm.schedmd.com/accounting.html#limit-enforcement</a><br>
<br>
Limit Enforcement<br>
<br>
Various limits and limit enforcement are described in the Resource Limits <br>
web page.<br>
<br>
To enable any limit enforcement you must at least have <br>
AccountingStorageEnforce=limits in your slurm.conf, otherwise, even if you <br>
have limits set, they will not be enforced. Other options for <br>
AccountingStorageEnforce and the explanation for each are found on the <br>
Resource Limits document.<br>
<br>
/Ole<br>
<br>
On 2/17/20 12:20 PM, navin srivastava wrote:<br>
> Hi ole,<br>
> <br>
> i am submitting 100 of jobs are i see all jobs starting at the same time <br>
> and all job is going into the run state.<br>
> if Maxjobs limit is set it should allow only 3 jobs at any point of time.<br>
> <br>
> Regards<br>
> Navin.<br>
> <br>
> <br>
> <br>
> <br>
> On Mon, Feb 17, 2020 at 4:48 PM Ole Holm Nielsen <br>
> <<a href="mailto:Ole.H.Nielsen@fysik.dtu.dk" target="_blank">Ole.H.Nielsen@fysik.dtu.dk</a> <mailto:<a href="mailto:Ole.H.Nielsen@fysik.dtu.dk" target="_blank">Ole.H.Nielsen@fysik.dtu.dk</a>>> wrote:<br>
> <br>
>     Hi Navin,<br>
> <br>
>     Why do you think the limit is not working?  The MaxJobs limits the number<br>
>     of running jobs to 3, but you can still submit as many jobs as you like!<br>
> <br>
>     See "man sacctmgr" for definitions of the limits MaxJobs as well as<br>
>     MaxSubmitJobs.<br>
> <br>
>     /Ole<br>
> <br>
>     On 2/17/20 12:04 PM, navin srivastava wrote:<br>
>      > Hi,<br>
>      ><br>
>      > Thanks for your script.<br>
>      > with this i am able to show the limit what i set. but this limt is<br>
>      > not working.<br>
>      ><br>
>      > MaxJobs =        3, current value = 0<br>
>      ><br>
>      > Regards<br>
>      > Navin.<br>
>      ><br>
>      > On Mon, Feb 17, 2020 at 4:13 PM Ole Holm Nielsen<br>
>      > <<a href="mailto:Ole.H.Nielsen@fysik.dtu.dk" target="_blank">Ole.H.Nielsen@fysik.dtu.dk</a> <mailto:<a href="mailto:Ole.H.Nielsen@fysik.dtu.dk" target="_blank">Ole.H.Nielsen@fysik.dtu.dk</a>><br>
>     <mailto:<a href="mailto:Ole.H.Nielsen@fysik.dtu.dk" target="_blank">Ole.H.Nielsen@fysik.dtu.dk</a><br>
>     <mailto:<a href="mailto:Ole.H.Nielsen@fysik.dtu.dk" target="_blank">Ole.H.Nielsen@fysik.dtu.dk</a>>>> wrote:<br>
>      ><br>
>      >     On 2/17/20 11:16 AM, navin srivastava wrote:<br>
>      >      > i have an issue with the slurm job limit. i applied the Maxjobs<br>
>      >     limit on<br>
>      >      > user using<br>
>      >      ><br>
>      >      >   sacctmgr modify user navin1 set maxjobs=3<br>
>      >      ><br>
>      >      > but still i see this is not getting applied. i am still bale<br>
>     to submit<br>
>      >      > more jobs.<br>
>      >      > Slurm version is 17.11.x<br>
>      >      ><br>
>      >      > Let me know what setting is required to implement this.<br>
>      ><br>
>      >     The tool "showuserlimits" tells you all user limits in the Slurm<br>
>      >     database.<br>
>      >        You can download it from<br>
>      ><br>
>     <a href="https://github.com/OleHolmNielsen/Slurm_tools/tree/master/showuserlimits" rel="noreferrer" target="_blank">https://github.com/OleHolmNielsen/Slurm_tools/tree/master/showuserlimits</a><br>
>      >     and give it a try:<br>
>      ><br>
>      >     $ showuserlimits -u navin1<br>
> <br>
<br>
<br>
</blockquote></div>