From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 1/1] memcg/stress: Lower swap memory use
Date: Tue, 21 Jan 2020 15:14:54 +0100 [thread overview]
Message-ID: <20200121141454.GA6337@rei> (raw)
In-Reply-To: <20200117063600.3451-1-pvorel@suse.cz>
Hi!
> Fix freeze on systems, where where swap size is more
> or less equal to a system RAM.
>
> Fixes: #632
>
> Reported-by: Zuo Liu <lz843723683@gmail.com>
> Tested-by: Zuo Liu <lz843723683@gmail.com>
> Suggested-by: Cyril Hrubis <chrubis@suse.cz>
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
> ---
> testcases/kernel/controllers/memcg/stress/memcg_stress_test.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/testcases/kernel/controllers/memcg/stress/memcg_stress_test.sh b/testcases/kernel/controllers/memcg/stress/memcg_stress_test.sh
> index ad8605e16..a48d21e6e 100755
> --- a/testcases/kernel/controllers/memcg/stress/memcg_stress_test.sh
> +++ b/testcases/kernel/controllers/memcg/stress/memcg_stress_test.sh
> @@ -33,7 +33,7 @@ setup()
> local swap_free=`cat /proc/meminfo | grep SwapFree | awk '{ print $2 }'`
> local pgsize=`tst_getconf PAGESIZE`
>
> - MEM=$(( $mem_free + $swap_free / 2 ))
> + MEM=$(( $mem_free + $swap_free / 1O ))
I wonder if we can be a bit smarter about this. Maybe we should add some
percentage of RAM if enough swap is present.
--
Cyril Hrubis
chrubis@suse.cz
next prev parent reply other threads:[~2020-01-21 14:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-17 6:36 [LTP] [PATCH 1/1] memcg/stress: Lower swap memory use Petr Vorel
2020-01-19 8:33 ` Li Wang
2020-01-21 14:14 ` Cyril Hrubis [this message]
2020-03-04 11:48 ` Petr Vorel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200121141454.GA6337@rei \
--to=chrubis@suse.cz \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.