<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=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:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
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=DE link="#0563C1" vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Dear Slurm users, <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>i would like to use the taskplugin cgroups on my system. I have configured cgroups as recommended by slurm:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>cgroup.conf:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>CgroupAutomount=yes<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>CgroupMountpoint=/sys/fs/cgroup<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>TaskAffinity=no<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>ConstrainCores=yes<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>slurm.conf:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>...<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>TaskPlugin=task/affinity,task/cgroup<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#TaskPluginParam=Sched<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>...<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US># COMPUTE NODES<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>GresTypes=gpu<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>NodeName=lsm[216-217] Gres=gpu:tesla:1 CPUs=64 RealMemory=192073 Sockets=2 CoresPerSocket=16 ThreadsPerCore=2 State=UNKNOWN<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>PartitionName=admin Nodes=lsm[216-217] Default=YES MaxTime=INFINITE State=UP<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>It works, but the performance is much worse than before with TaskPlugin=task/none.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>What I noticed:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>With TaskPlugin=task/none the tasks often change the execution unit (thread). With affinity/cgroups the tasks remain on their assigned thread from start to finish. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>As an example:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>With srun -n9 -N2 ./prog and TaskPlugin=task/affinity,task/cgroup, the tasks are divided among the threads: <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>node 1: 1,17,33,49,34<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Node 2: 1,17,33,49<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Execution time: ~210 sec<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>With srun -n9 -N2 ./prog and TaskPlugin=task/none the taks change the threads during execution.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>execution time: ~140 sec (like manual with mpirun)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>What are proper parameters for task affinity and cgroups?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal>Thanks for any help :)<o:p></o:p></p><p class=MsoNormal>-max<o:p></o:p></p></div></body></html>