netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] net: lockless skb_attempt_defer_free()
@ 2025-09-26 15:13 Eric Dumazet
  2025-09-26 15:13 ` [PATCH net-next 1/3] net: make softnet_data.defer_count an atomic Eric Dumazet
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Eric Dumazet @ 2025-09-26 15:13 UTC (permalink / raw)
  To: David S . Miller, Jakub Kicinski, Paolo Abeni
  Cc: Simon Horman, Kuniyuki Iwashima, Willem de Bruijn, netdev,
	eric.dumazet, Eric Dumazet

Platforms with many cpus and relatively slow inter connect show
a significant spinlock contention in skb_attempt_defer_free().

This series refactors this infrastructure to be NUMA aware,
and lockless.

Tested on various platforms, including AMD Zen 2/3/4
and Intel Granite Rapids, showing significant cost reductions
under network stress (more than 20 Mpps).

Eric Dumazet (3):
  net: make softnet_data.defer_count an atomic
  net: use llist for sd->defer_list
  net: add NUMA awareness to skb_attempt_defer_free()

 include/linux/netdevice.h |  6 +-----
 include/net/hotdata.h     |  7 +++++++
 net/core/dev.c            | 43 +++++++++++++++++++++++----------------
 net/core/dev.h            |  2 +-
 net/core/skbuff.c         | 24 ++++++++++------------
 5 files changed, 45 insertions(+), 37 deletions(-)

-- 
2.51.0.536.g15c5d4f767-goog


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-09-28  8:45 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-26 15:13 [PATCH net-next 0/3] net: lockless skb_attempt_defer_free() Eric Dumazet
2025-09-26 15:13 ` [PATCH net-next 1/3] net: make softnet_data.defer_count an atomic Eric Dumazet
2025-09-27  1:10   ` Jason Xing
2025-09-27 19:39   ` Kuniyuki Iwashima
2025-09-26 15:13 ` [PATCH net-next 2/3] net: use llist for sd->defer_list Eric Dumazet
2025-09-27  1:09   ` Jason Xing
2025-09-27 19:52   ` Kuniyuki Iwashima
2025-09-26 15:13 ` [PATCH net-next 3/3] net: add NUMA awareness to skb_attempt_defer_free() Eric Dumazet
2025-09-27  1:33   ` Jason Xing
2025-09-27 20:28   ` Kuniyuki Iwashima
2025-09-28  8:45     ` Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).