<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<p>Wow, nice find. I wasn't even aware of that one. Hopefully they
will support the ability to reset to other values in the future as
that would be a handy ability.<br>
</p>
<p><br>
</p>
<p>-Paul Edmon-</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 7/16/2020 12:56 PM, Sebastian T
Smith wrote:<br>
</div>
<blockquote type="cite"
cite="mid:BYAPR01MB4677050FFD8B916475CBC58CA57F0@BYAPR01MB4677.prod.exchangelabs.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0); background-color:
rgb(255, 255, 255);">
<span style="font-family: Calibri, Helvetica, sans-serif;">`sacctmgr`
can be used to reset the accrued RawUsage value. Example
usage:</span></div>
<div 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 style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0); background-color:
rgb(255, 255, 255);">
<span style="font-family: Calibri, Helvetica, sans-serif;">#
sacctmgr modify user <user name> where
Account=<account name> set RawUsage=0</span></div>
<div 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 style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0); background-color:
rgb(255, 255, 255);">
<span style="font-family: Calibri, Helvetica, sans-serif;">Review
the `sacctmgr` documentation for more details:</span><a
href="https://slurm.schedmd.com/sacctmgr.html"
id="LPNoLP407209" moz-do-not-send="true"><span
style="font-family: Calibri, Helvetica, sans-serif;">
https://slurm.schedmd.com/sacctmgr.html</span></a><br>
</div>
</div>
<div><br>
</div>
<div><span style="font-family: Calibri, Helvetica, sans-serif;">Best,</span></div>
<div><br>
</div>
<div><span style="font-family: Calibri, Helvetica, sans-serif;">Sebastian</span><br>
</div>
<div><br>
<div id="Signature">
<div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:
12pt; color: rgb(0, 0, 0); font-family: Calibri, Arial,
Helvetica, sans-serif;">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div class="BodyFragment"><font size="2"><span
style="font-size:10pt">
<div class="PlainText">
<div id="emailSignature" style="display:block">--</div>
<div id="emailSignature" style="display:block"><br>
<table style="box-sizing: border-box;
border-collapse: collapse; border-spacing:
0px; background-color: rgb(255, 255, 255);
max-width: 100%; text-align: start;
font-family: Helvetica, Arial, san-serif;
width: 480px;">
<tbody style="box-sizing:border-box">
<tr style="box-sizing:border-box">
<td style="box-sizing:border-box;
vertical-align:top" width="75"><a
href="http://www.unr.edu/"
style="box-sizing: border-box;
background: transparent none
repeat scroll 0% 0%; color:
rgb(46, 108, 162);
text-decoration: underline;"
moz-do-not-send="true"><img
alt="University of Nevada, Reno"
style="box-sizing:border-box;
vertical-align:middle"
src="https://www.unr.edu/assets/images/blockn-100x100.png"
moz-do-not-send="true"
width="75"></a></td>
<td style="box-sizing:border-box"
width="20"> </td>
<td style="box-sizing:border-box;
vertical-align:top" width="385">
<table style="box-sizing:border-box;
border-collapse:collapse;
max-width:100%; width:385px;
text-align:left">
<tbody
style="box-sizing:border-box">
<tr
style="box-sizing:border-box">
<td
style="box-sizing:border-box;
vertical-align:top"><span
style="box-sizing:border-box"><span
style="box-sizing:
border-box; color:
rgb(0, 51, 102);"><strong
style="box-sizing:border-box; font-weight:bold"><span
style="box-sizing:border-box">Sebastian
Smith<br
style="box-sizing:border-box">
</span></strong></span><span
style="box-sizing:border-box"><span style="box-sizing:border-box">High-Performance
Computing Engineer<br
style="box-sizing:border-box">
</span><span
style="box-sizing:border-box">Office
of Information
Technology<br
style="box-sizing:border-box">
</span><span
style="box-sizing:border-box">1664
North Virginia Street<br
style="box-sizing:border-box">
</span><span
style="box-sizing:border-box">MS
0291<br
style="box-sizing:border-box">
</span><span
style="box-sizing:border-box"></span><span
style="box-sizing:border-box"></span><br style="box-sizing:border-box">
<strong
style="box-sizing:border-box;
font-weight:bold">work-phone:<span> </span></strong><span
style="box-sizing:border-box"><a href="tel:7756825050"
style="box-sizing:
border-box;
background:
transparent none
repeat scroll 0% 0%;
text-decoration:
underline;"
moz-do-not-send="true">775-682-5050</a><br
style="box-sizing:border-box">
</span><strong
style="box-sizing:border-box;
font-weight:bold"></strong><span
style="box-sizing:border-box"></span><strong
style="box-sizing:border-box;
font-weight:bold">email:<span> </span></strong><span
style="box-sizing:border-box"><a href="mailto:stsmith@unr.edu"
style="box-sizing:
border-box;
background:
transparent none
repeat scroll 0% 0%;
text-decoration:
underline;"
moz-do-not-send="true">stsmith@unr.edu</a><br
style="box-sizing:border-box">
</span><strong
style="box-sizing:border-box;
font-weight:bold">website:<span> </span></strong><span
style="box-sizing:border-box"><a href="http://rc.unr.edu/"
style="box-sizing:
border-box;
background:
transparent none
repeat scroll 0% 0%;
text-decoration:
underline;"
moz-do-not-send="true">http://rc.unr.edu</a><br
style="box-sizing:border-box">
</span></span><br
style="box-sizing:border-box">
</span></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</span></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
face="Calibri, sans-serif" color="#000000"><b>From:</b>
slurm-users <a class="moz-txt-link-rfc2396E" href="mailto:slurm-users-bounces@lists.schedmd.com"><slurm-users-bounces@lists.schedmd.com></a> on
behalf of Paul Edmon <a class="moz-txt-link-rfc2396E" href="mailto:pedmon@cfa.harvard.edu"><pedmon@cfa.harvard.edu></a><br>
<b>Sent:</b> Thursday, July 16, 2020 5:49 AM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:slurm-users@lists.schedmd.com">slurm-users@lists.schedmd.com</a>
<a class="moz-txt-link-rfc2396E" href="mailto:slurm-users@lists.schedmd.com"><slurm-users@lists.schedmd.com></a><br>
<b>Subject:</b> Re: [slurm-users] Reset Fair-share tree
account values</font>
<div> </div>
</div>
<div>
<p>Also as a side, is there an official name for the other
fairshare system? I guess the official documentation calls it
Classic Fairshare, like Classic Coke :). I hate to call it old
as we use it here and will continue to use it. We have no
intention to moving to FairTree because we've only recently
gotten our users used to the current system. FairTree frankly
doesn't fit our model and is too complicated to explain for
most of our users who have just figured out how the current
system works. So while FairTree is the default the other
system is still in wide use and I think still very useful.</p>
<p>-Paul Edmon-<br>
</p>
<div class="x_moz-cite-prefix">On 7/16/2020 8:42 AM, Paul Edmon
wrote:<br>
</div>
<blockquote type="cite">
<p>A trick you can use to reset certain users (which I have
used before) is to simply delete them from the slurmdb and
then readd them. At least under the other fairshare system,
which is what our site uses, that would remove their usage
and they would have 0 usage when they returned. I'm
assuming fairtree works the same way.</p>
<p>-Paul Edmon-<br>
</p>
<div class="x_moz-cite-prefix">On 7/16/2020 5:49 AM, Gestió
Servidors wrote:<br>
</div>
<blockquote type="cite">
<meta name="ProgId" content="Word.Document">
<meta name="Generator" content="Microsoft Word 15">
<meta name="Originator" content="Microsoft Word 15">
<link href="cid:filelist.xml@01D65B67.1E13C6E0">
<style>
<!--
@font-face
{font-family:"Cambria Math"}
@font-face
{font-family:Calibri}
@font-face
{font-family:Consolas}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif}
a:link, span.x_MsoHyperlink
{color:#0563C1;
text-decoration:underline}
a:visited, span.x_MsoHyperlinkFollowed
{color:#954F72;
text-decoration:underline}
span.x_EstiloCorreo17
{font-family:"Calibri",sans-serif;
color:windowtext}
.x_MsoChpDefault
{font-family:"Calibri",sans-serif}
@page WordSection1
{margin:70.85pt 3.0cm 70.85pt 3.0cm}
div.x_WordSection1
{}
-->
</style>
<div class="x_WordSection1">
<p class="x_MsoNormal">Hello,</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">I will try to explain an scenario
that occurs in my SLURM cluster. An important number of
users (accounts) belongs to students of a certain
subject. That subject is 6 month duration. When subject
end, I “reset” user folders, clean all data, reset
passwords and, in next academic year, I offer same users
(accounts) to new students, so they have their $HOME
cleans and no old data. However, in SLURM, what old
users could execute modified values we can seen in
“sshare -l -a”, specifically “RawUsage, NormUsage,
EffectvUsage, FairShare, LevelFS”. After reading some
documents, I “understand” that these values are
calculated to give more or less priority to a user
(account) job depending its features, cluster use, total
number of CPUs, cores, etc... so, when new users take
that accounts, that values should be reset as a new user
in the cluster... but I think that new users are
dragging from the past.</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">My slurm.conf contains these
parameters:</p>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span
style="font-size:10.0pt; font-family:Consolas">PriorityType=priority/multifactor</span></p>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span
style="font-size:10.0pt; font-family:Consolas">PriorityDecayHalfLife=7-0</span></p>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span
style="font-size:10.0pt; font-family:Consolas">PriorityCalcPeriod=5</span></p>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span
style="font-size:10.0pt; font-family:Consolas">PriorityUsageResetPeriod=QUARTERLY</span></p>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span
style="font-size:10.0pt; font-family:Consolas">PriorityFavorSmall=NO</span></p>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span
style="font-size:10.0pt; font-family:Consolas">PriorityMaxAge=7-0</span></p>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span
style="font-size:10.0pt; font-family:Consolas">PriorityWeightAge=10000</span></p>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span
style="font-size:10.0pt; font-family:Consolas">PriorityWeightFairshare=1000000</span></p>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span
style="font-size:10.0pt; font-family:Consolas">PriorityWeightJobSize=1000</span></p>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span
style="font-size:10.0pt; font-family:Consolas">PriorityWeightPartition=1000</span></p>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span
style="font-size:10.0pt; font-family:Consolas">PriorityWeightQOS=0</span></p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">As you can see,
“PriorityUsageResetPeriod” is configured as QUARTERLY,
so after reading some documents and examples, I “think”
that fair-share tree, priorities and user assigned job
priority is “reset” and turned to initial values... Am I
wrong or am I in the correct way?</p>
<p class="x_MsoNormal">But, either way, I would like to
reset that values only for some users (accounts), not
for all SLURM users/accounts. Is it possible?</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Thanks.</p>
</div>
</blockquote>
</blockquote>
</div>
</blockquote>
</body>
</html>