<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 7/3/20 8:30 AM, Li Wang wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAEemH2cHWqRQ+bkUCof8mrK7jfy-DsuA9wegmOT8D-h8F1Cu2g@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">
          <div class="gmail_default" style="font-size:small">Hi Petr,
            Harish,</div>
        </div>
        <div><br>
        </div>
        <div>
          <div class="gmail_default" style="font-size:small">Though the
            root cause is from the non-ordered node in a special
            machine, I still think this patch makes sense to numa01,
            because the function get_mem_cur() make code more readable.</div>
          <div class="gmail_default" style="font-size:small"><br>
          </div>
          <div class="gmail_default" style="font-size:small">So I'm
            going to merge both this one and Harish's patch, after doing
            that, I will also follow Cyril's comment to remove
            test8(migrate_pages).</div>
          <div class="gmail_default" style="font-size:small"><br>
          </div>
          <div class="gmail_default" style="font-size:small">Any
            objections? or comments?<br>
            <br>
          </div>
        </div>
      </div>
    </blockquote>
    <font size="-1">Makes sense to me.<br>
      <br>
      Regards,<br>
      Harish</font><br>
    <blockquote type="cite"
cite="mid:CAEemH2cHWqRQ+bkUCof8mrK7jfy-DsuA9wegmOT8D-h8F1Cu2g@mail.gmail.com">
      <div dir="ltr"><br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Thu, Jul 2, 2020 at 7:31
            AM Petr Vorel <<a href="mailto:petr.vorel@gmail.com"
              target="_blank" moz-do-not-send="true">petr.vorel@gmail.com</a>>
            wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex"><span
              class="gmail_default" style="font-size:small">...</span><br>
            +get_mem_cur()<br>
             {<br>
                    local pid=$1<br>
                    local node=$(($2 + 2))<br>
            +       local size=$3<br>
            +       local numstat=$(numastat -p $pid |awk '/^Total/
            {print $'$node'}')<br>
            <br>
            -       echo $(numastat -p $pid |awk '/^Total/ {print
            $'$node'}')<br>
            +       if [ -z "$numstat" ]; then<br>
            +               echo 0<br>
            +               return<br>
          </blockquote>
          <div><br>
            <br>
            <br>
          </div>
          <div class="gmail_default" style="font-size:small">Maybe we'd
            better do TBROK from here if numstat doesn't work well?</div>
        </div>
        <div><br>
        </div>
        -- <br>
        <div dir="ltr">
          <div dir="ltr">
            <div>Regards,<br>
            </div>
            <div>Li Wang<br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
  </body>
</html>