From nobody Tue Apr 12 10:04:02 2022 X-Original-To: freebsd-stable@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 7A94811E32B3 for ; Tue, 12 Apr 2022 10:04:05 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [IPv6:2607:f3e0:0:1::12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smarthost1.sentex.ca", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kd1XN3dLQz3qkr for ; Tue, 12 Apr 2022 10:04:04 +0000 (UTC) (envelope-from mike@sentex.net) Received: from pyroxene2a.sentex.ca (pyroxene19.sentex.ca [199.212.134.19]) by smarthost1.sentex.ca (8.16.1/8.16.1) with ESMTPS id 23CA43Qw031792 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 12 Apr 2022 06:04:03 -0400 (EDT) (envelope-from mike@sentex.net) Received: from [IPV6:2607:f3e0:0:4:d955:181b:888c:769f] ([IPv6:2607:f3e0:0:4:d955:181b:888c:769f]) by pyroxene2a.sentex.ca (8.16.1/8.15.2) with ESMTPS id 23CA42hg090899 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Tue, 12 Apr 2022 06:04:03 -0400 (EDT) (envelope-from mike@sentex.net) Message-ID: <35741162-a20b-51c7-e08c-fd8a88cf2b5f@sentex.net> Date: Tue, 12 Apr 2022 06:04:02 -0400 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: vtnet rxcsum broken for forwarding RELENG_13 ? Content-Language: en-US To: Matt Garber Cc: FreeBSD-STABLE Mailing List References: From: mike tancsa In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 X-Rspamd-Queue-Id: 4Kd1XN3dLQz3qkr X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mike@sentex.net designates 2607:f3e0:0:1::12 as permitted sender) smtp.mailfrom=mike@sentex.net X-Spamd-Result: default: False [-2.31 / 15.00]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[mike]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f3e0::/32]; NEURAL_HAM_LONG(-1.00)[-1.000]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[sentex.net]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.92)[-0.916]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-1.00)[-0.998]; MLMMJ_DEST(0.00)[freebsd-stable]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:11647, ipnet:2607:f3e0::/32, country:CA]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[199.212.134.19:received] X-ThisMailContainsUnwantedMimeParts: N On 4/11/2022 8:07 PM, Matt Garber wrote: > On Mon, Apr 11, 2022 at 7:15 PM mike tancsa wrote: > > > < details about busted rxsum snipped > > > I opened up https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263229 > > > > Unless someone knows otherwise, I’ve been under the impression that PF > — or potentially any of the other FreeBSD firewalls (?), but I use PF > — has been “broken” in that regard on Linux KVM-based FreeBSD guests > for years. As such I’ve always needed to use csum_disable flags on the > vtnet interfaces or suffer *extremely* poor network performance, even > for servers not doing NAT forwarding. For forwarding / routing it certainly under performs compared to what it can do on bare metal, but for my application I need more security/management than network speed. Plus we all have more use case experience with pf at the office.  It seems to top out at around 200Mb/s with the EM nics through the VM. My use case is perhaps 5-10Mb sustained. Hypervisor is CPU: AMD EPYC Processor (2100.07-MHz K8-class CPU).     ---Mike > > E.g., see: > > https://serverfault.com/questions/817664/slow-network-fixed-adding-hw-vtnet-csum-disable-1-what-are-the-posible-side-effe > > https://forum.proxmox.com/threads/poor-virtio-network-performance-on-freebsd-guests.26289/ > > > > —Matt >