[LTP] [PATCH 1/2] numa: fix numa test error with non-continuous nodes

Li Wang liwang@redhat.com
Wed May 8 07:50:09 CEST 2019


On Wed, May 8, 2019 at 1:23 PM Li Wang <liwang@redhat.com> wrote:

> Numa test failed on such machine which has non-continuous numa nodes,
> it gets wrong data because of the below syntax rule is not applicable
> to that special situation.
>   ` numastat -p $pid |awk '/^Total/ {print $'$((node+2))'}'
> In this patch, we fix that to print the last column replacing by '$NF'
> in awk.
>   ` numastat -p $pid |awk '/^Total/ {print $NF}'
>

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.

-- 
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20190508/2e0c774c/attachment.html>


More information about the ltp mailing list