<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?</div></div><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">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></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>