<div dir="ltr"><div class="gmail_default" style="font-size:small">ping~</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 22, 2019 at 3:11 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">A new BROK was occurred on a special numa system which node 1 just has<br>
memory but no cpu. This special configuration makes numa system detection<br>
is_numa(NULL, NH_MEMS, 2) get pass in setup() but test failed in the mem.c<br>
library funcion test_ksm_merge_across_nodes becuase the NH_CPUS is to requre<br>
testing node should have cpu.<br>
<br>
However, I have gone though all of our LTP ksm tests and confirmed that there<br>
is no necessary to do cpu check for it, actully only ksm06 invoke that funcion.<br>
In this patch I just remove the NH_CPUS flag to get ksm06 test pass.<br>
<br>
  # numactl -H<br>
  available: 2 nodes (0-1)<br>
  node 0 cpus: 0 1 2 3 4 5 6 7<br>
  node 0 size: 31431 MB<br>
  node 0 free: 26355 MB<br>
  node 1 cpus:<br>
  node 1 size: 255 MB<br>
  node 1 free: 213 MB<br>
  node distances:<br>
  node   0   1<br>
    0:  10  40<br>
    1:  40  10<br>
<br>
  # ./ksm06<br>
  tst_test.c:1085: INFO: Timeout per run is 0h 10m 00s<br>
  mem.c:539: INFO: need NUMA system support<br>
  tst_test.c:920: BROK: Test haven't reported results!<br>
<br>
Signed-off-by: Li Wang <<a href="mailto:liwang@redhat.com" target="_blank">liwang@redhat.com</a>><br>
---<br>
 testcases/kernel/mem/lib/mem.c | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/testcases/kernel/mem/lib/mem.c b/testcases/kernel/mem/lib/mem.c<br>
index ec1792004..a0c1b9b00 100644<br>
--- a/testcases/kernel/mem/lib/mem.c<br>
+++ b/testcases/kernel/mem/lib/mem.c<br>
@@ -532,7 +532,7 @@ void test_ksm_merge_across_nodes(unsigned long nr_pages)<br>
        unsigned long nmask[MAXNODES / BITS_PER_LONG] = { 0 };<br>
 #endif<br>
<br>
-       ret = get_allowed_nodes_arr(NH_MEMS|NH_CPUS, &num_nodes, &nodes);<br>
+       ret = get_allowed_nodes_arr(NH_MEMS, &num_nodes, &nodes);<br>
        if (ret != 0)<br>
                tst_brk(TBROK|TERRNO, "get_allowed_nodes_arr");<br>
        if (num_nodes < 2) {<br>
-- <br>
2.20.1<br>
<br>
<br>
-- <br>
Mailing list info: <a href="https://lists.linux.it/listinfo/ltp" rel="noreferrer" target="_blank">https://lists.linux.it/listinfo/ltp</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div>