<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    <p>Yup, our doc is for the classic fairshare not for fairtree.</p>
    <p>Thanks for the kudos on the doc by the way.  We are glad it is
      useful.<br>
    </p>
    <p>-Paul Edmon-<br>
    </p>
    <div class="moz-cite-prefix">On 12/2/2020 12:45 PM, Ryan Cox wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:3d9b0c40-d6f6-ce6b-8606-026e50e8d0e0@byu.edu">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      That is not for Fair Tree, which is what Micheal asked about.<br>
      <br>
      Ryan<br>
      <br>
      <div class="moz-cite-prefix">On 12/2/20 10:32 AM, Renfro, Michael
        wrote:<br>
      </div>
      <blockquote type="cite"
cite="mid:BN7PR07MB424162E02E16422FD14FC41BA2F30@BN7PR07MB4241.namprd07.prod.outlook.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:"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:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}</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">Yesterday, I posted <a
href="https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.rc.fas.harvard.edu%2Fkb%2Ffairshare%2F&data=04%7C01%7Crenfro%40tntech.edu%7Cc23f89dcb97743ee5eda08d8960679ed%7C66fecaf83dc04d2cb8b8eff0ddea46f0%7C1%7C1%7C637424301864169250%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=%2FnB4ivZeDNrVZiaeupFnAj86oQLOhMu1%2FK6YiuBxTB8%3D&reserved=0"
              title="Original URL:
              https://docs.rc.fas.harvard.edu/kb/fairshare/ Click to
              follow link." moz-do-not-send="true"> <span
                style="color:#0563C1">https://docs.rc.fas.harvard.edu/kb/fairshare/</span></a><span
              class="apple-converted-space"><span style="color:black"> </span></span>in
            response to a similar question. If you want the simplest
            general explanation for FairShare values, it's that they
            range from 0.0 to 1.0, values above 0.5 indicate that
            account or user has used less than their share of the
            resource, and values below 0.5 indicate that that account or
            user has used more than their share of the resource.<o:p></o:p></p>
          <p class="MsoNormal"><o:p> </o:p></p>
          <p class="MsoNormal">Since all your users have the same
            RawShares value and are entitled to the same share of the
            resource, you can see that bdehaven has the most RawUsage
            and the lowest FairShare value, followed by ajoel and xtsao
            with almost identical RawUsage and FairShare, and finally
            ahantau with very little usage and the highest FairShare
            value.<o:p></o:p></p>
          <p class="MsoNormal"><o:p> </o:p></p>
          <p class="MsoNormal">We use FairShare here as the dominant
            factor in priorities for queued jobs: if you're a light
            user, we bump up your priority over heavier users, and your
            job starts quicker than those for heavier users, assuming
            all other job attributes are equal.<o:p></o:p></p>
          <p class="MsoNormal"><o:p> </o:p></p>
          <p class="MsoNormal">All these values are relative: in our
            setup, we'd bump ahantau's pending jobs ahead of the others,
            and put bdehaven's at the end. But if root needed to run a
            job outside the sray account, they'd get an enormous bump
            ahead since the sray account has used far more than its fair
            share of the resource.<o:p></o:p></p>
          <p class="MsoNormal"><o:p> </o:p></p>
          <div style="border:none;border-top:solid #B5C4DF
            1.0pt;padding:3.0pt 0in 0in 0in">
            <p class="MsoNormal" style="margin-bottom:12.0pt"><b><span
                  style="font-size:12.0pt;color:black">From: </span></b><span
                style="font-size:12.0pt;color:black">slurm-users <a
                  class="moz-txt-link-rfc2396E"
                  href="mailto:slurm-users-bounces@lists.schedmd.com"
                  moz-do-not-send="true"><slurm-users-bounces@lists.schedmd.com></a><br>
                <b>Date: </b>Wednesday, December 2, 2020 at 11:23 AM<br>
                <b>To: </b><a class="moz-txt-link-abbreviated"
                  href="mailto:slurm-users@lists.schedmd.com"
                  moz-do-not-send="true">slurm-users@lists.schedmd.com</a>
                <a class="moz-txt-link-rfc2396E"
                  href="mailto:slurm-users@lists.schedmd.com"
                  moz-do-not-send="true"><slurm-users@lists.schedmd.com></a><br>
                <b>Subject: </b>Re: [slurm-users] FairShare<o:p></o:p></span></p>
          </div>
          <p style="text-align:center;background:white" align="center"><b><span
                style="font-size:12.0pt;color:red;background:white">External
                Email Warning</span></b><o:p></o:p></p>
          <p
