Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 May 2022 12:04:21 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 263877] net/wireguard: go implementation is twice faster than the kernel's one
Message-ID:  <bug-263877-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263877

            Bug ID: 263877
           Summary: net/wireguard: go implementation is twice faster than
                    the kernel's one
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: decke@FreeBSD.org
          Reporter: lq@et-toile.com
             Flags: maintainer-feedback?(decke@FreeBSD.org)
          Assignee: decke@FreeBSD.org

Dear Sirs,

  I am having better performance using the wireguard-go port than the
wireguard-kmod port, I was expecting the opposite.
I thought it was only related to my servers, so I tried on other servers (t=
ried
till now about 10 servers, using HP, Dell with igb/bge/cxl/ix) and still the
same thing.
Yesterday, I tried with a fresh installation on 2 servers and had the same
results.
So I am wondering if someone else is seeing the same problems.

Here are some iperf3 on 2 fresh FreeBSD 13 both servers are Xeon E5-2640
128Gram:

1)Np VPN lro and tso on:
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  1.10 GBytes  9.41 Gbits/sec    0   1.61 MBytes=20=
=20=20=20=20=20=20
[  5]   1.00-2.00   sec  1.10 GBytes  9.41 Gbits/sec    0   1.61 MBytes=20=
=20=20=20=20=20=20
[  5]   2.00-3.00   sec  1.10 GBytes  9.42 Gbits/sec    0   1.61 MBytes=20=
=20=20=20=20=20=20
[  5]   3.00-4.00   sec  1.10 GBytes  9.41 Gbits/sec    0   1.61 MBytes=20=
=20=20=20=20=20=20
[  5]   4.00-5.00   sec  1.10 GBytes  9.42 Gbits/sec    0   1.61 MBytes=20=
=20=20=20=20=20=20
[  5]   5.00-6.00   sec  1.10 GBytes  9.42 Gbits/sec    0   1.61 MBytes=20=
=20=20=20=20=20=20
[  5]   6.00-7.00   sec  1.10 GBytes  9.41 Gbits/sec    0   1.61 MBytes=20=
=20=20=20=20=20=20
[  5]   7.00-8.00   sec  1.10 GBytes  9.42 Gbits/sec    0   1.61 MBytes=20=
=20=20=20=20=20=20
[  5]   8.00-9.00   sec  1.10 GBytes  9.41 Gbits/sec    0   1.61 MBytes=20=
=20=20=20=20=20=20
[  5]   9.00-10.00  sec  1.10 GBytes  9.41 Gbits/sec    0   1.61 MBytes=20=
=20=20=20=20=20=20
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  11.0 GBytes  9.41 Gbits/sec    0             sender
[  5]   0.00-10.00  sec  11.0 GBytes  9.41 Gbits/sec                  recei=
ver

2)Np VPN lro and tso off:
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   518 MBytes  4.34 Gbits/sec    0   1.20 MBytes=20=
=20=20=20=20=20=20
[  5]   1.00-2.00   sec   543 MBytes  4.56 Gbits/sec    0   1.61 MBytes=20=
=20=20=20=20=20=20
[  5]   2.00-3.00   sec   542 MBytes  4.54 Gbits/sec    0   1.61 MBytes=20=
=20=20=20=20=20=20
[  5]   3.00-4.00   sec   537 MBytes  4.51 Gbits/sec    0   1.61 MBytes=20=
=20=20=20=20=20=20
[  5]   4.00-5.00   sec   536 MBytes  4.50 Gbits/sec    0   1.61 MBytes=20=
=20=20=20=20=20=20
[  5]   5.00-6.00   sec   533 MBytes  4.47 Gbits/sec    0   1.61 MBytes=20=
=20=20=20=20=20=20
[  5]   6.00-7.00   sec   533 MBytes  4.47 Gbits/sec    0   1.61 MBytes=20=
=20=20=20=20=20=20
[  5]   7.00-8.00   sec   537 MBytes  4.50 Gbits/sec    0   1.61 MBytes=20=
=20=20=20=20=20=20
[  5]   8.00-9.00   sec   539 MBytes  4.53 Gbits/sec    0   1.61 MBytes=20=
=20=20=20=20=20=20
[  5]   9.00-10.00  sec   540 MBytes  4.52 Gbits/sec    0   1.61 MBytes=20=
=20=20=20=20=20=20
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  5.23 GBytes  4.49 Gbits/sec    0             sender
[  5]   0.00-10.03  sec  5.23 GBytes  4.48 Gbits/sec                  recei=
ver

