CDN77 says it traced hours-long throughput collapses on some Nginx connections to Linux kernel memory-pressure logic associated with cgroups, after network, configuration and resource checks failed to explain the problem. The company documented the investigation and said it contributed a kernel patch after isolating the behavior.
The incident initially looked like a conventional network fault. Certain downloads on an edge server became slow without returning errors, then recovered without intervention. The degradation did not affect every connection. Similar symptoms later appeared in multiple regions, making a single internet provider or transit path less likely. Neighboring healthy systems had the same Nginx and kernel versions and the same relevant configuration, while CPU use, overall memory consumption and kernel logs showed no obvious difference.
A key clue was that the slowdown affected HTTP cache misses, where Nginx had to fetch content from an upstream layer. A direct `curl` transfer from the same server performed normally while Nginx remained slow. Rebooting removed the symptom temporarily, but it eventually returned.
CDN77 instrumented read and event-handling system calls to test whether Nginx was delaying reads or consuming too little data. The traces showed it reading available data until receiving the expected `EAGAIN` response. Engineers then examined TCP state with BPF tracing and found an unusually small receive slow-start threshold, set at four times the advertised maximum segment size.
Their investigation connected that value to the kernel's TCP receive-window growth path and a memory-pressure test. Standard TCP counters had shown no global pressure, but the test also considers pressure in the socket's cgroup when the memory controller is loaded. Systemd normally places services such as Nginx in their own cgroups, so this path applied even though CDN77 was not using explicit service memory limits.
The company says a reclaim shortfall could set a pressure flag for the whole cgroup. Every socket owned by Nginx could then have its buffer constrained for at least a short interval. Repeated pressure signals could sustain the effect, even on a machine with substantial free memory, because the calculation measured reclaim efficiency over a relatively small scan window rather than total available memory.
As an immediate workaround, CDN77 moved Nginx into the root cgroup, where the pressure notification path returned without applying the same behavior. The operator says that stopped the throughput collapse. It then pursued a kernel change rather than treating the workaround as a permanent deployment model.
The case illustrates why service-level cgroup behavior can matter even without configured memory caps. It also shows the diagnostic value of tracing live kernel and TCP state when static configuration, aggregate resource metrics and ordinary logs all appear healthy.



