Skip to content

Batched netns improvements.

Eric W. Biederman netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7net: Add support for batching network namespace cleanupsinclude/net/net_namespace.h net/core/net_namespace.c+63 -610 replies
2/7net: Move network device exit batchingnet/core/dev.c net/core/net_namespace.c+25 -240 replies
3/7net: Allow xfrm_user_net_exit to batch efficiently.include/net/netns/xfrm.h net/xfrm/xfrm_user.c+11 -80 replies
4/7netns: Add an explicit rcu_barrier to unregister_pernet_{device|subsys}net/core/net_namespace.c+6 -20 replies
5/7net: Allow fib_rule_unregister to batchinclude/net/fib_rules.h net/core/fib_rules.c net/decnet/dn_rules.c +2 more+57 -380 replies
6/7net: Use rcu lookups in inet_twsk_purge.net/ipv4/inet_timewait_sock.c+24 -151 reply
7/7net: Batch inet_twsk_purgeinclude/net/inet_timewait_sock.h net/ipv4/inet_timewait_sock.c net/ipv4/tcp_ipv4.c +1 more+24 -144 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchEric Dumazet
1/7
2/7
3/7
4/7
5/7
6/7A-b
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] Batched netns improvements.

This series of patches takes my simple 4k network namespace exit test from about 44s to 1.6s, with a minuscule increase in code side.

While batching has given me big improvements there are a few changes in there that improve the performance of cleaning up a single network namespace.

Eric

 include/net/fib_rules.h          |    3 +-
 include/net/inet_timewait_sock.h |    6 +-
 include/net/net_namespace.h      |    2 +
 include/net/netns/xfrm.h         |    1 +
 net/core/dev.c                   |   25 +++++++
 net/core/fib_rules.c             |   36 +++++++++-
 net/core/net_namespace.c         |  138 ++++++++++++++++----------------------
 net/decnet/dn_rules.c            |   22 +++---
 net/ipv4/fib_rules.c             |   12 +---
 net/ipv4/inet_timewait_sock.c    |   45 ++++++++-----
 net/ipv4/tcp_ipv4.c              |   11 ++-
 net/ipv6/fib6_rules.c            |   22 ++----
 net/ipv6/tcp_ipv6.c              |   11 ++-
 net/xfrm/xfrm_user.c             |   18 +++--
 14 files changed, 200 insertions(+), 152 deletions(-)