Skip to contentSkip to conversation

syscalls/madvise09: Workaround failures on newer kernels

PATCH New Cyril Hrubis 1 participant 1 message Sep 13, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 syscalls/madvise09: Workaround failures on newer kernels

This is a short term workaround that bumps the number of allocated pages to 128 because which is needed since kernel commit:

1a61ab (mm: memcontrol: replace zone summing with lruvec_page_state())

After a discussion with kernel developers we concluded that in order to avoid depending on kernel internal implementation details we have to allocate a dozen of megabytes instead, but that would require a more complex changes to the test. As we are getting close to a LTP release we decided to put this workaround in first, then we can rewrite the test after the release.

---
 testcases/kernel/syscalls/madvise/madvise09.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/kernel/syscalls/madvise/madvise09.c +1 -1
index 01075f641..cd556920c 100644
@@ -57,7 +57,7 @@ static int sleep_between_faults;
 
 static int swap_accounting_enabled;
 
-#define PAGES 32
+#define PAGES 128
 #define TOUCHED_PAGE1 0
 #define TOUCHED_PAGE2 10
 
Signature · 1 line
2.21.0