netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Vinš Karel" <karel.vins@skoda.cz>
To: 'Eyal Birger' <eyal.birger@gmail.com>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: RE: [External] Re: High (200+) XFRM interface count performance problem (throughput)
Date: Thu, 25 Feb 2021 16:28:28 +0000	[thread overview]
Message-ID: <978dc613e5374ae19e13a5d920079c07@skoda.cz> (raw)
In-Reply-To: <8bb5f16f9ec9451d929c0cf6d52d9cb2@skoda.cz>

Hi Eyal,
with kernel 5.10 it work very well. Tested with 10 000 interfaces. Thank you once more.

Regards, Karel

-----Original Message-----
From: Vinš Karel <karel.vins@skoda.cz> 
Sent: Wednesday, February 24, 2021 12:02 PM
To: 'Eyal Birger' <eyal.birger@gmail.com>
Cc: netdev@vger.kernel.org
Subject: [External] RE: [External] Re: High (200+) XFRM interface count performance problem (throughput)

.

Hi Eyal, thank you for response. I found that commit with your comment during the night. I will test it.
Do you think that there is a chance to backport this to 5.4 as it is LTS kernel?

Regards,

Karel

-----Original Message-----
From: Eyal Birger <eyal.birger@gmail.com>
Sent: Wednesday, February 24, 2021 9:15 AM
To: Vinš Karel <karel.vins@skoda.cz>
Cc: netdev@vger.kernel.org
Subject: [External] Re: High (200+) XFRM interface count performance problem (throughput)

.

Hi Vinš,

On Tue, Feb 23, 2021 at 9:52 PM Vinš Karel <karel.vins@skoda.cz> wrote:
>
> Hello,
>
> I would like to ask you for help or advise.
>
> I'm testing setup with higher number of XFRM interfaces and I'm facing throughput degradation with a growing number of created XFRM interfaces - not concurrent tunnels established but only XFRM interfaces created - even in DOWN state.
> Issue is only unidirectional - from "client" to "vpn hub". Throughput for traffic from hub to client is not affected.
>
> XFRM interface created with:
> for i in {1..500}; do link add ipsec$i type xfrm dev ens224 if_id $i ; 
> done
>
> I'm testing with iperf3 with 1 client connected - from client to hub:
> 2 interfaces - 1.36 Gbps
> 100 interfaces - 1.35 Gbps
> 200 interfaces - 1.19 Gbps
> 300 interfaces - 0.98 Gbps
> 500 interfaces - 0.71 Gbps
>
> Throughput from hub to client is around 1.4 Gbps in all cases.
>
> 1 CPU core is 100%
>
> Linux v-hub 5.4.0-65-generic #73-Ubuntu SMP Mon Jan 18 17:25:17 UTC
> 2021 x86_64 x86_64 x86_64 GNU/Linux

Can you please try with a higher kernel version (>= 5.9)?
We've done some work to improve xfrm interface scaling specifically e98e44562ba2 ("xfrm interface: store xfrmi contexts in a hash by if_id").

Thanks,
Eyal.

      reply	other threads:[~2021-02-25 16:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-23 13:33 High (200+) XFRM interface count performance problem (throughput) Vinš Karel
2021-02-24  8:14 ` Eyal Birger
2021-02-24 11:02   ` [External] " Vinš Karel
2021-02-25 16:28     ` Vinš Karel [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=978dc613e5374ae19e13a5d920079c07@skoda.cz \
    --to=karel.vins@skoda.cz \
    --cc=eyal.birger@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 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).