From 1134ce88fe562dc2e95780a54835fae9eb9070f0 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Thu, 22 Sep 2022 16:40:28 +0200 Subject: [PATCH] test/perf: Wait for neper servers in guest to be ready before starting client 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/^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