TCP BBR and FQ Pacing on Low-Memory KVM Instances

2026-11-18·4 min read

Default Linux TCP settings on cloud KVM images are conservative by design. On short regional links the defaults are rarely noticeable, but across transpacific routes with 130–180 ms round-trip times, queue buildup and bursty packet pacing become the main bottleneck long before CPU usage does.

1. Pairing BBR with Fair Queueing

BBR estimates bottleneck bandwidth and minimum propagation delay rather than treating packet loss as the sole congestion signal. On kernels 6.8+, combining bbr with the fq qdisc lets the kernel pace outgoing packets smoothly at the estimated rate:

cat > /etc/sysctl.d/99-network-tuning.conf <<'EOF'
net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr
net.core.rmem_max = 67108864
net.core.wmem_max = 67108864
EOF
sysctl --system

2. Keeping Buffers Reasonable on 2 GB RAM

Raising rmem_max and wmem_max only lifts the ceiling for applications that explicitly request larger UDP or TCP buffers (such as QUIC/HTTP/3 listeners). Standard TCP sockets remain governed by tcp_rmem and tcp_wmem auto-tuning, so memory pressure stays modest even under dozens of concurrent connections.

3. Quick Verification

After applying the configuration, confirm both the active congestion module and the qdisc attached to the primary interface:

sysctl net.ipv4.tcp_congestion_control net.core.default_qdisc
tc qdisc show dev eth0

If eth0 still displays pfifo_fast or fq_codel, reload the interface or schedule a clean reboot during the next maintenance window so the new default qdisc takes effect everywhere.