public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Stefano Brivio <sbrivio@redhat.com>
To: passt-dev@passt.top
Subject: [PATCH 3/5] test/perf: Wait for neper servers in guest to be ready before starting client
Date: Fri, 23 Sep 2022 02:53:25 +0200	[thread overview]
Message-ID: <20220923005327.1000042-4-sbrivio@redhat.com> (raw)
In-Reply-To: <20220923005327.1000042-1-sbrivio@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 2051 bytes --]

Starting tcp_rr, tcp_crr, udp_rr servers in the guest takes a bit
longer than starting the corresponding clients on the host, and we
end up starting clients before servers unless we add a delay there.

Signed-off-by: Stefano Brivio <sbrivio(a)redhat.com>
---
 test/perf/passt_tcp | 4 ++++
 test/perf/passt_udp | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/test/perf/passt_tcp b/test/perf/passt_tcp
index 5ba5450..8b912c4 100644
--- a/test/perf/passt_tcp
+++ b/test/perf/passt_tcp
@@ -167,6 +167,7 @@ lat	-
 lat	-
 lat	-
 guestb	tcp_rr --nolog -P 10001 -C 10011 -6
+sleep	1
 nsout	LAT tcp_rr --nolog -P 10001 -C 10011 -6 -c -H ::1 | sed -n 's/^throughput=\(.*\)/\1/p'
 lat	__LAT__ 200 150
 
@@ -177,6 +178,7 @@ lat	-
 lat	-
 lat	-
 guestb	tcp_crr --nolog -P 10001 -C 10011 -6
+sleep	1
 nsout	LAT tcp_crr --nolog -P 10001 -C 10011 -6 -c -H ::1 | sed -n 's/^throughput=\(.*\)/\1/p'
 lat	__LAT__ 500 350
 
@@ -210,6 +212,7 @@ lat	-
 lat	-
 lat	-
 guestb	tcp_rr --nolog -P 10001 -C 10011 -4
+sleep	1
 nsout	LAT tcp_rr --nolog -P 10001 -C 10011 -4 -c -H 127.0.0.1 | sed -n 's/^throughput=\(.*\)/\1/p'
 lat	__LAT__ 200 150
 
@@ -220,6 +223,7 @@ lat	-
 lat	-
 lat	-
 guestb	tcp_crr --nolog -P 10001 -C 10011 -4
+sleep	1
 nsout	LAT tcp_crr --nolog -P 10001 -C 10011 -4 -c -H 127.0.0.1 | sed -n 's/^throughput=\(.*\)/\1/p'
 lat	__LAT__ 500 300
 
diff --git a/test/perf/passt_udp b/test/perf/passt_udp
index fd2ddc1..3ad630e 100644
--- a/test/perf/passt_udp
+++ b/test/perf/passt_udp
@@ -138,6 +138,7 @@ lat	-
 lat	-
 lat	-
 guestb	udp_rr --nolog -P 10001 -C 10011 -6
+sleep	1
 nsout	LAT udp_rr --nolog -P 10001 -C 10011 -6 -c -H ::1 | sed -n 's/^throughput=\(.*\)/\1/p'
 lat	__LAT__ 200 150
 ns	ip link set dev lo mtu 65535
@@ -171,6 +172,7 @@ lat	-
 lat	-
 lat	-
 guestb	udp_rr --nolog -P 10001 -C 10011 -4
+sleep	1
 nsout	LAT udp_rr --nolog -P 10001 -C 10011 -4 -c -H 127.0.0.1 | sed -n 's/^throughput=\(.*\)/\1/p'
 lat	__LAT__ 200 150
 ns	ip link set dev lo mtu 65535
-- 
@@ -138,6 +138,7 @@ lat	-
 lat	-
 lat	-
 guestb	udp_rr --nolog -P 10001 -C 10011 -6
+sleep	1
 nsout	LAT udp_rr --nolog -P 10001 -C 10011 -6 -c -H ::1 | sed -n 's/^throughput=\(.*\)/\1/p'
 lat	__LAT__ 200 150
 ns	ip link set dev lo mtu 65535
@@ -171,6 +172,7 @@ lat	-
 lat	-
 lat	-
 guestb	udp_rr --nolog -P 10001 -C 10011 -4
+sleep	1
 nsout	LAT udp_rr --nolog -P 10001 -C 10011 -4 -c -H 127.0.0.1 | sed -n 's/^throughput=\(.*\)/\1/p'
 lat	__LAT__ 200 150
 ns	ip link set dev lo mtu 65535
-- 
2.35.1


  parent reply	other threads:[~2022-09-23  0:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-23  0:53 [PATCH 0/5] Some more hacks and workarounds to make tests pass again Stefano Brivio
2022-09-23  0:53 ` [PATCH 1/5] test/lib: Run also iperf3 clients in background, revert to time-based wait Stefano Brivio
2022-09-23  0:53 ` [PATCH 2/5] test/lib: Wait for kernel to free up ports used by iperf3 before reusing them Stefano Brivio
2022-09-23  0:53 ` Stefano Brivio [this message]
2022-09-23  0:53 ` [PATCH 4/5] test/lib: Wait for DHCPv4 before starting DHCPv6 client in two_guests test Stefano Brivio
2022-09-23  2:17   ` David Gibson
2022-09-23  0:53 ` [PATCH 5/5] test/distro: Update workarounds for Ubuntu 22.04 on s390x Stefano Brivio

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=20220923005327.1000042-4-sbrivio@redhat.com \
    --to=sbrivio@redhat.com \
    --cc=passt-dev@passt.top \
    /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.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).