public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] network/busy_poll: make test results more stable
@ 2016-06-27 16:30 Alexey Kodanev
  2016-06-29 11:01 ` Jan Stancek
  0 siblings, 1 reply; 3+ messages in thread
From: Alexey Kodanev @ 2016-06-27 16:30 UTC (permalink / raw)
  To: ltp

Changing tcp network load from 'connect/request/response/close'
to 'request/response'. Results will be more stable as we aren't
closing/establishing tcp connection after 3 requests from client.

There're other tests that do such stress testing so such test-case
won't be removed.

It'll also decrease test time by several times.

Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
---
 testcases/network/busy_poll/busy_poll01.sh |    4 +++-
 testcases/network/busy_poll/busy_poll02.sh |    6 ++++++
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/testcases/network/busy_poll/busy_poll01.sh b/testcases/network/busy_poll/busy_poll01.sh
index ecb34d7..ffa344b 100755
--- a/testcases/network/busy_poll/busy_poll01.sh
+++ b/testcases/network/busy_poll/busy_poll01.sh
@@ -21,9 +21,11 @@
 TST_TOTAL=1
 TCID="busy_poll01"
 
+# tst_netload() parameters
 clients_num=2
 client_requests=500000
-max_requests=3
+# num of requests after server closing connection
+max_requests=500000
 
 . test_net.sh
 
diff --git a/testcases/network/busy_poll/busy_poll02.sh b/testcases/network/busy_poll/busy_poll02.sh
index d4dd052..18dead5 100755
--- a/testcases/network/busy_poll/busy_poll02.sh
+++ b/testcases/network/busy_poll/busy_poll02.sh
@@ -21,6 +21,12 @@
 TST_TOTAL=1
 TCID="busy_poll02"
 
+# tst_netload() parameters
+clients_num=2
+client_requests=500000
+# num of requests after server closing connection
+max_requests=500000
+
 . test_net.sh
 
 cleanup()
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [LTP] [PATCH] network/busy_poll: make test results more stable
  2016-06-27 16:30 [LTP] [PATCH] network/busy_poll: make test results more stable Alexey Kodanev
@ 2016-06-29 11:01 ` Jan Stancek
  2016-06-29 13:47   ` Alexey Kodanev
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Stancek @ 2016-06-29 11:01 UTC (permalink / raw)
  To: ltp





----- Original Message -----
> From: "Alexey Kodanev" <alexey.kodanev@oracle.com>
> To: ltp@lists.linux.it
> Cc: "vasily isaenko" <vasily.isaenko@oracle.com>
> Sent: Monday, 27 June, 2016 6:30:57 PM
> Subject: [LTP] [PATCH] network/busy_poll: make test results more stable
> 
> Changing tcp network load from 'connect/request/response/close'
> to 'request/response'. Results will be more stable as we aren't
> closing/establishing tcp connection after 3 requests from client.
> 
> There're other tests that do such stress testing so such test-case
> won't be removed.
> 
> It'll also decrease test time by several times.
> 
> Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>

ACK.

As advertised my KVM guest running 4.5.0 shows more significant
difference between busy poll 0/50:

Without patch:
busy_poll01 1 TINFO : set low latency busy poll to 50
busy_poll01 1 TINFO : run tcp_fastopen with 'localhost', port '37532'
busy_poll01 1 TINFO : time spent is '25039' ms
busy_poll01 1 TINFO : set low latency busy poll to 0
busy_poll01 1 TINFO : run tcp_fastopen with 'localhost', port '61133'
busy_poll01 1 TINFO : time spent is '35203' ms
busy_poll01 1 TPASS : busy poll increased performance by '29' %

real    1m2.866s
user    0m1.542s
sys     1m5.937s

With patch:
busy_poll01 1 TINFO : set low latency busy poll to 50
busy_poll01 1 TINFO : run tcp_fastopen with 'localhost', port '30109'
busy_poll01 1 TINFO : time spent is '3874' ms
busy_poll01 1 TINFO : set low latency busy poll to 0
busy_poll01 1 TINFO : run tcp_fastopen with 'localhost', port '10440'
busy_poll01 1 TINFO : time spent is '12561' ms
busy_poll01 1 TPASS : busy poll increased performance by '70' %

real    0m19.006s
user    0m0.749s
sys     0m16.408s

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [LTP] [PATCH] network/busy_poll: make test results more stable
  2016-06-29 11:01 ` Jan Stancek
@ 2016-06-29 13:47   ` Alexey Kodanev
  0 siblings, 0 replies; 3+ messages in thread
From: Alexey Kodanev @ 2016-06-29 13:47 UTC (permalink / raw)
  To: ltp

Hi,
On 06/29/2016 02:01 PM, Jan Stancek wrote:
> ...
> With patch:
> busy_poll01 1 TINFO : set low latency busy poll to 50
> busy_poll01 1 TINFO : run tcp_fastopen with 'localhost', port '30109'
> busy_poll01 1 TINFO : time spent is '3874' ms
> busy_poll01 1 TINFO : set low latency busy poll to 0
> busy_poll01 1 TINFO : run tcp_fastopen with 'localhost', port '10440'
> busy_poll01 1 TINFO : time spent is '12561' ms
> busy_poll01 1 TPASS : busy poll increased performance by '70' %
>
> real    0m19.006s
> user    0m0.749s
> sys     0m16.408s

Thank you for verifying it,  patch applied.

Best regards,
Alexey

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-06-29 13:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-27 16:30 [LTP] [PATCH] network/busy_poll: make test results more stable Alexey Kodanev
2016-06-29 11:01 ` Jan Stancek
2016-06-29 13:47   ` Alexey Kodanev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox