aboutgitcodebugslistschat
path: root/test/perf/passt_tcp
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-03-19 10:18:19 +0100
committerStefano Brivio <sbrivio@redhat.com>2022-03-29 15:35:38 +0200
commit0ebaac9747892cec2686fb6a5bb9d42674c3fbc5 (patch)
treeb6a85d6530c200f244dc14f37ae0a0b26128cd8b /test/perf/passt_tcp
parent92074c16a8dda83d79c4e9a534757b0e116f7157 (diff)
downloadpasst-0ebaac9747892cec2686fb6a5bb9d42674c3fbc5.tar
passt-0ebaac9747892cec2686fb6a5bb9d42674c3fbc5.tar.gz
passt-0ebaac9747892cec2686fb6a5bb9d42674c3fbc5.tar.bz2
passt-0ebaac9747892cec2686fb6a5bb9d42674c3fbc5.tar.lz
passt-0ebaac9747892cec2686fb6a5bb9d42674c3fbc5.tar.xz
passt-0ebaac9747892cec2686fb6a5bb9d42674c3fbc5.tar.zst
passt-0ebaac9747892cec2686fb6a5bb9d42674c3fbc5.zip
test/perf: Work-around for virtio_net hang before long streams from guest
I didn't have time to investigate the root cause for the virtio_net TX hang yet. Add a quick work-around for the moment being. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/perf/passt_tcp')
-rw-r--r--test/perf/passt_tcp15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/perf/passt_tcp b/test/perf/passt_tcp
index 99d8fb1..f13fdfc 100644
--- a/test/perf/passt_tcp
+++ b/test/perf/passt_tcp
@@ -16,6 +16,11 @@ gtools sysctl ip jq nproc seq sleep bc iperf3 tcp_rr tcp_crr # From neper
nstools sysctl ip jq nproc seq sleep bc iperf3 tcp_rr tcp_crr
htools bc head sed seq
+# In this setup, virtio_net TX queue sometimes hangs, still under investigation
+def virtio_net_workaround
+guest modprobe -r virtio_net; modprobe virtio_net napi_tx=1; dhclient; dhclient -6; sleep 3
+endef
+
test passt: throughput and latency
guest /sbin/sysctl -w net.core.rmem_max=536870912
@@ -52,18 +57,22 @@ tr TCP throughput over IPv6: guest to host
bw -
bw -
+virtio_net_workaround
guest ip link set dev __IFNAME__ mtu 1280
iperf3c guest __GW6__%__IFNAME__ 100${i}2 __THREADS__ __OPTS__ -w 4M
iperf3s BW ns 100${i}2 __THREADS__
bw __BW__ 1.2 1.5
+virtio_net_workaround
guest ip link set dev __IFNAME__ mtu 1500
iperf3c guest __GW6__%__IFNAME__ 100${i}2 __THREADS__ __OPTS__ -w 4M
iperf3s BW ns 100${i}2 __THREADS__
bw __BW__ 1.6 1.8
+virtio_net_workaround
guest ip link set dev __IFNAME__ mtu 9000
iperf3c guest __GW6__%__IFNAME__ 100${i}2 __THREADS__ __OPTS__ -w 8M
iperf3s BW ns 100${i}2 __THREADS__
bw __BW__ 4.0 5.0
+virtio_net_workaround
guest ip link set dev __IFNAME__ mtu 65520
iperf3c guest __GW6__%__IFNAME__ 100${i}2 __THREADS__ __OPTS__ -w 16M
iperf3s BW ns 100${i}2 __THREADS__
@@ -91,26 +100,32 @@ lat __LAT__ 500 400
tr TCP throughput over IPv4: guest to host
+virtio_net_workaround
guest ip link set dev __IFNAME__ mtu 256
iperf3c guest __GW__ 100${i}2 __THREADS__ __OPTS__ -w 1M
iperf3s BW ns 100${i}2 __THREADS__
bw __BW__ 0.2 0.3
+virtio_net_workaround
guest ip link set dev __IFNAME__ mtu 576
iperf3c guest __GW__ 100${i}2 __THREADS__ __OPTS__ -w 1M
iperf3s BW ns 100${i}2 __THREADS__
bw __BW__ 0.5 0.8
+virtio_net_workaround
guest ip link set dev __IFNAME__ mtu 1280
iperf3c guest __GW__ 100${i}2 __THREADS__ __OPTS__ -w 4M
iperf3s BW ns 100${i}2 __THREADS__
bw __BW__ 1.2 1.5
+virtio_net_workaround
guest ip link set dev __IFNAME__ mtu 1500
iperf3c guest __GW__ 100${i}2 __THREADS__ __OPTS__ -w 4M
iperf3s BW ns 100${i}2 __THREADS__
bw __BW__ 1.6 1.8
+virtio_net_workaround
guest ip link set dev __IFNAME__ mtu 9000
iperf3c guest __GW__ 100${i}2 __THREADS__ __OPTS__ -w 8M
iperf3s BW ns 100${i}2 __THREADS__
bw __BW__ 4.0 5.0
+virtio_net_workaround
guest ip link set dev __IFNAME__ mtu 65520
iperf3c guest __GW__ 100${i}2 __THREADS__ __OPTS__ -w 16M
iperf3s BW ns 100${i}2 __THREADS__