<div dir="auto"><div>Ack.<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 17, 2020, 07:36 Petr Vorel <<a href="mailto:pvorel@suse.cz">pvorel@suse.cz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Fix freeze on systems, where where swap size is more<br>
or less equal to a system RAM.<br>
<br>
Fixes: #632<br>
<br>
Reported-by: Zuo Liu <<a href="mailto:lz843723683@gmail.com" target="_blank" rel="noreferrer">lz843723683@gmail.com</a>><br>
Tested-by: Zuo Liu <<a href="mailto:lz843723683@gmail.com" target="_blank" rel="noreferrer">lz843723683@gmail.com</a>><br>
Suggested-by: Cyril Hrubis <<a href="mailto:chrubis@suse.cz" target="_blank" rel="noreferrer">chrubis@suse.cz</a>><br>
Signed-off-by: Petr Vorel <<a href="mailto:pvorel@suse.cz" target="_blank" rel="noreferrer">pvorel@suse.cz</a>><br>
---<br>
 testcases/kernel/controllers/memcg/stress/memcg_stress_test.sh | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/testcases/kernel/controllers/memcg/stress/memcg_stress_test.sh b/testcases/kernel/controllers/memcg/stress/memcg_stress_test.sh<br>
index ad8605e16..a48d21e6e 100755<br>
--- a/testcases/kernel/controllers/memcg/stress/memcg_stress_test.sh<br>
+++ b/testcases/kernel/controllers/memcg/stress/memcg_stress_test.sh<br>
@@ -33,7 +33,7 @@ setup()<br>
        local swap_free=`cat /proc/meminfo | grep SwapFree | awk '{ print $2 }'`<br>
        local pgsize=`tst_getconf PAGESIZE`<br>
<br>
-       MEM=$(( $mem_free + $swap_free / 2 ))<br>
+       MEM=$(( $mem_free + $swap_free / 1O ))<br>
        MEM=$(( $MEM / 1024 ))<br>
        RUN_TIME=$(( 15 * 60 ))<br>
        [ "$pgsize" = "4096" ] && THREAD_SPARE_MB=1 || THREAD_SPARE_MB=8<br>
-- <br>
2.24.1<br>
<br>
<br>
-- <br>
Mailing list info: <a href="https://lists.linux.it/listinfo/ltp" rel="noreferrer noreferrer" target="_blank">https://lists.linux.it/listinfo/ltp</a><br>
<br>
</blockquote></div></div></div>