99-left4me.conf: rmem_max/wmem_max=8M (with 512K defaults), netdev_max_backlog=5000, netdev_budget=600, vm.swappiness=10.
21 lines
928 B
Text
21 lines
928 B
Text
# Host-side perf baseline for left4me — see
|
|
# docs/superpowers/specs/2026-05-09-l4d2-server-host-perf-baseline-design.md
|
|
#
|
|
# UDP socket buffers: distro defaults of ~128 KiB are too small for sustained
|
|
# Source-engine UDP across multiple instances. 8 MiB matches the standard
|
|
# 1 Gbit recommendation; rmem_default/wmem_default protect sockets that don't
|
|
# explicitly enlarge their buffers.
|
|
net.core.rmem_max = 8388608
|
|
net.core.wmem_max = 8388608
|
|
net.core.rmem_default = 524288
|
|
net.core.wmem_default = 524288
|
|
|
|
# Kernel softirq UDP path: the per-CPU backlog queue starts dropping packets
|
|
# at the default 1000 under multi-instance burst; 5000 absorbs realistic peaks.
|
|
# netdev_budget = 600 gives softirq more drain headroom per pass.
|
|
net.core.netdev_max_backlog = 5000
|
|
net.core.netdev_budget = 600
|
|
|
|
# Latency-sensitive default: avoid swap unless the box is really under
|
|
# pressure. Harmless on swapless hosts.
|
|
vm.swappiness = 10
|