From nobody Fri Mar 15 12:14:33 2024 X-Original-To: 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 4Tx38V20d3z5DK0M for ; Fri, 15 Mar 2024 12:14:34 +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 4Tx38T6czNz4GCF for ; Fri, 15 Mar 2024 12:14:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710504873; a=rsa-sha256; cv=none; b=oX+O9/v9pci7sHptwaG92xrBl7APMiTTHNMaWnGzyMDd4d2qtGMsYLr+/Z5+1YO/miK/hp /PT3zKt8NUSxQmLEAfbCJ/2q5Sd13NI4IPDL6zVw1i0P/ggGZ8851RiJaFWvlv4BTwQvbw M3nU5Ue79pVzdHFPXBHM1AFTNLYnqXAhEvN9CdylPR0X2aCdSfl0+QJJ+nMvSW97Artdm2 PL6Aah74Fl3/FTMxlCyK3S4OqFLPvsuaXGGjQrgFIvKmSrlYt5mGElQGhZmu/n9fGFm/eb T/A0L7C2KprbxS3UUqkr25pHwwmU5G7AqFs5jvrhtnDvotEEA6VjGr3uIZcy9A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710504873; 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=CvUA1wVNzqKe51nobWogZnsskWZ3yVx+4fzynbIIQgk=; b=YALIv40jeR0bKbpBD/LoFGDnSa72P11OHEUKlskDK3TjkgOc+A2zbHF/4pFhOHfOY1iwZM OwbEBgf1pjnpIFQAjn2xy7/RKCnNBMZyKuA9nkNKjZYYNmhvTZ3+DveEuR17vVgkFMclzo mH147/f0j3x1StgoJpOxEJucWKsL/dXeyi+h/F0U7uLkfdTf7OgahKnzt8sddChI7SVD60 znnb3EBaT8U3ft+n3yCABW5cSTT4oRNwHdVKuqckJc4ZUxB5uZNd2pVA3Z3ufBSb62yRrM sjuLG80YPatHvFbKK26Baps3Gfs4PTP/4s7wIxvPRxhUZK8MJrNuDyLHh0JolQ== 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 4Tx38T6F7Nz19Lq for ; Fri, 15 Mar 2024 12:14:33 +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 42FCEXCF087495 for ; Fri, 15 Mar 2024 12:14:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42FCEXOY087494 for bugs@FreeBSD.org; Fri, 15 Mar 2024 12:14:33 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: bugs@FreeBSD.org Subject: [Bug 277718] Really bad throughput of pf NAT over vtnet(4) with rx/txcsum enabled Date: Fri, 15 Mar 2024 12:14:33 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: pmh@hausen.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277718 Bug ID: 277718 Summary: Really bad throughput of pf NAT over vtnet(4) with rx/txcsum enabled Product: Base System Version: 14.0-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: pmh@hausen.com Hi Kristof, I still owe you a proper bug ticket for the issue we shortly talked about in Coimbra. During the winter holidays when I planned to work on "open source things" I fell ill with covid - so that was that. Anyway, the issue is still quite easily reproducible in 14.0-p5. I have this virtual machine at Vultr located in New Jersey that I use as a wireguard (kernel module as standard in releng/14) endpoint for obvious reasons. The uplink has a single public IPv4 and a single public IPv6 addre= ss so I use tunnel networks for both protocols and NAT both outbound to the interface address. Wireguard config: ---- [Interface] Address =3D 192.168.254.1/24,2003:a:d59:3840::1/64 PrivateKey =3D *** ListenPort =3D 51820 # PMH [Peer] PublicKey =3D *** AllowedIPs =3D 192.168.254.2/32,2003:a:d59:3840::2/128 ---- The client (Mac OS) has 0.0.0.0/0 and ::/0 in its AllowedIPs routing the en= tire traffic through the tunnel. For IPv4 I use an RFC 1918 network, obviously. For IPv6 I use a GUA /64 fro= m my allocation at home, because ULA are essentially useless the way current des= ktop OSes treat them. pf NAT config: ---- nat on vtnet0 from 192.168.254.0/24 to any -> 140.82.8.233 nat on vtnet0 from 2003:a:d59:3840::/64 to any -> 2001:19f0:5:2634:5400:3ff:fefa:33f9 pass all no state ---- I am currently sitting behind a local 100 Mbit/s symmetrical uplink. Using Ookla Speedtest I get: Local connection without VPN enabled: 90/90 Mbit/s VPN connection with vtnet0 -rxcsum -txcsum -rxcsum6 -txcsum6: 80/80-ish Mbi= t/s, no noticeable slowdown VPN connection with vtnet0 without -rxcsum -txcsum -rxcsum6 -txcsum6: 0.3 Mbit/s download while upload seems to be unaffected I can give you root access to the server if required. Kind regards, Patrick --=20 You are receiving this mail because: You are the assignee for the bug.=