aboutgitcodebugslistschat
path: root/test/perf
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-06-10 12:32:43 +1000
committerStefano Brivio <sbrivio@redhat.com>2022-06-15 09:38:10 +0200
commitca0c33ae5b8a68806dd1c766e2f58ce24867f334 (patch)
treebdabe0027c287d1b3d2617a175b66f281dc389c6 /test/perf
parent2320ac3349789551e9c7500dba03e04b9ac02f41 (diff)
downloadpasst-ca0c33ae5b8a68806dd1c766e2f58ce24867f334.tar
passt-ca0c33ae5b8a68806dd1c766e2f58ce24867f334.tar.gz
passt-ca0c33ae5b8a68806dd1c766e2f58ce24867f334.tar.bz2
passt-ca0c33ae5b8a68806dd1c766e2f58ce24867f334.tar.lz
passt-ca0c33ae5b8a68806dd1c766e2f58ce24867f334.tar.xz
passt-ca0c33ae5b8a68806dd1c766e2f58ce24867f334.tar.zst
passt-ca0c33ae5b8a68806dd1c766e2f58ce24867f334.zip
Tweak dhclient arguments for readability
A number of tests and examples use dhclient in both IPv4 and IPv6 modes. We use "dhclient -6" for IPv6, but usually just "dhclient" for IPv4. Add an explicit "-4" argument to make it more clear and explicit. In addition, when dhclient is run from within pasta it usually won't be "real" root, and so will not have access to write the default global pid file. This results in a mostly harmless but irritating error: Can't create /var/run/dhclient.pid: Permission denied We can avoid that by using the --no-pid flag to dhclient. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'test/perf')
-rw-r--r--test/perf/passt_tcp2
-rw-r--r--test/perf/passt_udp2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/perf/passt_tcp b/test/perf/passt_tcp
index 5f017db..c97178e 100644
--- a/test/perf/passt_tcp
+++ b/test/perf/passt_tcp
@@ -18,7 +18,7 @@ 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
+guest modprobe -r virtio_net; modprobe virtio_net napi_tx=1; dhclient -4; dhclient -6; sleep 3
endef
test passt: throughput and latency
diff --git a/test/perf/passt_udp b/test/perf/passt_udp
index 0515f00..5155099 100644
--- a/test/perf/passt_udp
+++ b/test/perf/passt_udp
@@ -18,7 +18,7 @@ htools bc head sed
# 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
+guest modprobe -r virtio_net; modprobe virtio_net napi_tx=1; dhclient -4; dhclient -6; sleep 3
endef
test passt: throughput and latency