<div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><img class="gmail-ajT" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 8, 2019 at 1:23 PM Li Wang <<a href="mailto:liwang@redhat.com">liwang@redhat.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">Numa test failed on such machine which has non-continuous numa nodes,<br>
it gets wrong data because of the below syntax rule is not applicable<br>
to that special situation.<br>
` numastat -p $pid |awk '/^Total/ {print $'$((node+2))'}'<br>
In this patch, we fix that to print the last column replacing by '$NF'<br>
in awk.<br>
` numastat -p $pid |awk '/^Total/ {print $NF}'<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">Bah, I made a mistake on the node memory counting, it should be the asgd node but not total, I will fix it in PATCH v2. Plz ignore this one. Sorry about that.</div><div class="gmail_default" style="font-size:small"><br></div></div></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div></div>