public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] kernel/numa: sleep 2s in test01 for waiting numastat updating
@ 2016-05-30  9:56 Dong ZHu
  2016-05-30 11:55 ` Cyril Hrubis
  0 siblings, 1 reply; 5+ messages in thread
From: Dong ZHu @ 2016-05-30  9:56 UTC (permalink / raw)
  To: ltp

From 98db5da4ec362e4f8e64b119a8d32245ca06bf36 Mon Sep 17 00:00:00 2001
        From: Dong Zhu <bluezhudong@gmail.com>
Date: Mon, 30 May 2016 17:40:05 +0800
Subject: [PATCH] kernel/numa: sleep 2s in test01 for waiting numastat updating

Without this patch always get the below error with kernel 4.6.0:
"ltpapicmd.c:193: Test #1: NUMA hit and localnode increase in node0 is
less than expected"

numastat's "local_node" might take some to update even though we malloc
the local memory for each node.

So this patch in targets to sleep for 2 seconds until "local_node" get
updated.

Signed-off-by: Dong Zhu <bluezhudong@gmail.com>
---
 testcases/kernel/numa/numa01.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/testcases/kernel/numa/numa01.sh b/testcases/kernel/numa/numa01.sh
index 9c5f49a..d3c7606 100755
--- a/testcases/kernel/numa/numa01.sh
+++ b/testcases/kernel/numa/numa01.sh
@@ -247,6 +247,7 @@ test01()
         extract_numastat local_node $local_node $col || return 1
         Prev_value=$RC
         numactl --cpunodebind=$node --membind=$node support_numa $ALLOC_1MB
+       sleep 2s
         numastat > $LTPTMP/numalog
         extract_numastat local_node $local_node $col || return 1
         Curr_value=$RC
-- 
2.1.0


-- 
Best Regards,
Dong Zhu

My Site: http://bluezd.info

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-07-05  1:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-30  9:56 [LTP] [PATCH] kernel/numa: sleep 2s in test01 for waiting numastat updating Dong ZHu
2016-05-30 11:55 ` Cyril Hrubis
2016-05-31  1:08   ` Dong ZHu
2016-05-31 16:45     ` Cyril Hrubis
2016-07-05  1:22       ` Han Pingtian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox