lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250714143613.42184-1-daniel.sedlak@cdn77.com>
Date: Mon, 14 Jul 2025 16:36:11 +0200
From: Daniel Sedlak <daniel.sedlak@...77.com>
To: "David S. Miller" <davem@...emloft.net>,
	Eric Dumazet <edumazet@...gle.com>,
	Jakub Kicinski <kuba@...nel.org>,
	Paolo Abeni <pabeni@...hat.com>,
	Simon Horman <horms@...nel.org>,
	Jonathan Corbet <corbet@....net>,
	Neal Cardwell <ncardwell@...gle.com>,
	Kuniyuki Iwashima <kuniyu@...gle.com>,
	David Ahern <dsahern@...nel.org>,
	Andrew Morton <akpm@...ux-foundation.org>,
	Shakeel Butt <shakeel.butt@...ux.dev>,
	Yosry Ahmed <yosry.ahmed@...ux.dev>,
	linux-mm@...ck.org,
	netdev@...r.kernel.org
Cc: Daniel Sedlak <daniel.sedlak@...77.com>,
	linux-trace-kernel@...r.kernel.org,
	linux-doc@...r.kernel.org,
	Steven Rostedt <rostedt@...dmis.org>,
	Masami Hiramatsu <mhiramat@...nel.org>,
	Mathieu Desnoyers <mathieu.desnoyers@...icios.com>
Subject: [PATCH v2 net-next 0/2] account for TCP memory pressure signaled by cgroup

Greetings kernel wizards,

To summarize from the commit messages, the attached patches are the
result of our recent debugging sessions, where we were hunting sudden
TCP network throughput drops, where the throughput dropped from tens of
Gbps to a few Mbps for an undeterministic amount of time.

The first patch adds a new counter for netstat, so users can notice that
the sockets are marked as under pressure. The second patch adds a new
tracepoint so it is easier to pinpoint which exact cgroup is having
difficulties.

Individual commit messages should contain more detailed reasoning.

Thanks!
Daniel

Changes:

v1 -> v2:
Add tracepoint
Link: https://lore.kernel.org/netdev/20250707105205.222558-1-daniel.sedlak@cdn77.com/

Daniel Sedlak (1):
  tcp: account for memory pressure signaled by cgroup

Matyas Hurtik (1):
  mm/vmpressure: add tracepoint for socket pressure detection

 .../networking/net_cachelines/snmp.rst        |  1 +
 include/net/tcp.h                             | 14 ++++++-----
 include/trace/events/memcg.h                  | 25 +++++++++++++++++++
 include/uapi/linux/snmp.h                     |  1 +
 mm/vmpressure.c                               |  3 +++
 net/ipv4/proc.c                               |  1 +
 6 files changed, 39 insertions(+), 6 deletions(-)

cc: linux-trace-kernel@...r.kernel.org
cc: linux-doc@...r.kernel.org
cc: Steven Rostedt <rostedt@...dmis.org>
cc: Masami Hiramatsu <mhiramat@...nel.org>
cc: Mathieu Desnoyers <mathieu.desnoyers@...icios.com>

base-commit: e96ee511c906c59b7c4e6efd9d9b33917730e000
-- 
2.39.5


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