SIP & WebRTC Latency
Linux Kernel sysctl UDP Buffer Tuning for LiveKit SFU
Production sysctl.conf values for high-concurrency RTP packet bursts on Linux NVMe servers.
16 MB rmem_max · 65,536 nofile · 0% kernel drops
Default 212 KB Kernel Buffers Drop Burst RTP
Default Ubuntu net.core.rmem_max (212,992 bytes) overflows when 100+ concurrent 50 pps RTP streams burst simultaneously. Increasing rmem_max and wmem_max to 16,777,216 bytes absorbs micro-bursts cleanly.
File Descriptors & Conntrack Table Limits
Each WebRTC ICE candidate pair and SIP socket consumes file descriptors and nf_conntrack entries. Setting LimitNOFILE=65536 and disabling conntrack on stateless RTP ranges prevents silent socket stalls.
Measured Pipeline Thresholds
| Default Ubuntu sysctl | 212 KB rmem_max | Drops packets above ~45 calls |
| Tuned LiveKit sysctl | 16 MB rmem_max | Clean up to 400+ concurrent streams |
| nofile ulimit | 65,536 descriptors | Prevents EMFILE WebSocket failures |