Sizing Linux UDP Socket Buffers for High-BDP QUIC Workloads
Unlike kernel TCP, which benefits from automatic receive buffer autotuning via tcp_rmem, user-space QUIC stacks run over standard UDP sockets constrained by net.core.rmem_max and net.core.wmem_max. On many stock distributions, rmem_max defaults to roughly 208 KiB.
Across a 150 ms trans-Pacific path, a 208 KiB window limits a single flow's bandwidth-delay product to barely 11 Mbps regardless of link capacity. Raising the kernel ceiling to 16–32 MiB allows user-space congestion controllers to scale cleanly without premature packet drops in the NIC ring or socket queue.
Pair buffer sizing with fq pacing so burst transmissions are smoothed at the qdisc layer rather than stressing shallow top-of-rack switch buffers.
net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr
net.core.rmem_max = 26214400
net.core.wmem_max = 26214400