Thread (13 messages) flat view 13 messages, 3 authors, 2025-07-17

Re: [PATCH v2 net-next 1/2] tcp: account for memory pressure signaled by cgroup

From: Daniel Sedlak <hidden>
Date: 2025-07-17 15:31:17
Also in: linux-mm

On 7/16/25 8:07 PM, Kuniyuki Iwashima wrote:
quoted
Incrementing it here will give a very different semantic to this stat
compared to LINUX_MIB_TCPMEMORYPRESSURES. Here the increments mean the
number of times the kernel check if a given socket is under memcg
pressure for a net namespace. Is that what we want?
I'm trying to decouple sk_memcg from the global tcp_memory_allocated
as you and Wei planned before, and the two accounting already have the
different semantics from day1 and will keep that, so a new stat having a
different semantics would be fine.

But I think per-memcg stat like memory.stat.XXX would be a good fit
rather than pre-netns because one netns could be shared by multiple
cgroups and multiple sockets in the same cgroup could be spread across
multiple netns.
I can move the counter to memory.stat.XXX in favor of this patch, if 
anyone has not started working on that yet?

Or are you suggesting to keep this change and also add it to the 
memory.stat.XXX?

Thanks!
Daniel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help