<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<p>You might want to look at these options for SchedulerParamtesr:</p>
<dl compact="compact">
<dt><b>preempt_strict_order</b></dt>
<dd>
If set, then execute extra logic in an attempt to preempt only
the lowest
priority jobs.
It may be desirable to set this configuration parameter when
there are multiple
priorities of preemptable jobs.
The logic to support this option is only available in the
select/cons_res and
select/cons_tres plugins.
</dd>
<dt><b>preempt_youngest_first</b></dt>
<dd>
If set, then the preemption sorting algorithm will be changed to
sort by the
job start times to favor preempting younger jobs over older.
(Requires
preempt/partition_prio or preempt/qos plugins.)
</dd>
</dl>
<p>-Paul Edmon-<br>
</p>
<div class="moz-cite-prefix">On 10/25/19 7:21 AM, Oytun Peksel
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:21a809ca324a41b4b8131cd281ac5893@semcon.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@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;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
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;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.EmailStyle17
{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 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1093862861;
mso-list-type:hybrid;
mso-list-template-ids:2046874008 69009409 69009411 69009413 69009409 69009411 69009413 69009409 69009411 69009413;}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></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]-->
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">Let’s say I have two
partitions assigned to the same single load in the cluster.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">LowPrio with
PreemptMode=suspend Priority=1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">HighPrio with
PreemtMode=off Priority=5<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">I have 4 identical jobs
requiring 1/2 of resources in the cluster. So only 2 jobs
can run at the same time.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I queue up two of these
jobs to LowPrio partition one after the other. Let’s say one
have jobid=10 and the next one has jobd=11<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">Then I queue up a third
job to HighPrio partition. One of the LowPrio jobs
immediately get suspended.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US">Q1. How can I make
sure the one submitted latest(jobid=11 in this case) gets
suspended and not jobid=10?<o:p></o:p></span></b></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Then before any job is
finished I submit the final job to LowPrio partition.<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">So the queue looks like
this<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:SV"><img
style="width:6.1333in;height:1.3333in"
id="Picture_x0020_1"
src="cid:part1.6A57F6D3.4C6FA411@cfa.harvard.edu" class=""
width="589" height="128"></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US">Q2. When HighPrio job
(12) finishes how can I make sure suspended job(10) would
start instead of the pending job(13)?<o:p></o:p></span></b></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="PT-BR"><o:p> </o:p></span></p>
<p class="MsoNormal"
style="margin-bottom:12.0pt;line-height:11.0pt"><span
style="color:black;mso-fareast-language:SV" lang="PT-BR">Thanks<br>
<br>
<o:p></o:p></span></p>
<table class="MsoNormalTable" style="width:375.0pt" width="0"
cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style="line-height:10.0pt"><b><span
style="font-size:10.0pt;color:black;mso-fareast-language:SV"
lang="PT-BR">Oytun Peksel</span></b><span
style="font-size:10.0pt;color:black;mso-fareast-language:SV"
lang="PT-BR"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<br>
<font size="1" face="Calibri" color="Gray"><br>
<i>When you communicate with us or otherwise interact with
Semcon, we will process personal data that you provide to us
or we collect about you, please read more in our
<a href="https://semcon.com/data-privacy-policy/"
moz-do-not-send="true">Privacy Policy</a>.</i><br>
</font>
</blockquote>
</body>
</html>