<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" dir="ltr">
<p>Hi Sandor</p>
<p><br>
</p>
<p>I personnaly block "--mem=0" requests in file job_submit.lua (slurm 20.02):</p>
<p><br>
</p>
<div> <i> if (job_desc.min_mem_per_node == 0 or job_desc.min_mem_per_cpu == 0) then</i></div>
<div><i> slurm.log_info("%s: ERROR: unlimited memory requested", log_prefix) </i></div>
<div><i> slurm.log_info("%s: ERROR: job %s from user %s rejected because of an invalid (unlimited) memory request.", log_prefix, job_desc.name, job_desc.user_name) </i></div>
<div><i> slurm.log_user("Job rejected because of an invalid memory request.") </i></div>
<div><i> return slurm.ERROR</i></div>
<div><i> end</i></div>
<div><br>
</div>
<div>Maybe there is a better or nicer solution...</div>
<div><br>
</div>
<div>All the best</div>
<div>Moshe</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> slurm-users <slurm-users-bounces@lists.schedmd.com> on behalf of Felho, Sandor <Sandor.Felho@transunion.com><br>
<b>Sent:</b> Wednesday, December 7, 2022 7:03 PM<br>
<b>To:</b> slurm-users@lists.schedmd.com<br>
<b>Subject:</b> [slurm-users] srun --mem issue</font>
<div> </div>
</div>
<div>
<div class="elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
TransUnion is running a ten-node site using slurm with multiple queues. We have an issue with --mem parameter. The is one user who has read the slurm manual and found the --mem=0. This is giving the maximum memory on the node (500 GiB's) for the single job.
How can I block a --mem=0 request?</div>
<div class="elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div class="elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
We are running:</div>
<div class="elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<ul>
<li><span><span style="">OS: RHEL 7</span><br>
</span></li><li><span><span style="">cgroups version 1</span></span></li><li><span><span style="">slurm: 19.05</span></span></li></ul>
<div><span><span style="">Thank you,</span></span></div>
<div>
<div id="Signature">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<p style="margin:0in 0in 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif">
<a><b><span style="font-size:9pt; font-family:Arial,sans-serif; color:black">Sandor Felho </span></b></a></p>
<p style="margin:0in 0in 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif">
<span style=""><span style="font-size:8pt; font-family:Arial,sans-serif; color:black">Sr Consultant, Data Science & Analytics </span></span></p>
<p style="margin:0in 0in 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif">
<span style="font-family:Calibri,sans-serif; font-size:11pt"> </span></p>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>