From nobody Mon May 09 12:04:21 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 068101AD44E9 for ; Mon, 9 May 2022 12:04:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kxfwj4l6lz3PbT for ; Mon, 9 May 2022 12:04:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8397910E98 for ; Mon, 9 May 2022 12:04:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 249C4LqC038496 for ; Mon, 9 May 2022 12:04:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 249C4LZA038495 for ports-bugs@FreeBSD.org; Mon, 9 May 2022 12:04:21 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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 Date: Mon, 09 May 2022 12:04:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: lq@et-toile.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: decke@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652097861; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=h0g0ybSKFwq9Kf6sDOo2KRAPHalS/+K9KI3iiQQxN3Y=; b=AZnmPSFm2DlSirqlH6z4EDITr9oAaMu7EQ3Wq8s2080/DNZZzYj7AruSHev06U1D9mnWsG gzSIB16CGw+Jc/ktnLUYe0guyAGhoizsnYh5fXQ2ktBq+alrVX0U/6rwy8t593nlbJrHPq vXugp95bG/IosYyomc6jCo9hhmIwcXdor52lB4tTSKIYxSYHoS1xA5KC2mA7zwQ6tOTtnF FgwvnociWdp1JA8bKLhtXQDPJHb7tFnXyiLcPmgjq8Y2edF4aP9qxcBL2iKZPyEP09g+AJ CiTWyEMr5xRHY4LHkhRupVhrqrmyeaAYNw5R2sf+mbVuAS73HQgS2Kig+WOqIg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652097861; a=rsa-sha256; cv=none; b=nc27H4BcuCesl9YFwdNg6oMdz/7D++BF+MLYmIm7ghpiLshkpLDmMzqBzij/kthuKTYDgN 0reYPPalQL058xVufLmGiFb4FshSSmPsGzhyR0MoKwHVevtfLNfa426B3CWQ0TFKYq36FJ elCKzKpQF+jN8MQGaAcc/JoEhEXd846HWyCOrUL9y/JXP34KizKQSgxRcq1rb85wOITGZZ R57NVDZq8dtguR4u73RUqfDBoU1p/FRQ65/98siQcLhA4e2HJvOoDqJqlwqO/JaocNXOpT kEFLY59mD968VEnINSVyp/41O4Y+AUoAeEnhViUWqpvPEAqSQJKM8E/I8zfPMg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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.=