<div dir="ltr"><div>Hello everyone,</div><div><br></div><div>I came across a weird behavior and was wondering if this is a bug, oversight, or intended?</div><div><br></div><div>It appears that Slurm does not set memory.limit_in_bytes at the task level, but it does set it at the step level and above. Observe:</div><div><br></div><div>$ grep memory /proc/$$/cgroup<br>10:memory:/slurm/uid_2001/job_304876/step_0/task_0</div><div><br></div><div>$ cd /sys/fs/cgroup/memory/slurm/uid_2001/job_304876/step_0/task_0</div><div><br></div><div>$ cat memory.limit_in_bytes<br></div><div>9223372036854771712     <--- basically unlimited</div><div><br></div><div>But lets check the parent:</div><div><br></div><div>$ cat ../memory.limit_in_bytes<br></div><div>33554432000      <-- set properly to around 32 GB, see below<br></div><div><br></div><div>$ scontrol show job 304876 | grep mem=<br>   TRES=cpu=8,mem=<b>32000M</b>,node=1,billing=8</div><div><br></div><div>Now, it does appear that the task is still limited to the step's memory limit given the hierarchical nature of cgroups, but I just wanted to mention this anyway and see if anyone had any thoughts.</div><div><br></div><div>Thanks,<br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span style="font-family:arial,helvetica,sans-serif"><span style="color:rgb(7,55,99)"><font size="2">____</font></span></span><span style="color:rgb(7,55,99)"><font size="2"><span style="font-family:arial,helvetica,sans-serif"><span><span style="font-family:arial,helvetica,sans-serif">_____</span></span></span><span style="font-family:arial,helvetica,sans-serif"><span><span style="font-family:arial,helvetica,sans-serif"><span><span style="font-family:arial,helvetica,sans-serif">__________</span></span></span></span></span><span style="font-family:arial,helvetica,sans-serif"><span><span style="font-family:arial,helvetica,sans-serif"><span><span style="font-family:arial,helvetica,sans-serif"><span><span style="font-family:arial,helvetica,sans-serif">__________</span></span></span></span></span></span></span><span style="font-family:arial,helvetica,sans-serif"><span><span style="font-family:arial,helvetica,sans-serif"><span><span style="font-family:arial,helvetica,sans-serif"><span><span style="font-family:arial,helvetica,sans-serif"><span><span style="font-family:arial,helvetica,sans-serif">__________</span></span></span></span></span></span>_____</span></span>______<br><b>Jacob D. Chappell, CSM</b><br>Research Computing | Research Computing Infrastructure<br>Information Technology Services | University of Kentucky<br><a href="mailto:jacob.chappell@uky.edu" target="_blank">jacob.chappell@uky.edu</a><br></span></font></span></div></div></div></div></div></div></div></div></div></div></div></div></div>