From 2eddcb202d348accf1342b475b0ca27b6f932fc2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 26 Jan 2019 16:16:16 +0200 Subject: Increase QEMU rx/tx queue to 1024 --- bbot/agent/machine.cxx | 8 ++++---- 1 file 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. // -- cgit v1.1