[LTP] [PATCH] network/stress: Reduce the default number of cycles for various tests
Alexey Kodanev
alexey.kodanev@oracle.com
Tue Jul 18 15:28:43 CEST 2017
On 06/26/2017 11:29 AM, Petr Vorel wrote:
> Reducing value to one fifth resp. one tenth should be enough even for
> stress testing.
>
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
> ---
> testcases/lib/test_net.sh | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/testcases/lib/test_net.sh b/testcases/lib/test_net.sh
> index 651f5c895..0b31ce409 100644
> --- a/testcases/lib/test_net.sh
> +++ b/testcases/lib/test_net.sh
> @@ -558,19 +558,19 @@ export FTP_UPLOAD_URLDIR="${FTP_UPLOAD_URLDIR:-pub}"
>
> # network/stress tests require additional parameters
> export NS_DURATION="${NS_DURATION:-3600}"
What about changing NS_DURATION as well? If I remember correctly
it's one hour for each test-case in 'Application' & 'broken_ip'
groups.
Thanks,
Alexey
> -export NS_TIMES="${NS_TIMES:-10000}"
> +export NS_TIMES="${NS_TIMES:-2000}"
> export CONNECTION_TOTAL="${CONNECTION_TOTAL:-4000}"
> -export IP_TOTAL="${IP_TOTAL:-10000}"
> +export IP_TOTAL="${IP_TOTAL:-2000}"
> export IP_TOTAL_FOR_TCPIP="${IP_TOTAL_FOR_TCPIP:-100}"
> -export ROUTE_TOTAL="${ROUTE_TOTAL:-10000}"
> +export ROUTE_TOTAL="${ROUTE_TOTAL:-2000}"
> export MTU_CHANGE_TIMES="${MTU_CHANGE_TIMES:-1000}"
> -export IF_UPDOWN_TIMES="${IF_UPDOWN_TIMES:-10000}"
> +export IF_UPDOWN_TIMES="${IF_UPDOWN_TIMES:-2000}"
> export DOWNLOAD_BIGFILESIZE="${DOWNLOAD_BIGFILESIZE:-2147483647}"
> export DOWNLOAD_REGFILESIZE="${DOWNLOAD_REGFILESIZE:-1048576}"
> export UPLOAD_BIGFILESIZE="${UPLOAD_BIGFILESIZE:-2147483647}"
> export UPLOAD_REGFILESIZE="${UPLOAD_REGFILESIZE:-1024}"
> export MCASTNUM_NORMAL="${MCASTNUM_NORMAL:-20}"
> -export MCASTNUM_HEAVY="${MCASTNUM_HEAVY:-40000}"
> +export MCASTNUM_HEAVY="${MCASTNUM_HEAVY:-4000}"
>
> [ -n "$TST_USE_NETNS" -a "$TST_INIT_NETNS" != "no" ] && init_ltp_netspace
>
More information about the ltp
mailing list