Skip to content

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.

By Nishant Gauraw, NG-NeXTPublished Updated 17 min read

Short answer. If TCP throughput of one service drops for some connections for minutes or hours and then recovers by itself, with no errors and no global TCP memory pressure, check its memory cgroup. When reclaim frees too few of the pages it scans in a non-root cgroup, Linux marks that cgroup as under socket pressure for a second at a time, and TCP sockets in it, and in cgroups below it, stop growing their receive windows and send buffers. Since Linux 6.19, sock_throttled in memory.events counts the resulting pressure checks. Proxmox's 7.0 kernel source for Proxmox VE 9 has it. For a systemd service, start with its cgroup (systemctl show -p ControlGroup --value <unit>) and read memory.events there; sockets are charged to the cgroup of the process that created or accepted them, which is usually the same; for a Proxmox VE container, read /sys/fs/cgroup/lxc/<vmid>/memory.events and the limit files on the host. A counter that keeps climbing while throughput is bad is strong evidence; confirm it with the socket check below.

As of 1 December 2026. This applies to hosts running cgroup v2 with the memory controller enabled (Debian 13 and Proxmox VE 9 by default), to TCP services run by systemd, and to LXC containers.

What CDN77 found#

CDN77's write-up (Daniel Sedlak, 25 November 2026) describes downloads from an edge server that collapsed for some connections, stayed low for hours (one case ran from just before 3 a.m. to about 8 a.m.) and recovered without anyone touching anything. Only nginx was affected; curl on the same server was fast. It only happened on cache misses, when nginx was downloading from an upper layer, and a reboot made it go away for a while. The sysctl settings, nginx configuration, kernel and nginx versions matched healthy neighbours, CPU, memory and kernel logs showed nothing, and nstat showed zero TCP memory pressure.

With a bpftrace kprobe on tcp_rcv_established they saw that rcv_ssthresh on the slow sockets was exactly four times the advertised MSS. That value comes from tcp_adjust_rcv_ssthresh(), which TCP calls instead of growing the window when tcp_under_memory_pressure() is true. That check returns true not only under global TCP memory pressure but also when the socket's memory cgroup is under socket pressure. nginx ran as a systemd service; by default systemd gives each service its own cgroup with the memory controller enabled, and that was enough, even though CDN77 set no memory limits.

Their temporary fix was to move the nginx processes into the root cgroup. CDN77 says it contributed a patch upstream; the sock_throttled counter that was merged for Linux 6.19 (commit d929525c2e30) was written by Shakeel Butt and reviewed by CDN77's Daniel Sedlak. CDN77 says it will share a proper fix.

How the throttle works#

This is NG-NeXT's reading of the Linux source (Proxmox's 7.0 tree for Proxmox VE 9, upstream v6.19 and v7.3), which matches CDN77's description:

  1. During ordinary reclaim (host-wide, or against a cgroup's limit), the kernel walks the cgroups under the one being reclaimed and, for each cgroup whose pages it scans, reports how many it scanned and how many it freed. Proactive reclaim through memory.reclaim skips this report. vmpressure() accumulates these and evaluates them once at least vmpressure_win pages have been scanned: 512 pages, which is 2 MiB with 4 KiB pages. (v7.0 and v7.3 carry a TODO to scale this with machine size; commit 0041eef981cc, authored 31 August and committed 7 October 2026, removes the TODO from mainline after v7.3 without changing the window.)
  2. At the end of each window it computes a pressure level from the share of scanned pages that were not freed. vmpressure_level_med is 60, so the level rises above "low" when roughly 60% or more of the scanned pages were not freed (the integer calculation reaches 60), which is CDN77's "less than about 40%". If the level is above "low", it sets that cgroup's socket-pressure deadline to now plus one second (HZ). Upstream kernels from v7.2 (including v7.3) add a condition that the allocation was not a large ("costly") one; Proxmox's 7.0 tree does not have it. That condition comes from commit f2a950170f7a (JP Kobryn, merged for v7.2): reclaim for allocations above PAGE_ALLOC_COSTLY_ORDER (order 3) no longer sets socket pressure, because on a fragmented host such reclaim can scan many pages and free few even with plenty of free memory. Its commit message describes one production host with about 15 GB available, no cgroup pressure and no free pages of order 7 or above, where 723 of 3,843 TCP connections (19%) were stuck at the minimum receive window; about 30 minutes after live-patching, 0 of 3,470 were. That is the author's measurement on one host, not ours. It is a partial change: reclaim against a cgroup's limit always runs at order 0, so it is unaffected, as is order-0 host-wide reclaim. We do not know whether it would have helped CDN77.
  3. The socket-pressure part of vmpressure() returns early for the root cgroup, so it only marks non-root cgroups.
  4. When TCP checks for memory pressure on a socket, the kernel walks from the socket's cgroup up through its parents. If any of them is inside its one-second window, the socket is treated as under pressure, and sock_throttled is incremented on the socket's cgroup.
  5. Under pressure, the receive window stops growing and rcv_ssthresh is capped at four times the advertised MSS (unless the socket has reserved memory via SO_RESERVE_MEM), and send-buffer growth is also blocked. These effects apply when TCP's code paths run the check; once the window ends, receive-threshold and buffer growth can resume if no other pressure applies (we have not measured how fast throughput recovers). Steady inefficient reclaim keeps the affected sockets throttled.

What is not in the formula is how much free memory the machine has. It only measures how efficiently reclaim is freeing pages over a small window.

Why Proxmox VE containers are a likely place to look#

In NG-NeXT's reading of the pve-container source (HEAD commit of 27 November 2026), every Proxmox VE LXC container is started with its own memory cgroup at lxc/<vmid>, and the container's processes run in an inner cgroup lxc/<vmid>/ns. The container's Memory setting becomes memory.max, and memory.high is set just below it:

Container memorymemory.maxmemory.high
Below 16 GiBmemorymemory × 1016/1024 (about 99.2%)
16 GiB and abovememorymemory − 128 MiB

The source comment explains why: max is the hard, OOM-enforced limit, while above high "cgroup processes get throttled and put under heavy reclaim pressure". Page cache counts towards the cgroup's memory. So a container that keeps reading or caching new file data, an nginx cache or a file server for example, can sit near memory.high and be reclaimed whenever it brings in new pages. If that reclaim is often inefficient, in the sense above, the cgroups inside the container whose pages are being scanned (with systemd in the container, that is often a service cgroup such as ns/system.slice/nginx.service) are marked, and their TCP sockets are throttled while it lasts.

That is a reason to check, not a diagnosis. Reclaiming clean, cold page cache is usually efficient, and we have not reproduced the throttle in a container. The checks below show whether pressure checks are firing; the socket check helps tie that to the slow connections.

Two other places on a Proxmox VE host:

  • Host services. Anything TCP-heavy that systemd runs on the host, under system.slice, is in a non-root memory cgroup, like CDN77's nginx.
  • VMs. With bridged or TAP networking (the Proxmox VE default), a QEMU VM's TCP stack is the guest's kernel, so host cgroups do not throttle its connections this way. User-mode networking (SLIRP, passt) uses host sockets and can be affected. If a service inside a VM shows the symptom, run the same checks inside the guest.

Check it#

All of these are read-only. Run them as root on the host. They have not been run by NG-NeXT on a Proxmox VE host for this post (see Tests still to run).

1. Kernel, cgroup version and counter#

uname -r                          # sock_throttled needs 6.19+ upstream; Proxmox's 7.0 kernel has it in source
stat -fc %T /sys/fs/cgroup        # cgroup2fs means cgroup v2 (unified)
cat /sys/fs/cgroup/cgroup.subtree_control   # should include "memory"
grep -c '^sock_throttled ' /sys/fs/cgroup/system.slice/memory.events   # 1 = counter present, 0 = absent; "No such file" usually means no memory controller here

The root cgroup has no memory.events file, so test with a child such as system.slice. A count of 0 from a file that was read successfully means this kernel has no counter. The throttling can still happen; the socket check in step 4 is then your main clue, though a 4 × advmss value can also have other causes.

2. Which cgroups have recorded throttled sockets#

memory.events is hierarchical by default (a parent includes its children; the memory_localevents mount option changes that); memory.events.local counts only that cgroup. This lists cgroups whose own counter is above zero, largest first. The counts are cumulative since each cgroup was created, so a large number can be old:

find /sys/fs/cgroup -name memory.events.local -exec grep -sH '^sock_throttled [1-9]' {} + \
  | sort -t' ' -k2,2rn | head -20

What matters is whether the counter grows while throughput is bad. This sampler runs in a subshell, so its exit does not close your shell; if your shell has set -e enabled, a failed sample still counts as a failed command there, so run it as if ( ... ); then :; fi or with || true. It refuses to print a result if the cgroup or counter is missing, or if the cgroup directory was replaced during the minute (best effort: the inode check cannot catch a replacement in the instant between the final reads):

(
CG=/sys/fs/cgroup/lxc/101         # or: CG=/sys/fs/cgroup$(systemctl show -p ControlGroup --value nginx.service)
[ "$CG" != /sys/fs/cgroup ] && [ -r "$CG/memory.events" ] || { echo "cgroup not found: unit/container not running, or no memory controller"; exit 1; }
i1=$(stat -c %i "$CG")
a=$(awk '$1=="sock_throttled"{print $2}' "$CG/memory.events")
[ -n "$a" ] || { echo "this kernel has no sock_throttled counter"; exit 1; }
sleep 60
i2=$(stat -c %i "$CG" 2>/dev/null)
b=$(awk '$1=="sock_throttled"{print $2}' "$CG/memory.events" 2>/dev/null)
[ "$i1" = "$i2" ] && [ -n "$b" ] && [ "$b" -ge "$a" ] || { echo "cgroup gone or recreated during the sample"; exit 1; }
echo "sock_throttled +$((b-a)) in about 60 s"
)

For a container, use the outer cgroup lxc/<vmid> from the host to see the container as a whole (unless cgroup2 is mounted with memory_localevents; then the outer counter excludes inner cgroups, so read the inner ones). The counter is also visible inside the container for its own cgroups, but the limits are not.

3. Is the cgroup living at its limit?#

CG=/sys/fs/cgroup/lxc/101
for f in memory.current memory.high memory.max; do printf '%-16s %s\n' "$f" "$(cat "$CG/$f")"; done
grep -E '^(high|max|oom|oom_kill|sock_throttled) ' "$CG/memory.events"
grep -E '^(high|max) ' "$CG/memory.events.local"   # events caused by this cgroup's own limits
grep -E '^(anon|file|shmem|file_dirty|file_writeback|sock) ' "$CG/memory.stat"
cat "$CG/memory.pressure"

How to read it:

  • memory.current close to memory.high, with the high count in memory.events.local rising, means this cgroup's own limit is pushing it into reclaim. memory.events also counts events from child cgroups with tighter limits of their own, so use the .local file to find which limit needs headroom. That can happen in a Proxmox VE container that keeps bringing in new file data once its page cache has filled its allocation.
  • A large file share in memory.stat points at page cache, but file also includes shmem (tmpfs and shared memory), so check shmem before concluding it is ordinary cache. A large anon share means anonymous memory dominates; compare absolute values with memory.current and the limits (including parents' limits). Whether reclaim of it is inefficient depends on swap and page activity.
  • memory.pressure (PSI) shows whether tasks are stalling on memory. Socket throttling can happen without large PSI numbers.
  • For a systemd service with no limits, memory.high and memory.max read max. CDN77's nginx had no limits either; reclaim driven by the host's memory still runs per cgroup.

4. Look at the sockets themselves#

CDN77's signature was rcv_ssthresh stuck at four times advmss on slow connections. ss -i prints both. For a service in a container, run it inside the container (it shares the container's network namespace) or from the host in one shot, without leaving a shell in the container's namespace: nsenter -t "$(lxc-info -n 101 -p -H)" -n ss -tmi state established '( dport = :443 or dport = :80 )', with 101 replaced by the running container's ID (not run by us):

ss -tmi state established '( dport = :443 or dport = :80 )'   # adjust to the service's upstream connections

On each connection, compare rcv_ssthresh: with advmss:. Throttled receivers can show rcv_ssthresh at about 4 × advmss (for example 5792 with an advmss of 1448) on connections that should be moving data fast. It is a clue, not proof: global TCP pressure and other receive-memory paths can give similar values. CDN77's symptom was on the receive side, nginx downloading from upstream on cache misses; the same check also stops send-buffer growth.

If steps 2 and 4 line up in time with the slow period, that is strong supporting evidence. The container-wide counter can also grow because of other sockets, so look for the 4 × advmss pattern on the slow connections themselves.

Fix options and their trade-offs#

None of these has been tested by NG-NeXT for this post. Diagnose first; then, in order of how NG-NeXT would try them:

OptionHowTrade-off
More headroom (only when the high or max count in memory.events.local of the cgroup that holds the limit is rising)Proxmox VE: raise the container's memory (pct set <vmid> --memory <MiB>); memory.high follows it, and the current pve-container and pve-common source write the new values to a running container. systemd: raise MemoryHigh=/MemoryMax= by a measured amountUses host RAM that other guests could have. Removing a service's limits entirely also removes its containment, so a leak can pressure the whole host. If page cache grows to fill any limit, more headroom only moves the point at which reclaim starts. Does nothing for a service without limits, like CDN77's nginx; there, in our reading, host-wide reclaim is the likely driver, and giving containers more memory on a host that is already reclaiming can make that worse
Less churnReduce what keeps the cgroup at its limit: smaller or fewer cached objects, moving the cache-serving workload (not just its files) to a separate container, fixing a leak in the anon shareWorkload-specific; may cost cache hit rate. Page cache is charged to the cgroup that first brought the pages into memory, wherever the files live, and stays charged there until freed
Reduce host-wide reclaim (when no limit is involved)Less memory pressure on the host: fewer or smaller workloads, less page-cache churn from other services, more RAMOur reading, not tested; no specific kernel setting is offered here. May not help a host that already has plenty of free memory, as CDN77's did. If reclaim is driven by high-order allocations on a fragmented host, more RAM may not help either; few or no free high-order pages in the read-only /proc/buddyinfo is a hint, not proof. See the next-to-last row
Move the process to the root cgroupCDN77's temporary fix for nginx. The socket-pressure part of vmpressure() ignores the root cgroupNo memory limits or memory accounting for that service. Sockets opened before the move keep their old cgroup, and memory already charged stays where it was. Not a supported mitigation for an LXC container's processes without breaking the container boundary. We did not verify a supported way to make systemd run a service in the root cgroup, and systemd may lose track of moved processes
cgroup.memory=nosocketKernel command-line option documented as "Disable socket memory accounting". In the 7.0 source, it turns off the switch that makes TCP check cgroup socket pressure at allHost-wide and needs a reboot. Socket buffers are no longer charged to any container or service, so a container can hold socket memory beyond its limit; the global tcp_mem limits and per-socket buffer limits remain. A poor fit for multi-tenant hosts
A kernel that includes commit f2a950170f7a (upstream v7.2 or later; check your vendor kernel's source or changelog), only when high-order host-wide reclaim is the driverReclaim above PAGE_ALLOC_COSTLY_ORDER no longer sets socket pressurePartial: does not cover order-0 host-wide reclaim or a cgroup at its own limit. Proxmox's 7.0 tree does not include it. A different kernel series is a bigger change than a setting; try it in a lab first. Not tested by NG-NeXT
Wait for a complete fixCDN77 says it will share oneWe found no complete fix merged as of 1 December 2026; apart from the high-order change above, current mainline still has the same mechanism

Two things that, in NG-NeXT's reading, are unlikely to help on their own:

  • MemoryAccounting=no on one systemd service. systemd's documentation says enabling a controller for one unit also enables it for its siblings in the slice, and memory accounting is on by default, so the service usually keeps its own memory cgroup and can still be marked. Not tested.
  • Tuning tcp_rmem, tcp_mem or nginx buffers. CDN77 found these settings matched those of healthy servers; the throttle comes from the cgroup check, not from those limits.

Once you have confirmed the cause, the choice for a container that is hitting its own limit is usually between the first two rows, fixing it per container, and cgroup.memory=nosocket, giving up per-container socket accounting on the whole host. When no limit is involved, as with CDN77's nginx, the options are reducing host-wide reclaim, the root-cgroup move or nosocket, or, if high-order reclaim is the driver, a kernel that includes commit f2a950170f7a (not tested by us). For a host whose containers belong to one team, nosocket can be a reasonable trade; for a host shared between customers, NG-NeXT would keep accounting and size the containers instead.

What we did not verify#

  • That the throttle actually occurs in a Proxmox VE LXC container near memory.high; we reasoned from the source and CDN77's case, and have not reproduced it.
  • Whether Debian 13's 6.12 kernel or Ubuntu 24.04's GA 6.8 kernel backported sock_throttled, and the Ubuntu HWE 7.0 binary (we read Proxmox's copy of Ubuntu's 7.0 source).
  • Whether Proxmox's 6.17 kernel (the Proxmox VE 9.1 default) has it; upstream 6.17 does not.
  • That pct set --memory on a running container changes memory.high live in every Proxmox VE 9 release; we read the current source only.
  • The effect of cgroup.memory=nosocket on Proxmox VE's own memory reporting for containers.
  • What lxcfs shows for limit files inside a container.
  • The HN discussion (item 50699391) was used only to find the article.

Tests still to run (needs Nishant's test)#

  1. On a lab Proxmox VE 9 host on a 7.0 kernel, confirm sock_throttled is present in memory.events and memory.events.local, on the host and inside a container.
  2. In a lab container with a small memory setting, drive page-cache-heavy and anon-heavy workloads to memory.high while a TCP download runs into the container; record sock_throttled growth (outer and inner cgroups), rcv_ssthresh versus advmss, and throughput.
  3. Repeat step 2 after raising the container's memory, and confirm memory.high changes live.
  4. Repeat on a host booted with cgroup.memory=nosocket; confirm sock_throttled stays at 0 and note what Proxmox VE reports for container memory.
  5. Run the step 2 find command and the sampler on a busy host, including a stopped unit, a wrong vmid and a container restarted mid-run, and confirm they finish quickly and fail safely without closing the shell.
  6. Set MemoryAccounting=no on a test systemd service and check whether its cgroup still has memory.events.

Evidence#

ClaimLabelSource
nginx throughput collapsed for hours on cache misses and recovered alone; nstat showed no TCP memory pressure; rcv_ssthresh was 4 × advmss; cause was memcg socket pressure; temporary fix was moving nginx to the root cgroup; no memory limits were set; CDN77 will share a proper fixReported, not reproducedCDN77 blog, 25 Nov 2026
sock_throttled documented in cgroup v2 docs from v6.19 (absent in v6.18; present in v7.3)Verified against a primary sourceLinux Documentation/admin-guide/cgroup-v2.rst at v6.18, v6.19, v7.3
Proxmox's 7.0 kernel source for Proxmox VE 9 has sock_throttled and the vmpressure socket-pressure path (source read via shallow git clone of the tag, as the web blob view returns 403; binaries not inspected)Verified against a primary sourceProxmox mirror_ubuntu-kernels.git, tag Proxmox-7.0-20261116: mm/memcontrol.c, mm/vmpressure.c, include/net/sock.h
vmpressure_win is SWAP_CLUSTER_MAX * 16 (512 pages); TODO present in 7.0 and v7.3, removed by commit 0041eef981cc (authored 31 Aug 2026, committed 7 Oct 2026); root cgroup skipped in the socket-pressure branch; pressure lasts HZVerified against a primary sourcemm/vmpressure.c (7.0 tree, v7.3, master); include/linux/memcontrol.h (mem_cgroup_set_socket_pressure(): jiffies + HZ on 64-bit builds, get_jiffies_64() + HZ on 32-bit); commit 0041eef981cc
order <= PAGE_ALLOC_COSTLY_ORDER is in the socket-pressure condition from v7.2 (absent in v7.1 and in Proxmox's 7.0 tree)Verified against a primary sourcemm/vmpressure.c at v7.1, v7.2, v7.3 and in the 7.0 tree; commit f2a950170f7a (authored 6 Apr 2026, committed 29 May 2026 UTC)
Reclaim calls vmpressure() for each cgroup it scans, not only the reclaim target, except for proactive reclaimVerified against a primary sourcemm/vmscan.c, shrink_node_memcgs() and shrink_one() (MGLRU) (7.0 tree)
sock_throttled commit d929525c2e30 written by Shakeel Butt, reviewed by Daniel Sedlak (CDN77)Verified against a primary sourcecommit d929525c2e30
Memory is charged to the cgroup that instantiated it and stays there until releasedVerified against a primary sourceDocumentation/admin-guide/cgroup-v2.rst, Memory Ownership
Pressure is checked on the socket's cgroup and all parents; MEMCG_SOCK_THROTTLED is counted on the socket's cgroupVerified against a primary sourceinclude/net/sock.h, mem_cgroup_sk_under_memory_pressure() (7.0 tree)
Under pressure rcv_ssthresh is capped at 4U * advmss (subject to reserved memory); send-buffer expansion is also blockedVerified against a primary sourceinclude/net/tcp.h, tcp_adjust_rcv_ssthresh(); net/ipv4/tcp_input.c, tcp_should_expand_sndbuf() (7.0 tree)
Pressure above "low" when roughly 60% or more of scanned pages were not freed (integer calculation) (CDN77: less than about 40% freed)Verified against a primary sourcemm/vmpressure.c, vmpressure_level_med = 60 (7.0 tree); CDN77 blog
Proxmox VE LXC cgroup lxc/<vmid> with inner ns; memory.max = memory; memory.high = 1016/1024 below 16 GiB, memory − 128 MiB from 16 GiBVerified against a primary sourcepve-container src/PVE/LXC.pm, src/PVE/LXC/Config.pm (calculate_memory_constraints), commit 44a1c931b6e6 (27 Nov 2026)
Live memory changes write memory.high then memory.maxVerified against a primary sourcepve-common src/PVE/CGroup.pm, change_memory_limit; pve-container Config.pm hotplug call
cgroup.memory=nosocket disables socket memory accountingVerified against a primary sourceDocumentation/admin-guide/kernel-parameters.txt; mm/memcontrol.c (7.0 tree)
systemd enables a controller for siblings of a unit that has itVerified against a primary sourcesystemd.resource-control(5)
ss -i prints advmss: and rcv_ssthresh:Verified against a primary sourceiproute2 misc/ss.c
Throttling in a Proxmox VE container near memory.high; effect of each fixNot tested; our readingSee Tests still to run

FAQ#

What is sock_throttled in memory.events?#

A counter in the cgroup v2 memory.events file (and memory.events.local) that the kernel documentation describes as 'the number of times network sockets associated with this cgroup are throttled'. It was added in Linux 6.19 by commit d929525c2e30, written by Shakeel Butt and reviewed by CDN77's Daniel Sedlak; CDN77 says it contributed a patch upstream. In the source we read, it is incremented each time a TCP memory-pressure check finds the socket's cgroup, or one of its parent cgroups, under socket pressure. It counts checks, not seconds, and starts at zero when a cgroup is created, so watch how fast it grows rather than its absolute value.

Why would TCP be throttled when the server has plenty of free memory?#

Because this pressure signal is not about free memory. When ordinary reclaim, host-wide or driven by a cgroup limit, scans pages in a non-root cgroup, the kernel's vmpressure code looks at how many pages it scanned there and how many it freed, once at least 512 scanned pages (2 MiB with 4 KiB pages) have accumulated. If it freed too few, the level rises above 'low' and the kernel marks that cgroup as under socket pressure for one second. While that lasts, TCP sockets in that cgroup and below it do not grow their receive windows or send buffers, and their receive threshold is capped at four times the advertised MSS. CDN77 says this can hit cache-heavy servers even with hundreds of gigabytes of free RAM; in its case nstat showed zero TCP memory pressure.

Which kernels have the sock_throttled counter?#

Upstream Linux 6.19 and later: the line is absent from the cgroup v2 documentation in v6.18 and present in v6.19 and v7.3. Proxmox's 7.0 kernel source for Proxmox VE 9 includes it (we read the Proxmox-7.0-20261116 snapshot). Ubuntu 24.04's HWE kernel is also 7.0-based; we did not check its source or binary. Older series such as Debian 13's default 6.12, Ubuntu 24.04's GA 6.8 and Proxmox's 6.17 (the Proxmox VE 9.1 default) do not have it upstream; we did not check for backports. Without the counter, the throttling can still happen; you just cannot see it in memory.events.

Are Proxmox VE LXC containers affected?#

They can be. Each Proxmox VE container runs in its own memory cgroup, lxc/<vmid>, with memory.max set to the container's memory and, in the pve-container source we read, memory.high set slightly below it: 1016/1024 of the limit below 16 GiB, and the limit minus 128 MiB from 16 GiB up. A container whose memory, page cache included, keeps reaching memory.high is reclaimed whenever it brings in new pages, which is the condition that can raise socket pressure on the cgroups inside it whose pages are scanned. Whether it does depends on how efficiently that reclaim frees pages. We have not reproduced it in a container.

Can I check this from inside the container?#

Partly. The counter is recorded on the cgroup of each socket (and appears in its parents' memory.events unless the memory_localevents mount option is set), so on a kernel that has it, sock_throttled for sockets created inside the container is visible in the container's own memory.events files. The limits are not: Proxmox VE sets memory.high and memory.max on the outer cgroup (lxc/<vmid>) and runs the container in an inner cgroup (ns), whose own limit files normally read 'max', and the outer cgroup's high and max events are not visible inside. Read the limits and /sys/fs/cgroup/lxc/<vmid>/memory.events on the Proxmox VE host.

What about QEMU VMs?#

With ordinary bridged or TAP networking (the Proxmox VE default), a VM's TCP connections are handled by the guest kernel, not the host's, so host cgroups do not throttle them in this way. User-mode networking such as SLIRP or passt opens real sockets on the host, which can be affected. If a service inside a VM shows the symptom, check the cgroups inside the guest with the guest's own kernel.

How do I fix it?#

There is no single right fix yet. The options are: if the cgroup or a parent is hitting its own limit (high or max rising in that cgroup's memory.events.local), give it more headroom (on Proxmox VE, raise the container's memory; memory.high moves with it); if not, as in CDN77's case (in our reading, with no limits on the cgroup or its parents, host-wide reclaim is the likely driver), reduce host-wide reclaim instead (upstream Linux 7.2 and later stop reclaim for large, high-order allocations from setting socket pressure, which addresses one host-wide case; not tested by NG-NeXT); reduce what keeps the cgroup at its limit; move the process into the root cgroup, which is what CDN77 did as a temporary fix, at the cost of losing that service's memory limits and memory accounting; or boot with cgroup.memory=nosocket, which turns off socket memory accounting in memory cgroups for the whole host, so container socket buffers are no longer charged to the container. CDN77 says it will share a proper fix. None of these has been tested by NG-NeXT.

Has NG-NeXT reproduced this?#

No. As of 1 December 2026 this post is built from CDN77's write-up, the Linux kernel source and documentation, Proxmox's 7.0 kernel source and the pve-container and pve-common source. NG-NeXT has not reproduced the throttling, run the checks below on a Proxmox VE host, or tried any of the fixes for this post. They are listed under Tests still to run.

References#

The know-how here stays free. Stuck? Send us the output of the checks above, with hostnames, addresses and any cgroup or unit names you consider private removed. NG-NeXT also does consulting and turnkey builds for private infrastructure. Tell us what you run through the contact page.

— Nishant Gauraw, Founder and CEO, NG-NeXT Tech

Talk to us directly.

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