style="mso-margin-top-alt:0in;margin-right:12.0pt;margin-bottom:0in;margin-left:12.0pt;margin-bottom:.0001pt;text-align:center;background:white"
            align="center"> <b><span style="font-size:12.0pt;color:red">This
                email originated from outside the university. Please use
                caution when opening attachments, clicking links, or
                responding to requests.</span></b><o:p></o:p></p>
          <div class="MsoNormal" style="text-align:center"
            align="center">
            <hr width="100%" size="0" align="center"> </div>
          <div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:12.0pt;color:black">I've read the
                  manual and I re-read the other link. What they boil
                  down to is Fair Share is calculated based on a
                  recondite "rooted plane tree", which I do not have the
                  background in discrete math to understand.<o:p></o:p></span></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
            </div>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:12.0pt;color:black">I'm hoping
                  someone can explain it so my little kernel can
                  understand.<o:p></o:p></span></p>
            </div>
            <div class="MsoNormal" style="text-align:center"
              align="center">
              <hr width="100%" size="0" align="center"> </div>
            <div id="divRplyFwdMsg">
              <p class="MsoNormal"><b><span style="color:black">From:</span></b><span
                  style="color:black"> slurm-users <a
                    class="moz-txt-link-rfc2396E"
                    href="mailto:slurm-users-bounces@lists.schedmd.com"
                    moz-do-not-send="true"><slurm-users-bounces@lists.schedmd.com></a>
                  on behalf of Micheal Krombopulous <a
                    class="moz-txt-link-rfc2396E"
                    href="mailto:MichealKrombopulous@outlook.com"
                    moz-do-not-send="true"><MichealKrombopulous@outlook.com></a><br>
                  <b>Sent:</b> Wednesday, December 2, 2020 9:32 AM<br>
                  <b>To:</b> <a class="moz-txt-link-abbreviated"
                    href="mailto:slurm-users@lists.schedmd.com"
                    moz-do-not-send="true">slurm-users@lists.schedmd.com</a>
                  <a class="moz-txt-link-rfc2396E"
                    href="mailto:slurm-users@lists.schedmd.com"
                    moz-do-not-send="true"><slurm-users@lists.schedmd.com></a><br>
                  <b>Subject:</b> [slurm-users] FairShare</span> <o:p></o:p></p>
              <div>
                <p class="MsoNormal"> <o:p></o:p></p>
              </div>
            </div>
            <div>
              <div>
                <p class="MsoNormal" style="margin-bottom:12.0pt">Can
                  someone tell me how to calculate fairshare (under
                  fairtree)? I can't figure it out. I would have thought
                  it would be the same score for all users in an
                  account. E.g., here is one of my accounts:<br>
                  <br>
                  Account     User  RawShares  NormShares    RawUsage  
                  NormUsage  EffectvUsage    LevelFS  FairShare<br>
                  -------------------- ---------- ---------- -----------
                  ----------- ----------- ------------- ----------
                  ----------<br>
                  root                                             
                   0.000000      611349                  1.000000<br>
                   root                      root             1  
                   0.076923           0    0.000000      0.000000      
                   inf   1.000000<br>
                   sray                                          1  
                   0.076923      30921 0.505582      0.505582   0.152147<br>
                    sray                 phedge            1    0.050000
                            0    0.000000      0.000000        inf  
                  0.181818<br>
                    sray                raab                  1  
                   0.050000           0    0.000000      0.000000      
                   inf   0.181818<br>
                    sray                benequist          1    0.050000
                            0    0.000000      0.000000        inf  
                  0.181818<br>
                    sray                 bosch               1  
                   0.050000           0    0.000000      0.000000      
                   inf   0.181818<br>
                    sray                rjenkins             1  
                   0.050000           0    0.000000      0.000000      
                   inf   0.181818<br>
                    sray                  esmith            1  
                   0.050000           0    0.000000      0.000000
                  1.7226e+07   0.054545<br>
                    sray                  gheinz            1  
                   0.050000           0    0.000000      0.000000
                  1.9074e+14   0.072727<br>
                    sray                  jfitz                 1  
                   0.050000           0    0.000000      0.000000
                  8.0640e+20   0.081818<br>
                    sray                   ajoel              1  
                   0.050000       42449    0.069465      0.137396  
                  0.363913   0.018182<br>
                    sray                  jmay               1  
                   0.050000           0    0.000000      0.000000      
                   inf   0.181818<br>
                    sray                 aferrier            1  
                   0.050000           0    0.000000      0.000000      
                   inf   0.181818<br>
                    sray                bdehaven         1    0.050000  
                     225002    0.367771      0.727420   0.068736  
                  0.009091<br>
                    sray                msmythe          1    0.050000  
                          0    0.000000      0.000000        inf  
                  0.181818<br>
                    sray                 gfink               1  
                   0.050000           0    0.000000      0.000000
                  2.0343e+05   0.045455<br>
                    sray                ahantau           1    0.050000
                           31    0.000051      0.000102 491.737549  
                  0.036364<br>
                    sray                 hmiller            1  
                   0.050000           0    0.000000      0.000000      
                   inf   0.181818<br>
                    sray                   ttinker          1  
                   0.050000           0    0.000000      0.000000
                  1.4798e+13   0.063636<br>
                    sray                wcooper          1    0.050000  
                          0    0.000000      0.000000        inf  
                  0.181818<br>
                    sray                 xtsao              1  
                   0.050000       41734    0.068296      0.135083  
                  0.370143   0.027273<br>
                    sray                   xping            1  
                   0.050000           0    0.000000      0.000000
                  1.9833e+24   0.090909<br>
                  <br>
                  <o:p></o:p></p>
              </div>
            </div>
          </div>
        </div>
      </blockquote>
      <br>
      <pre class="moz-signature" cols="72">-- 
Ryan Cox
Director
Office of Research Computing
Brigham Young University
</pre>
    </blockquote>
  </body>
</html>