All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: "David S . Miller" <davem@davemloft.net>,
	netdev <netdev@vger.kernel.org>,
	Eric Dumazet <edumazet@google.com>
Subject: Re: [PATCH net-next 0/6] netns: speedup netns dismantles
Date: Tue, 25 Jan 2022 10:02:21 -0800	[thread overview]
Message-ID: <20220125100221.3ee4be37@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net> (raw)
In-Reply-To: <20220124202457.3450198-1-eric.dumazet@gmail.com>

On Mon, 24 Jan 2022 12:24:51 -0800 Eric Dumazet wrote:
> From: Eric Dumazet <edumazet@google.com>
> 
> netns are dismantled by a single thread, from cleanup_net()
> 
> On hosts with many TCP sockets, and/or many cpus, this thread
> is spending too many cpu cycles, and can not keep up with some
> workloads.
> 
> - Removing 3*num_possible_cpus() sockets per netns, for icmp and tcp protocols.
> - Iterating over all TCP sockets to remove stale timewait sockets.
> 
> This patch series removes ~50% of cleanup_net() cpu costs on
> hosts with 256 cpus. It also reduces per netns memory footprint.

Applied, thanks, 51d555cfdcc6 ("Merge branch
'netns-speedup-dismantle'") in net-next.

      parent reply	other threads:[~2022-01-25 18:04 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-24 20:24 [PATCH net-next 0/6] netns: speedup netns dismantles Eric Dumazet
2022-01-24 20:24 ` [PATCH net-next 1/6] tcp/dccp: add tw->tw_bslot Eric Dumazet
2022-01-24 20:24 ` [PATCH net-next 2/6] tcp/dccp: no longer use twsk_net(tw) from tw_timer_handler() Eric Dumazet
2022-01-24 20:24 ` [PATCH net-next 3/6] tcp/dccp: get rid of inet_twsk_purge() Eric Dumazet
2022-02-07  3:02   ` [tcp/dccp] f6408a8641: BUG:KASAN:use-after-free_in_inet_twsk_kill kernel test robot
2022-02-07  3:02     ` kernel test robot
2022-02-07  3:30     ` Eric Dumazet
2022-02-07  3:30       ` Eric Dumazet
2022-01-24 20:24 ` [PATCH net-next 4/6] ipv4: do not use per netns icmp sockets Eric Dumazet
2022-01-24 20:24 ` [PATCH net-next 5/6] ipv6: " Eric Dumazet
2022-01-24 20:24 ` [PATCH net-next 6/6] ipv4/tcp: do not use per netns ctl sockets Eric Dumazet
2022-01-26 16:14   ` Paolo Abeni
2022-01-26 16:24     ` Eric Dumazet
2022-01-26 16:35       ` Paolo Abeni
2022-01-26 18:02         ` Eric Dumazet
2022-01-25 18:02 ` Jakub Kicinski [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220125100221.3ee4be37@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net \
    --to=kuba@kernel.org \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=eric.dumazet@gmail.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.