* [LTP] [PATCH] memcg_stress_test.sh: Reduce runtime
@ 2017-04-12 17:33 Steve Ellcey
2017-04-27 13:40 ` Cyril Hrubis
0 siblings, 1 reply; 2+ messages in thread
From: Steve Ellcey @ 2017-04-12 17:33 UTC (permalink / raw)
To: ltp
Change the RUN_TIME from 60 minutes to 15 minutes so the LTP suite does not
take so long. stress_test is run twice so the overall test still takes 30
minutes (but not 2 hours). Reduce the interval between memory touches from
10 seconds to 5 seconds so we still get a reasonable amount of activity during
the test.
Signed-off-by: Steve Ellcey <sellcey@caviumnetworks.com>
---
testcases/kernel/controllers/memcg/stress/memcg_stress_test.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/testcases/kernel/controllers/memcg/stress/memcg_stress_test.sh b/testcases/kernel/controllers/memcg/stress/memcg_stress_test.sh
index dc610f1..af1a708 100755
--- a/testcases/kernel/controllers/memcg/stress/memcg_stress_test.sh
+++ b/testcases/kernel/controllers/memcg/stress/memcg_stress_test.sh
@@ -37,7 +37,7 @@ if [ "x$(grep -w memory /proc/cgroups | cut -f4)" != "x1" ]; then
exit 0
fi
-RUN_TIME=$(( 60 * 60 ))
+RUN_TIME=$(( 15 * 60 ))
cleanup()
{
@@ -96,14 +96,14 @@ run_stress()
testcase_1()
{
- run_stress 150 $(( ($mem-150) / 150 )) 10 $RUN_TIME
+ run_stress 150 $(( ($mem-150) / 150 )) 5 $RUN_TIME
tst_resm TPASS "stress test 1 passed"
}
testcase_2()
{
- run_stress 1 $mem 10 $RUN_TIME
+ run_stress 1 $mem 5 $RUN_TIME
tst_resm TPASS "stress test 2 passed"
}
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [LTP] [PATCH] memcg_stress_test.sh: Reduce runtime
2017-04-12 17:33 [LTP] [PATCH] memcg_stress_test.sh: Reduce runtime Steve Ellcey
@ 2017-04-27 13:40 ` Cyril Hrubis
0 siblings, 0 replies; 2+ messages in thread
From: Cyril Hrubis @ 2017-04-27 13:40 UTC (permalink / raw)
To: ltp
Hi!
Pushed, thanks.
--
Cyril Hrubis
chrubis@suse.cz
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-04-27 13:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-12 17:33 [LTP] [PATCH] memcg_stress_test.sh: Reduce runtime Steve Ellcey
2017-04-27 13:40 ` Cyril Hrubis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox