Skip to content
TOPIC

nginx

1 article.

GuideUpdated 1 Dec 2026 · 17 min read

sock_throttled in memory.events: find hidden TCP throttling in Proxmox LXC containers and systemd services

If a service's TCP throughput collapses for some connections, stays low for hours and then recovers on its own, with no errors, no global TCP memory pressure and plenty of free RAM, check its memory cgroup. CDN77 traced this symptom in nginx to a Linux memory-cgroup mechanism. In our reading of the source: when ordinary (non-proactive) reclaim scans pages in a non-root cgroup but frees too few of them, the kernel marks that cgroup as under socket pressure for one second, and TCP sockets in that cgroup and in the cgroups below it stop growing their receive windows and send buffers whenever TCP checks for memory pressure. A systemd service is in such a cgroup by default; so is every Proxmox VE LXC container. Since Linux 6.19, memory.events has a sock_throttled counter that makes this visible, and Proxmox's 7.0 kernel source for Proxmox VE 9 includes it. This post explains the mechanism, how to check sock_throttled, memory.high, memory.max and the socket's rcv_ssthresh on a Proxmox VE host or any systemd host, why a container's limits must be read on the host even though the counter is visible inside, and the trade-offs of each fix: more memory headroom, less churn, moving the process out of the cgroup, or the cgroup.memory=nosocket boot option, plus an upstream change in Linux 7.2 and later that addresses one host-wide case.

Talk to us directly.

We reply within one business day. The site assistant answers when it is available.