<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:windowtext">Barbara,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Thank you for info. Will add to config.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:windowtext">-- <o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:windowtext">SS<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span style="color:windowtext"> slurm-users <slurm-users-bounces@lists.schedmd.com>
<b>On Behalf Of </b>Barbara Krašovec<br>
<b>Sent:</b> Tuesday, May 7, 2019 8:53 AM<br>
<b>To:</b> slurm-users@lists.schedmd.com<br>
<b>Subject:</b> Re: [slurm-users] Slurm resource limits on jobs<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>Resources are limited with cgroups in SLURM. Check the documentation:<o:p></o:p></p>
<p><a href="https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fslurm.schedmd.com%2Fcgroups.html&data=02%7C01%7Cssingh%40amnh.org%7C14f601168ad14d6ae08408d6d2eb1a57%7Cbe0003e8c6b9496883aeb34586974b76%7C0%7C1%7C636928304549376757&sdata=7Y1BAQWPzyf18Pla8mYAQd4Eq%2FWJpmzrCB%2FpVvL4FgY%3D&reserved=0">https://slurm.schedmd.com/cgroups.html</a><o:p></o:p></p>
<p>You simply specify ProctrackType=proctrack/cgroup or/and TaskPlugin=task/cgroup in slurm.conf and then configure which resources are limited and how much in the cgroup.conf:<o:p></o:p></p>
<p><a href="https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fslurm.schedmd.com%2Fcgroup.conf.html&data=02%7C01%7Cssingh%40amnh.org%7C14f601168ad14d6ae08408d6d2eb1a57%7Cbe0003e8c6b9496883aeb34586974b76%7C0%7C1%7C636928304549386765&sdata=hPCTl09LbOPxj2mvyN8IyIeUnSzvt2QZ46k4VEUVYTw%3D&reserved=0">https://slurm.schedmd.com/cgroup.conf.html</a><o:p></o:p></p>
<p>Barbara<o:p></o:p></p>
<div>
<p class="MsoNormal">On 5/6/19 5:52 PM, Sajesh Singh wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Good day fellow Slurm users.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Coming from a PBSpro system which has the following variables to limit a job to the resources it requested:<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">$enforce mem<o:p></o:p></p>
<p class="MsoNormal">$enforce cpuaverage<o:p></o:p></p>
<p class="MsoNormal">$enforce cpuburst<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">If a user exceeded any of the above limits their job would be terminated.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Looking through the slurm.conf man page I only see configuration variables to limit memory utilization:<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">OverMemoryKill and MemLimitEnforce.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">What are the analogous variables to use for other resources that may be exceeded by a job?<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Regards,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">SS<o:p></o:p></p>
</blockquote>
</div>
</body>
</html>