<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Miguel, <br>
</p>
<p>Thanks for the reply. I've already thought about doing that, but
I was hoping there was an easier, "more universal" way of doing
that. Right now, I have a rather long job_submit.lua, which has
made making changes in my environment cumbersome, so I'm trying to
minimize my reliance on job_submit.lua as much as possible.</p>
<p>It looks like the best way to do this to use sacctmgr to make
"general" the default QOS, which I just did. <br>
</p>
<pre class="moz-signature" cols="72">Prentice</pre>
<div class="moz-cite-prefix">On 1/30/19 6:48 AM, Miguel Gila wrote:<br>
</div>
<blockquote type="cite"
cite="mid:36E65A21-0A3D-4CA0-B2FA-54B3E04BB735@cscs.ch">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Hi Prentice,
<div class=""><br class="">
</div>
<div class="">You could add something like this to your
job_submit.lua</div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">QOS_DEBUG
= ’system_debug'</span></div>
</div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">PARTITION_DEBUG
= ‘debug'</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">[...]</span></div>
<div class="">
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">function
slurm_job_submit(job_desc, part_list, submit_uid)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Menlo; min-height: 15px;"
class=""> -- ------------------------ DEBUG/QOS
-------------------------------<span
style="font-variant-ligatures: no-common-ligatures" class=""></span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">
if (job_desc.partition) and (job_desc.partition ==
PARTITION_DEBUG) then</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">
slurm.log_info("::slurm_job_submit partition DEBUG.
Original QOS: %s, new QOS: %s”, job_desc.qos, QOS_DEBUG)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">
job_desc.qos=QOS_DEBUG</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">
slurm.log_user(“Setting QoS=%s for this job.”,QOS_DEBUG)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">
end</span></div>
</div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">[...]</span></div>
<div class=""><br class="">
</div>
<div class="">Hope this helps.</div>
<div class=""><br class="">
</div>
<div class="">Miguel<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 29 Jan 2019, at 16:27, Prentice Bisbal <<a
href="mailto:pbisbal@pppl.gov" class=""
moz-do-not-send="true">pbisbal@pppl.gov</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" class="">
<div bgcolor="#FFFFFF" text="#000000" class="">
<p class="">How does one assign a QOS to a partition?
This is mentioned several different places in the
Slurm documentation, but nowhere does it explain
exactly how to do this. <br class="">
</p>
<p class="">You can assign a QOS to a partition in
slurm.conf like this: <br class="">
</p>
<p class="">PartitionName=mypartition
Nodes=node[001-100] QOS=myqos <br class="">
</p>
<p class="">But that doesn't seem to really do much. And
the explanation for defining a QOS in a partition
definition, while rather vague, seems to state as
much: <br class="">
</p>
<div class=""> <br class="webkit-block-placeholder">
</div>
<blockquote type="cite" class="">
<dl compact="compact" class="">
<dt class=""><b class="">QOS</b></dt>
<dd class=""> Used to extend the limits available to
a QOS on a partition. Jobs will not be associated
to this QOS outside of being associated to the
partition. They will still be associated to their
requested QOS. By default, no QOS is used. <b
class="">NOTE:</b> If a limit is set in both the
Partition's QOS and the Job's QOS the Partition
QOS will be honored unless the Job's QOS has the <b
class="">OverPartQOS</b> flag set in which the
Job's QOS will have priority. </dd>
</dl>
</blockquote>
<div class=""><br class="webkit-block-placeholder">
</div>
<p class="">If I want to have every job that requests
the partition "mypartition" use the QOS "myqos", how
do I do that? <br class="">
</p>
<p class="">Also, can someone please explain to me the
explanation of the QOS field in the partition
definition I quoted above? <br class="">
</p>
<pre class="moz-signature" cols="72">--
Prentice </pre>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</blockquote>
</body>
</html>