aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-01-26 16:16:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-01-26 16:16:16 +0200
commit2eddcb202d348accf1342b475b0ca27b6f932fc2 (patch)
tree160b93a5aa95ac0a054def8ed892ea2b39f3b8f9
parent5505a178a0e8b839f67d489121bd57ee8e01bf52 (diff)
Increase QEMU rx/tx queue to 1024
-rw-r--r--bbot/agent/machine.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/bbot/agent/machine.cxx b/bbot/agent/machine.cxx
index 14b4e21..69ef3c7 100644
--- a/bbot/agent/machine.cxx
+++ b/bbot/agent/machine.cxx
@@ -101,7 +101,7 @@ namespace bbot
// packets under high load. See also rx/tx_queue_size in the QEMU
// networking setup (it's fuzzy how this is all related to each other).
//
- run (trace, "sudo", "ip", "link", "set", t, "txqueuelen", "10000");
+ run (trace, "sudo", "ip", "link", "set", t, "txqueuelen", "4000");
run (trace, "sudo", "ip", "link", "set", t, "up");
run (trace, "sudo", "ip", "link", "set", t, "master", br);
@@ -298,12 +298,12 @@ namespace bbot
//
// The rx/tx queue size is between 256 (default) and 1024 and must be a
// power of 2. Also, maximum (1024) requires some extra support from the
- // guest driver so we start with 512.
+ // guest driver failed that it falls back to 256.
//
add ("-netdev", "tap,id=net0,script=no,ifname=" + net.iface);
add ("-device", ("virtio-net-pci,netdev=net0,mac=" + mac +
- ",tx_queue_size=512" +
- ",rx_queue_size=512"));
+ ",tx_queue_size=1024" +
+ ",rx_queue_size=1024"));
// Disk.
//