From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Brivio 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 Message-ID: <20220923005327.1000042-4-sbrivio@redhat.com> In-Reply-To: <20220923005327.1000042-1-sbrivio@redhat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5196901290097662854==" --===============5196901290097662854== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 --- 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/^through= put=3D\(.*\)/\1/p' lat __LAT__ 200 150 =20 @@ -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/^throug= hput=3D\(.*\)/\1/p' lat __LAT__ 500 350 =20 @@ -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/^t= hroughput=3D\(.*\)/\1/p' lat __LAT__ 200 150 =20 @@ -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=3D\(.*\)/\1/p' lat __LAT__ 500 300 =20 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/^through= put=3D\(.*\)/\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/^t= hroughput=3D\(.*\)/\1/p' lat __LAT__ 200 150 ns ip link set dev lo mtu 65535 --=20 2.35.1 --===============5196901290097662854==--