aboutgitcodebugslistschat
path: root/test/perf
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-09-22 16:40:28 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-09-23 02:46:24 +0200
commit1134ce88fe562dc2e95780a54835fae9eb9070f0 (patch)
tree0f24ae53cb4301bb0e1f5a846542be869e13dc81 /test/perf
parentd1dbc4f992b3789de0624dac16bfacdd977f2a71 (diff)
downloadpasst-1134ce88fe562dc2e95780a54835fae9eb9070f0.tar
passt-1134ce88fe562dc2e95780a54835fae9eb9070f0.tar.gz
passt-1134ce88fe562dc2e95780a54835fae9eb9070f0.tar.bz2
passt-1134ce88fe562dc2e95780a54835fae9eb9070f0.tar.lz
passt-1134ce88fe562dc2e95780a54835fae9eb9070f0.tar.xz
passt-1134ce88fe562dc2e95780a54835fae9eb9070f0.tar.zst
passt-1134ce88fe562dc2e95780a54835fae9eb9070f0.zip
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 <sbrivio@redhat.com>
Diffstat (limited to 'test/perf')
-rw-r--r--test/perf/passt_tcp4
-rw-r--r--test/perf/passt_udp2
2 files changed, 6 insertions, 0 deletions
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