Uncovering Hidden TCP Throttling in the Linux Kernel
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
CDN77 traced randomly collapsing nginx download speeds on cache misses to the Linux cgroup memory controller. When reclaim frees under about 40% of pages scanned in a 2 MB window, the kernel flags the whole cgroup, shrinking every socket's receive window for at least a second, even with ample free RAM. SNMP counters showed no pressure. Moving nginx to the root cgroup worked around it, and Linux 6.19 adds a sock_throttled counter. The authors say a proper fix is still to come. The claims come from CDN77's own debugging account.