for some systems under pressure, we've observed that sleeping 5 seconds
is not sufficient for completing ksm scanning, to fix this, we should
give ksmd more time to scan the mergable pages by increasing sleeping
time to 10s.

Signed-off-by: Caspar Zhang <cas...@casparzhang.com>
---
 testcases/kernel/mem/lib/mem.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/testcases/kernel/mem/lib/mem.c b/testcases/kernel/mem/lib/mem.c
index 6283f25..bb56e36 100644
--- a/testcases/kernel/mem/lib/mem.c
+++ b/testcases/kernel/mem/lib/mem.c
@@ -154,7 +154,7 @@ static void _wait_ksmd_done(void)
 	int changing = 1, count = 0;
 
 	while (changing) {
-		sleep(5);
+		sleep(10);
 		count++;
 
 		read_file(PATH_KSM "pages_shared", buf);
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to