Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame^] | 1 | From cc4a27c235d0cf69a55cd8829b232566b0223333 Mon Sep 17 00:00:00 2001 |
| 2 | From: Petr Vorel <pvorel@suse.cz> |
| 3 | Date: Wed, 13 Jul 2022 09:46:14 +0200 |
| 4 | Subject: [PATCH] netstress: Restore runtime to 5m |
| 5 | |
| 6 | netstress requires the previous default timeout 5m due longer timeout |
| 7 | for higher message sizes (e.g. 65535): |
| 8 | |
| 9 | ./sctp_ipsec.sh -6 -p comp -m transport -s 100:1000:65535:R65535 |
| 10 | sctp_ipsec 1 TPASS: netstress passed, median time 5 ms, data: 5 9 6 5 5 |
| 11 | sctp_ipsec 2 TINFO: run server 'netstress -T sctp -S fd00:1:1:1::1 -D ltp_ns_veth1 -R 500000 -B /tmp/LTP_sctp_ipsec.ARZbGkvjPa' |
| 12 | sctp_ipsec 2 TINFO: run client 'netstress -l -T sctp -H fd00:1:1:1::1 -n 1000 -N 1000 -S fd00:1:1:1::2 -D ltp_ns_veth2 -a 2 -r 100 -d /tmp/LTP_sctp_ipsec.ARZbGkvjPa/tst_netload.res' 5 times |
| 13 | sctp_ipsec 2 TPASS: netstress passed, median time 6 ms, data: 8 6 6 5 6 |
| 14 | sctp_ipsec 3 TINFO: run server 'netstress -T sctp -S fd00:1:1:1::1 -D ltp_ns_veth1 -R 500000 -B /tmp/LTP_sctp_ipsec.ARZbGkvjPa' |
| 15 | sctp_ipsec 3 TINFO: run client 'netstress -l -T sctp -H fd00:1:1:1::1 -n 65535 -N 65535 -S fd00:1:1:1::2 -D ltp_ns_veth2 -a 2 -r 100 -d /tmp/LTP_sctp_ipsec.ARZbGkvjPa/tst_netload.res' 5 times |
| 16 | sctp_ipsec 3 TWARN: netstress failed, ret: 2 |
| 17 | tst_test.c:1526: TINFO: Timeout per run is 0h 00m 30s |
| 18 | netstress.c:896: TINFO: IP_BIND_ADDRESS_NO_PORT is used |
| 19 | netstress.c:898: TINFO: connection: addr 'fd00:1:1:1::1', port '55097' |
| 20 | netstress.c:900: TINFO: client max req: 100 |
| 21 | netstress.c:901: TINFO: clients num: 2 |
| 22 | netstress.c:906: TINFO: client msg size: 65535 |
| 23 | netstress.c:907: TINFO: server msg size: 65535 |
| 24 | netstress.c:979: TINFO: SCTP client |
| 25 | netstress.c:475: TINFO: Running the test over IPv6 |
| 26 | Test timeouted, sending SIGKILL! |
| 27 | tst_test.c:1577: TINFO: If you are running on slow machine, try exporting LTP_TIMEOUT_MUL > 1 |
| 28 | tst_test.c:1579: TBROK: Test killed! (timeout?) |
| 29 | |
| 30 | Converting netstress.c to use TST_NO_DEFAULT_MAIN (i.e. implementing main) |
| 31 | would require more changes, because it uses .forks_child, .needs_checkpoints, |
| 32 | cleanup function. |
| 33 | |
| 34 | Signed-off-by: Petr Vorel <pvorel@suse.cz> |
| 35 | Upstream-Status: Backport [cc4a27c235d0cf69a55cd8829b232566b0223333] |
| 36 | --- |
| 37 | testcases/network/netstress/netstress.c | 1 + |
| 38 | 1 file changed, 1 insertion(+) |
| 39 | |
| 40 | diff --git a/testcases/network/netstress/netstress.c b/testcases/network/netstress/netstress.c |
| 41 | index 6c9e83112..7c222531d 100644 |
| 42 | --- a/testcases/network/netstress/netstress.c |
| 43 | +++ b/testcases/network/netstress/netstress.c |
| 44 | @@ -1028,5 +1028,6 @@ static struct tst_test test = { |
| 45 | {"B:", &server_bg, "Run in background, arg is the process directory"}, |
| 46 | {} |
| 47 | }, |
| 48 | + .max_runtime = 300, |
| 49 | .needs_checkpoints = 1, |
| 50 | }; |
| 51 | -- |
| 52 | 2.37.1 |
| 53 | |