<div dir="ltr"><div><div><div><i><b>Caedite eos. Novit enim Dominus qui sunt eius</b></i><br><a href="https://en.wikipedia.org/wiki/Caedite_eos._Novit_enim_Dominus_qui_sunt_eius">https://en.wikipedia.org/wiki/Caedite_eos._Novit_enim_Dominus_qui_sunt_eius</a>.<br><br></div>I have been wanting to use that line in the context of batch systems and users for ages.<br></div>At least now I can make it a play on killing processes. Rather than being put on a watch list for admins likely to go postal.<br><br></div>ps. that URL really does have a period character on the end.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 23 April 2018 at 16:18, Chris Samuel <span dir="ltr"><<a href="mailto:chris@csamuel.org" target="_blank">chris@csamuel.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Monday, 23 April 2018 11:58:56 PM AEST Paul Edmon wrote:<br>
<br>
> I would recommend putting a clean up process in your epilog script.<br>
<br>
</span>Instead of that I'd recommend using cgroups to constrain processes to the <br>
resources they have requested, it has the useful side effect of being able to <br>
track all children of the job on that node. The one way some things escape <br>
is if they SSH into other nodes, to stop that use pam_slurm_adopt to capture <br>
those processes into the "extern" cgroup.<br>
<br>
More on using pam_slurm_adopt here:<br>
<br>
<a href="https://slurm.schedmd.com/pam_slurm_adopt.html" rel="noreferrer" target="_blank">https://slurm.schedmd.com/pam_<wbr>slurm_adopt.html</a><br>
<span class=""><br>
> We have a check here that sees if the job completed and if so it then<br>
> terminates all the user processes by kill -9 to clean up any residuals.<br>
<br>
</span>That can be dangerous if you permit jobs to share nodes (which is pretty <br>
standard down here in Australia) as you could end up killing processes from <br>
other jobs on that same node.<br>
<br>
All the best,<br>
Chris<br>
<span class="HOEnZb"><font color="#888888">-- <br>
Chris Samuel : <a href="http://www.csamuel.org/" rel="noreferrer" target="_blank">http://www.csamuel.org/</a> : Melbourne, VIC<br>
<br>
<br>
</font></span></blockquote></div><br></div>