Default to worker counts and frame sizes that measure the cable, not the host

This commit is contained in:
flamingcow
2026-07-25 18:40:37 -07:00
parent 7c09c34564
commit e0781b3334
+3 -3
View File
@@ -335,10 +335,10 @@ func main() {
var ( var (
aName = flag.String("a", "", "first interface") aName = flag.String("a", "", "first interface")
bName = flag.String("b", "", "second interface") bName = flag.String("b", "", "second interface")
sizesArg = flag.String("sizes", "64,128,256,512,1024,1280,1514", "frame sizes in bytes, excluding FCS, cycled per packet") sizesArg = flag.String("sizes", "1024,1280,1514", "frame sizes in bytes, excluding FCS, cycled per packet; below ~900 the host cannot keep up and loss stops meaning anything")
patArg = flag.String("pattern", "prbs", "payload pattern") patArg = flag.String("pattern", "prbs", "payload pattern")
txN = flag.Int("tx", 4, "tx workers per direction") txN = flag.Int("tx", 1, "tx workers per direction; one saturates 10G at these sizes")
rxN = flag.Int("rx", 4, "rx workers per direction") rxN = flag.Int("rx", 2, "rx workers per direction; more is slower, RSS cannot spread a raw ethertype across queues")
batch = flag.Int("batch", 64, "frames per sendmmsg/recvmmsg call") batch = flag.Int("batch", 64, "frames per sendmmsg/recvmmsg call")
fanout = flag.String("fanout", "lb", "rx fanout mode: none, hash, lb, cpu, rollover") fanout = flag.String("fanout", "lb", "rx fanout mode: none, hash, lb, cpu, rollover")
duplex = flag.Bool("duplex", true, "run both directions simultaneously") duplex = flag.Bool("duplex", true, "run both directions simultaneously")