<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<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;}
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;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@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 lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">While testing pam_slurm_adopt with multiple jobs running on the node with Centos7, I realized that it was failing with error messages like:<o:p></o:p></p>
<p class="MsoNormal">Jun 12 11:57:37 server pam_slurm_adopt[86395]: From 192.168.1.48 port 36512 as test1234: unable to determine source job<o:p></o:p></p>
<p class="MsoNormal">Jun 12 11:57:37 server pam_slurm_adopt[86395]: Couldn't stat path '/cgroup/memory/slurm/uid_1002/job_104'<o:p></o:p></p>
<p class="MsoNormal">Jun 12 11:57:37 server pam_slurm_adopt[86395]: Couldn't stat path '/cgroup/memory/slurm/uid_1002/job_105'<o:p></o:p></p>
<p class="MsoNormal">Jun 12 11:57:37 server pam_slurm_adopt[86395]: Couldn't stat path '/cgroup/memory/slurm/uid_1002/job_106'<o:p></o:p></p>
<p class="MsoNormal">Jun 12 11:57:37 server pam_slurm_adopt[86395]: Couldn't stat path '/cgroup/memory/slurm/uid_1002/job_107'<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">As explained in the documentation of the plugin, I knew that I had to change the subsystem in the function _inderterminate_multiple() and change “memory” by “cpuset’ for my case.<o:p></o:p></p>
<p class="MsoNormal">But I am not a fan of hard-coded things, so I decided to modify the plugin to accept a new option that I called “cgoup_subsystem”.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">To select the subsystem used by slurm/cgroup, just set the value of subsystem after pam_slurm_adopt.so in /etc/pam.d/sshd, for example:<o:p></o:p></p>
<p class="MsoNormal">account    sufficient    pam_slurm_adopt.so subsystem=cpuset
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If nothing is set, the default subsystem is memory like before.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">After that and with the proposed modifications, everything was working as expected:<o:p></o:p></p>
<p class="MsoNormal">Jun 12 11:59:14 server pam_slurm_adopt[86610]: From 192.168.1.48 port 36644 as test1234: unable to determine source job<o:p></o:p></p>
<p class="MsoNormal">Jun 12 11:59:14 server pam_slurm_adopt[86610]: action_unknown: Picked job 116<o:p></o:p></p>
<p class="MsoNormal">Jun 12 11:59:14 server pam_slurm_adopt[86610]: Process 86610 adopted into job 116<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am attaching the modified version. I believe that it will be useful for some people and might be added to the next version of pam_slurm_adopt.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Jerome Vienne<o:p></o:p></p>
</div>
Confidentiality Note: This e-mail and any attachments are confidential and may be protected by legal privilege. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited.
 If you have received this e-mail in error, please notify us immediately by returning it to the sender and delete this copy from your system. We will use any personal information you give to us in accordance with our Privacy Policy which can be found in the
 Data Protection section on our corporate website www.squarepoint-capital.com. Please note that e-mails may be monitored for regulatory and compliance purposes. Thank you for your cooperation.



<br />
</body></html>