[LTP] [PATCH 2/2] mm/lib: increase sleep time in ksm scanning

Caspar Zhang
2012-07-09T09:58:18Z

[-- Attachment #1: Type: text/plain, Size: 377 bytes --]

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 <caspar@casparzhang.com>
---
testcases/kernel/mem/lib/mem.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0002-mm-lib-increase-sleep-time-in-ksm-scanning.patch --]
[-- Type: text/x-patch; name="0002-mm-lib-increase-sleep-time-in-ksm-scanning.patch", Size: 374 bytes --]

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);

[-- Attachment #3: Type: text/plain, Size: 395 bytes --]

------------------------------------------------------------------------------
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/

[-- Attachment #4: Type: text/plain, Size: 155 bytes --]