<html 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=utf-8">
<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;}
@font-face
{font-family:Menlo;
panose-1:2 11 6 9 3 8 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
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;}
span.EmailStyle18
{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>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">I’m asking in the hopes that others will chime in (I’m curious why this is happening)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Could you share your related slurm.conf cgroup options<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">cgroup.conf<o:p></o:p></p>
<p class="MsoNormal">cgroup_allowed_devices_file.conf<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">TaskPlugin<o:p></o:p></p>
<p class="MsoNormal">ProctrackType<o:p></o:p></p>
<p class="MsoNormal">JobAcctGatherType<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">-Kevin<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">PS Looking for similar style jobs, We have >1 day gpu users inside of cgroup, but not multi-tenant currently. 17.11.5, CentOS6<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">slurm-users <slurm-users-bounces@lists.schedmd.com> on behalf of Shawn Bobbin <sabobbin@umiacs.umd.edu><br>
<b>Reply-To: </b>Slurm User Community List <slurm-users@lists.schedmd.com><br>
<b>Date: </b>Thursday, April 12, 2018 at 9:25 AM<br>
<b>To: </b>"slurm-users@schedmd.com" <slurm-users@schedmd.com><br>
<b>Subject: </b>[slurm-users] Jobs escaping cgroup device controls after some amount of time.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal"><a name="_MailOriginalBody">Hi, <o:p></o:p></a></p>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody">We’re running slurm 17.11.5 on RHEL 7 and have been having issues with jobs escaping there cgroup controls on GPU devices.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody">For example we have the following steps running:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><o:p> </o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:8.5pt;font-family:Menlo"># ps auxn | grep [s]lurmstepd<o:p></o:p></span></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:8.5pt;font-family:Menlo"> 0 2380 0.0 0.0 538436 3700 ? Sl 07:22 0:02 slurmstepd: [46609.0]<o:p></o:p></span></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:8.5pt;font-family:Menlo"> 0 5714 0.0 0.0 472136 3952 ? Sl Apr11 0:03 slurmstepd: [46603.0]<o:p></o:p></span></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:8.5pt;font-family:Menlo"> 0 17202 0.0 0.0 538448 3724 ? Sl Apr11 0:03 slurmstepd: [46596.0]<o:p></o:p></span></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:8.5pt;font-family:Menlo"> 0 28673 0.0 0.0 538380 3696 ? Sl Apr10 0:39 slurmstepd: [46262.0]<o:p></o:p></span></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:8.5pt;font-family:Menlo"> 0 44832 0.0 0.0 538640 3964 ? Sl Apr11 1:12 slurmstepd:
<span style="background:#00E6E6">[</span>46361.0<span style="background:#00E6E6">]</span><o:p></o:p></span></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody">But not all of those are reflected in the cgroup device hierarchy:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><o:p> </o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:8.5pt;font-family:Menlo"># lscgroup | grep devices | grep slurm<o:p></o:p></span></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:8.5pt;font-family:Menlo">devices:/slurm<o:p></o:p></span></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:8.5pt;font-family:Menlo">devices:/slurm/uid_2093<o:p></o:p></span></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:8.5pt;font-family:Menlo">devices:/slurm/uid_2093/job_46609<o:p></o:p></span></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:8.5pt;font-family:Menlo">devices:/slurm/uid_2093/job_46609/step_0<o:p></o:p></span></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:8.5pt;font-family:Menlo">devices:/slurm/uid_11477<o:p></o:p></span></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:8.5pt;font-family:Menlo">devices:/slurm/uid_11477/job_46603<o:p></o:p></span></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:8.5pt;font-family:Menlo">devices:/slurm/uid_11477/job_46603/step_0<o:p></o:p></span></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:8.5pt;font-family:Menlo">devices:/slurm/uid_11184<o:p></o:p></span></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:8.5pt;font-family:Menlo">devices:/slurm/uid_11184/job_46596<o:p></o:p></span></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:8.5pt;font-family:Menlo">devices:/slurm/uid_11184/job_46596/step_0<o:p></o:p></span></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody">This issue only seems to happen after a job has been running for a while, as when it is first started the cgroup controls work as expected. In this example, the jobs that have escaped the controls
(46361,46362) have been running for over a day:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><o:p> </o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:8.5pt;font-family:Menlo"># squeue -j 46609,46603,46596,46262,46361<o:p></o:p></span></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:8.5pt;font-family:Menlo"> JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON)<o:p></o:p></span></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:8.5pt;font-family:Menlo"> 46596 dpart bash yhng R 10:56:00 1 vulcan14<o:p></o:p></span></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:8.5pt;font-family:Menlo"> 46609 scavenger bash yaser R 1:52:37 1 vulcan14<o:p></o:p></span></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:8.5pt;font-family:Menlo"> 46603 scavenger bash jxzheng R 9:47:26 1 vulcan14<o:p></o:p></span></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:8.5pt;font-family:Menlo"> 46361 dpart bash jxzheng R 1-08:31:14 1 vulcan14<o:p></o:p></span></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="mso-bookmark:_MailOriginalBody"><span style="font-size:8.5pt;font-family:Menlo"> 46262 dpart Weighted umahbub R 1-18:07:07 1 vulcan14<o:p></o:p></span></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody">So it seems that at some point slurm, or something else, comes in and modifies the cgroup hierarchy, but we haven’t had much luck in tracking down what.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody">Has anyone run into this, or have any pointers for troubleshooting this further?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody">Thanks,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody">—Shawn<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><o:p> </o:p></span></p>
</div>
</div>
</body>
</html>