Skip to contentSkip to conversation

Reduce ksm06 memory footprint

PATCH New Martin Doucha 2 participants 2 messages Jan 19, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Reduce ksm06 memory footprint

Allocating 10,000 pages requires over 600MB on PPC64. This may result in some pages being pushed to swap even if the test machine has 1GB of RAM per NUMA node. Reduce memory footprint a little to avoid bogus failures.

---
 runtest/mm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
runtest/mm +1 -1
index 481d39691..eeebd878e 100644
@@ -70,7 +70,7 @@ ksm04_1 ksm04 -u 128
 ksm05 ksm05 -I 10
 ksm06 ksm06
 ksm06_1 ksm06 -n 10
-ksm06_2 ksm06 -n 10000
+ksm06_2 ksm06 -n 8000
 
 cpuset01 cpuset01
 
Signature · 1 line
2.29.2
Applied
#1 lore raw

PATCH 1/1 Reduce ksm06 memory footprint

Hi!

runtest/mm ksm04_1 ksm04 -u 128 · line 73

Quoted 2 lines
runtest/mm +1 -1
-ksm06_2 ksm06 -n 10000
+ksm06_2 ksm06 -n 8000

Applied, since this is a sensible fix for the release.

Ideally we should change the test to be able to scale with the available memory later on.

I guess that we can easily add array of free memory per node for the tst_numa.h nodeamp, then we can select subset of nodes based on allocation size or allocating size based on the set of nodes.

Signature · 2 lines
Cyril Hrubis
[email protected]