All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] Reduce ksm06 memory footprint
@ 2021-01-19 13:40 Martin Doucha
  2021-01-19 15:23 ` Cyril Hrubis
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Doucha @ 2021-01-19 13:40 UTC (permalink / raw)
  To: ltp

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.

Signed-off-by: Martin Doucha <mdoucha@suse.cz>
---
 runtest/mm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/runtest/mm b/runtest/mm
index 481d39691..eeebd878e 100644
--- a/runtest/mm
+++ b/runtest/mm
@@ -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
 
-- 
2.29.2


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

* [LTP] [PATCH] Reduce ksm06 memory footprint
  2021-01-19 13:40 [LTP] [PATCH] Reduce ksm06 memory footprint Martin Doucha
@ 2021-01-19 15:23 ` Cyril Hrubis
  0 siblings, 0 replies; 2+ messages in thread
From: Cyril Hrubis @ 2021-01-19 15:23 UTC (permalink / raw)
  To: ltp

Hi!
> -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.

-- 
Cyril Hrubis
chrubis@suse.cz

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

end of thread, other threads:[~2021-01-19 15:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-19 13:40 [LTP] [PATCH] Reduce ksm06 memory footprint Martin Doucha
2021-01-19 15:23 ` Cyril Hrubis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.