<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Ashlee,<br>
    <br>
    the min_mem_per_cpu parameter is in fact not nil. If it is not set
    by the user, the value is 9223372036854775806<br>
    <br>
    Best<br>
    Marcus<br>
    <br>
    <div class="moz-cite-prefix">On 01/05/2018 08:58 AM, Yinping Ma
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAMLrnW8Y5dxSvjnJ=RmHZAw5JK5kNE3ofX8cAqFcKvP7KFVmKA@mail.gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <div dir="ltr">hello, shenglong wang
        <div><br>
        </div>
        <div>Thanks for your relpy, I tried this before.</div>
        <div><br>
        </div>
        <div>I write  this in job_submit.lua:</div>
        <div><br>
        </div>
        <div>---------------------------------------------------------------------------------------------</div>
        <div><br>
        </div>
        <div>function slurm_job_submit(job_desc, part_list, submit_uid)<br>
        </div>
        <div>     if job_desc.min_mem_per_cpu ~= nil then</div>
        <div>            return slurm.SUCCESS</div>
        <div>     else</div>
        <div>            slurm.log_user("job_desc.pn_min_memory is not
          nil. job_desc.min_mem_per_cpu=%s",job_desc.min_mem_per_cpu)</div>
        <div>            return slurm.ERROR</div>
        <div>      end</div>
        <div>end</div>
        <div><br>
        </div>
        <div>----------------------------------------------------------------------------------------------</div>
        <div><br>
        </div>
        <div>It can disable --mem  but can't disable --mem-per-cpu.</div>
        <div><br>
        </div>
        <div>I don't know how to disable --mem-per-cpu, can you give any
          suggestion ?</div>
        <div><br>
        </div>
        <div>all the best,</div>
        <div>Ashlee<br>
          <div>
            <table class="gmail-cf gmail-gJ" style="font-size:14px"
              cellpadding="0">
              <tbody>
                <tr class="gmail-acZ">
                  <td class="gmail-gF gmail-gK" style="width:1432px"><br>
                  </td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2018-01-05 11:04 GMT+08:00 Shenglong
          Wang <span dir="ltr"><<a href="mailto:sw77@nyu.edu"
              target="_blank" moz-do-not-send="true">sw77@nyu.edu</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div
              style="word-wrap:break-word;line-break:after-white-space">
              <div><br>
              </div>
              You can try to use SLURM LUA plugins to check and reject
              the submissions.
              <div><br>
              </div>
              <div>Best,</div>
              <div>Shenglong
                <div>
                  <div class="h5"><br>
                    <div><br>
                      <blockquote type="cite">
                        <div>On Jan 4, 2018, at 9:58 PM, 马银萍 <<a
                            href="mailto:mayinpingpku@gmail.com"
                            target="_blank" moz-do-not-send="true">mayinpingpku@gmail.com</a>>
                          wrote:</div>
                        <br
                          class="m_-614599685320787818Apple-interchange-newline">
                        <div>
                          <div dir="ltr">
                            <div><span style="font-size:14px">hello, </span><br>
                            </div>
                            <div><span style="font-size:14px"><br>
                              </span></div>
                            <div><span
                                style="color:rgb(80,0,80);font-size:14px">I
                                want to stop users  to use --mem and
                                --mem-per-cpu </span><font
                                color="#500050"><span
                                  style="font-size:14px">in srun,salloc
                                  and  sbatch</span></font><span
                                style="color:rgb(80,0,80);font-size:14px">,
                                but I can't figure out how to do, did I
                                need to modify slurm source code to
                                realisze this?</span></div>
                            <div><span
                                style="color:rgb(80,0,80);font-size:14px"><br>
                              </span></div>
                            <div>
                              <div style="font-size:14px">Thanks for any
                                insight!<br>
                              </div>
                              <div style="font-size:14px"><br>
                              </div>
                              <div style="font-size:14px">best.</div>
                              <div style="font-size:14px">Ashlee</div>
                            </div>
                          </div>
                        </div>
                      </blockquote>
                    </div>
                    <br>
                  </div>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Marcus Wagner, Dipl.-Inf.

IT Center
Abteilung: Systeme und Betrieb
RWTH Aachen University
Seffenter Weg 23
52074 Aachen
Tel: +49 241 80-24383
Fax: +49 241 80-624383
<a class="moz-txt-link-abbreviated" href="mailto:wagner@itc.rwth-aachen.de">wagner@itc.rwth-aachen.de</a>
<a class="moz-txt-link-abbreviated" href="http://www.itc.rwth-aachen.de">www.itc.rwth-aachen.de</a>
</pre>
  </body>
</html>