<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
I agree that resetting to a non-zero value would be helpful (vote_count++). That's how I originally stumbled upon this feature. We bill for system time based on usage per month, and there are cases where "refunds" need to be issued. (Usually high-tech issues,
like, rebooting the wrong node <span id="🙁">🙁</span>).<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);">
<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);">
- Sebastian<br>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div></div>
<div></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;"><img alt="University of Nevada, Reno" style="box-sizing:border-box; vertical-align:middle" width="75" src="https://www.unr.edu/assets/images/blockn-100x100.png"></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;">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;">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;">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>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> slurm-users <slurm-users-bounces@lists.schedmd.com> on behalf of Paul Edmon <pedmon@cfa.harvard.edu><br>
<b>Sent:</b> Thursday, July 16, 2020 10:15 AM<br>
<b>To:</b> slurm-users@lists.schedmd.com <slurm-users@lists.schedmd.com><br>
<b>Subject:</b> Re: [slurm-users] Reset Fair-share tree account values</font>
<div> </div>
</div>
<div>
<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="x_moz-cite-prefix">On 7/16/2020 12:56 PM, Sebastian T Smith wrote:<br>
</div>
<blockquote type="cite"><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://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fslurm.schedmd.com%2Fsacctmgr.html&data=01%7C01%7Cstsmith%40unr.edu%7C0f36290b63084fdfc19c08d829ac02de%7C523b4bfc0ebd4c03b2b96f6a17fd31d8%7C1&sdata=IaS0v2ahlQ2FTf8vWK%2BGAcRgmbaaMPCoQe6q8oB%2BRAQ%3D&reserved=0" originalsrc="https://slurm.schedmd.com/sacctmgr.html" shash="raBdfFeZgA1YqPV/n4D8+mIPYgq5rfzA3cR17GySFb1TdYx4VvPtGNPiAS0OxIDgsPpxLHSRWNeDfalOB/2KhvtVkvdcIiujoje+4fWk3m8yIL5ld6xZREeIIlY9AIY/j95KQTq/L7mAVGYJaxVBIMMRvlqdLq60Qjj7GXfQSPQ=" id="LPNoLP407209"><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="x_Signature">
<div>
<div id="x_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="x_BodyFragment"><font size="2"><span style="font-size:10pt">
<div class="x_PlainText">
<div id="x_emailSignature" style="display:block">--</div>
<div id="x_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 width="75" style="box-sizing:border-box; vertical-align:top"><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"><img alt="University of Nevada, Reno" width="75" style="box-sizing:border-box; vertical-align:middle" src="https://www.unr.edu/assets/images/blockn-100x100.png"></a></td>
<td width="20" style="box-sizing:border-box"> </td>
<td width="385" style="box-sizing:border-box; vertical-align:top">
<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">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">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="https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Frc.unr.edu%2F&data=01%7C01%7Cstsmith%40unr.edu%7C0f36290b63084fdfc19c08d829ac02de%7C523b4bfc0ebd4c03b2b96f6a17fd31d8%7C1&sdata=WorqqFFRZHuvJAC9pudwsYgQGV0aMhLCq6IiOqeb9Os%3D&reserved=0" originalsrc="http://rc.unr.edu/" shash="KEiGKK6A1MA/Wr4ymTks+aKIiNmdzMIY3ip5mQQXMbwK+k+U9ie9WB5b4n8olbLo8uEH7PZBhyrgf6ZDG57TJxMoY07YR1vS9HvvCERM7sLPuUHomixkzdJ+8/jJoO3ZGEkviMPYuaq2LIMVik9d+PDp6a7Gyse3133IChnlBaI=" style="box-sizing:border-box; background:transparent none
repeat scroll 0% 0%; text-decoration:underline">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 tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> slurm-users
<a class="x_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="x_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="x_moz-txt-link-abbreviated" href="mailto:slurm-users@lists.schedmd.com">
slurm-users@lists.schedmd.com</a> <a class="x_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_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_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_x_MsoNormal, li.x_x_MsoNormal, div.x_x_MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif}
a:link, span.x_x_MsoHyperlink
{color:#0563C1;
text-decoration:underline}
a:visited, span.x_x_MsoHyperlinkFollowed
{color:#954F72;
text-decoration:underline}
span.x_x_EstiloCorreo17
{font-family:"Calibri",sans-serif;
color:windowtext}
.x_x_MsoChpDefault
{font-family:"Calibri",sans-serif}
@page WordSection1
{margin:70.85pt 3.0cm 70.85pt 3.0cm}
-->
</style>
<div class="x_x_WordSection1">
<p class="x_x_MsoNormal">Hello,</p>
<p class="x_x_MsoNormal"> </p>
<p class="x_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_x_MsoNormal"> </p>
<p class="x_x_MsoNormal">My slurm.conf contains these parameters:</p>
<p class="x_x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:10.0pt; font-family:Consolas">PriorityType=priority/multifactor</span></p>
<p class="x_x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:10.0pt; font-family:Consolas">PriorityDecayHalfLife=7-0</span></p>
<p class="x_x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:10.0pt; font-family:Consolas">PriorityCalcPeriod=5</span></p>
<p class="x_x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:10.0pt; font-family:Consolas">PriorityUsageResetPeriod=QUARTERLY</span></p>
<p class="x_x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:10.0pt; font-family:Consolas">PriorityFavorSmall=NO</span></p>
<p class="x_x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:10.0pt; font-family:Consolas">PriorityMaxAge=7-0</span></p>
<p class="x_x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:10.0pt; font-family:Consolas">PriorityWeightAge=10000</span></p>
<p class="x_x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:10.0pt; font-family:Consolas">PriorityWeightFairshare=1000000</span></p>
<p class="x_x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:10.0pt; font-family:Consolas">PriorityWeightJobSize=1000</span></p>
<p class="x_x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:10.0pt; font-family:Consolas">PriorityWeightPartition=1000</span></p>
<p class="x_x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:10.0pt; font-family:Consolas">PriorityWeightQOS=0</span></p>
<p class="x_x_MsoNormal"> </p>
<p class="x_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_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_x_MsoNormal"> </p>
<p class="x_x_MsoNormal">Thanks.</p>
</div>
</blockquote>
</blockquote>
</div>
</blockquote>
</div>
</body>
</html>