<div dir="ltr"><div>Regarding setting limits for users on the head node. We had this for years:</div><div><br></div><div># CPU time in minutes<br>*       -   cpu         30<br>root    -   cpu         unlimited</div><div><br></div><div>But we eventually found that this was even causing long-running jobs like rsync/scp to fail when users were copying data to the cluster. For a while I blamed our network people, but then I did some tests and found that it was the limits that were  responsible. I have removed this and other limits for now but I ruthlessly kill heavy processes that my users run on there. I will look into using cgroups on the head node.</div><div><br></div><div>Cheers,<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 24, 2021 at 11:05 AM 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">On 24-04-2021 04:37, Cristóbal Navarro wrote:<br>
> Hi Community,<br>
> I have a set of users still not so familiar with slurm, and yesterday <br>
> they bypassed srun/sbatch and just ran their CPU program directly on the <br>
> head/login node thinking it would still run on the compute node. I am <br>
> aware that I will need to teach them some basic usage, but in the <br>
> meanwhile, how have you solved this type of user-behavior problem? Is <br>
> there a preffered way to restrict the master/login resources, or <br>
> actions,  to the regular users ?<br>
<br>
We restrict user limits in /etc/security/limits.conf so users can't run <br>
very long or very big tasks on the login nodes:<br>
<br>
# Normal user limits<br>
*               hard    cpu             20<br>
*               hard    rss             50000000<br>
*               hard    data            50000000<br>
*               soft    stack           40000000<br>
*               hard    stack           50000000<br>
*               hard    nproc           250<br>
<br>
/Ole<br>
<br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Alan Orth<br><a href="mailto:alan.orth@gmail.com" target="_blank">alan.orth@gmail.com</a><br><a href="https://picturingjordan.com" target="_blank">https://picturingjordan.com</a><br><a href="https://englishbulgaria.net" target="_blank">https://englishbulgaria.net</a><br><a href="https://mjanja.ch" target="_blank">https://mjanja.ch</a></div></div></div>