3)Wireguard-go:
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.01   sec   100 MBytes   832 Mbits/sec  307    383 KBytes=20=
=20=20=20=20=20=20
[  5]   1.01-2.00   sec  23.0 MBytes   194 Mbits/sec  337    983 KBytes=20=
=20=20=20=20=20=20
[  5]   2.00-3.00   sec  65.8 MBytes   553 Mbits/sec  530   41.4 KBytes=20=
=20=20=20=20=20=20
[  5]   3.00-4.00   sec  89.8 MBytes   753 Mbits/sec  411   98.1 KBytes=20=
=20=20=20=20=20=20
[  5]   4.00-5.01   sec  99.9 MBytes   830 Mbits/sec  337   1.14 MBytes=20=
=20=20=20=20=20=20
[  5]   5.01-6.00   sec  24.5 MBytes   207 Mbits/sec  651   2.67 KBytes=20=
=20=20=20=20=20=20
[  5]   6.00-7.00   sec  90.6 MBytes   762 Mbits/sec  472   79.1 KBytes=20=
=20=20=20=20=20=20
[  5]   7.00-8.00   sec  88.6 MBytes   744 Mbits/sec  387    152 KBytes=20=
=20=20=20=20=20=20
[  5]   8.00-9.01   sec  40.9 MBytes   339 Mbits/sec  791   1.35 MBytes=20=
=20=20=20=20=20=20
[  5]   9.01-10.00  sec  81.3 MBytes   691 Mbits/sec  1423   91.2 KBytes=20=
=20=20=20=20=20=20
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   705 MBytes   591 Mbits/sec  5646             send=
er
[  5]   0.00-10.00  sec   703 MBytes   590 Mbits/sec                  recei=
ver

4)Wireguard-kmod:
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  39.5 MBytes   331 Mbits/sec    0    485 KBytes=20=
=20=20=20=20=20=20
[  5]   1.00-2.00   sec  39.0 MBytes   327 Mbits/sec    0    490 KBytes=20=
=20=20=20=20=20=20
[  5]   2.00-3.00   sec  39.0 MBytes   327 Mbits/sec    0    490 KBytes=20=
=20=20=20=20=20=20
[  5]   3.00-4.00   sec  39.0 MBytes   327 Mbits/sec    0    490 KBytes=20=
=20=20=20=20=20=20
[  5]   4.00-5.00   sec  39.0 MBytes   327 Mbits/sec    0    490 KBytes=20=
=20=20=20=20=20=20
[  5]   5.00-6.00   sec  39.0 MBytes   328 Mbits/sec    0    490 KBytes=20=
=20=20=20=20=20=20
[  5]   6.00-7.00   sec  39.1 MBytes   327 Mbits/sec    0    490 KBytes=20=
=20=20=20=20=20=20
[  5]   7.00-8.00   sec  39.1 MBytes   329 Mbits/sec    0    490 KBytes=20=
=20=20=20=20=20=20
[  5]   8.00-9.00   sec  39.1 MBytes   328 Mbits/sec    0    490 KBytes=20=
=20=20=20=20=20=20
[  5]   9.00-10.00  sec  39.1 MBytes   328 Mbits/sec    0    490 KBytes=20=
=20=20=20=20=20=20
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   391 MBytes   328 Mbits/sec    0             sender
[  5]   0.00-10.02  sec   391 MBytes   327 Mbits/sec                  recei=
ver

Thank you for any suggestion to debug this issue.

Best regards
LQ

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-263877-7788>