From nobody Sat Aug 17 22:19:42 2024 X-Original-To: net@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 4WmYFD5bbvz5TnJ8 for ; Sat, 17 Aug 2024 22:19:44 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WmYFD4XqLz4WGp for ; Sat, 17 Aug 2024 22:19:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723933184; a=rsa-sha256; cv=none; b=AXo+vCJ64gyCJ/yS37Kk34VA0hu7ETzBuz2TOdxFePuVNDoxWPkJfnySU9m5eaOGh3WSOU lIShkMrKkL8oit68D6kxTaoIha2NF2No6LRqrmVltc81WH5oCG5Nx/5/q0OfpaPjEZ7Py3 hMfZ9Zwwp28446qYYqH42Js0YX0L9xc2t0nE75JMzdo1bltpjIVaZhHS+HOPAaLhyTbbVn +l13v5Sl3ZVtSbrKQXVIdlx9Ya5iZORYW7PiG/Ss31ObxqclwKgldMUPvAYcWOL6HcWsrP aMoiPnaQjEpdOxnUhF1JmHSPhAjAvGcbFi1nUlxerTfuLRAbaHjA8iqVzEmNyQ== 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=1723933184; 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: in-reply-to:in-reply-to:references:references; bh=0h3yE3BYHMRwF7tmUVySl6wq3SXUtmTZK9Tr92mo4Qg=; b=E1bhwJHNWri6cvjNTW+mGtwQtIOICZU5UIUhAn7ylxoaLdmTutIadiatHVkl8Ii0ZBxKGZ w2Ep1/1VoGJPWBr8zvRNi2AclWvks5fEn45x3bHsPkDVZziDoSnM7RsbLT/4ySB+T6nlCX tAa9yoG766tjwWjKqYU+l9IwgizdpWAlUf2i3ehKdpzGE2T4sT9FRd9cAg/LXiHsFo2Xhj 0i4Y2FGpdHjda7mpHHuONlPZJCKS+TWInvKK6F6YnAKL8Bh+8l481yANFNpstIfrx/Ug2Y tinJsu0nga0Y2zQ9Qpx05OYPD2/ruJSanTnBwBwAPkvQdtJtI+en646PeWWQlg== 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 4WmYFD3tr5z16nx for ; Sat, 17 Aug 2024 22:19:44 +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 47HMJi6r071589 for ; Sat, 17 Aug 2024 22:19:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 47HMJiGc071584 for net@FreeBSD.org; Sat, 17 Aug 2024 22:19:44 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: net@FreeBSD.org Subject: [Bug 252015] Enabling LRO on network interfaces by default considered harmful Date: Sat, 17 Aug 2024 22:19:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jeffpc@josefsipek.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: 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: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252015 Josef 'Jeff' Sipek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jeffpc@josefsipek.net --- Comment #4 from Josef 'Jeff' Sipek --- I've also had LRO issues recently and it sounds like it's the same problem = as what this ticket describes. Disabling LRO seems to fix the performance problem. Sometimes jails on my server get really poor TCP performance - on the order= of 10kB/s. Looking at tcpdump output, it looks like occasionally the jail receives a packet that's bigger than the MTU (e.g., 2896 which is > 1500) w= hich causes the jail to ignore the packet. Then the first ~MTU-worth of data ge= ts retransmitted, the jail ACKs it, and things are ok for a little while before the next >MTU packet arrives. This is what it *looks like* in tcpdump output. I don't know what's actuall= y on the wire, but I suspect that the physical packets are correctly sized becau= se when I disable LRO (which was on by default), the packets never seem to exc= eed the MTU and I get near line-speed TCP performance. I have seen this on a server with a number of vnet jails. Each jail has a epair that's a member of bridge that's on a vlan on a lagg. More graphical= ly: em[02] -> lagg0 -> lagg0.31 -> bridge31 <- epairNa That is, 2 e1000e cards are combined into lagg0. VLAN 31 on the lagg is a member of the bridge31 bridge. Each jail gets an epair, and the host-side of the epair is also a member of bridge31. # uname -a FreeBSD osiris 14.1-RELEASE-p3 FreeBSD 14.1-RELEASE-p3 GENERIC amd64 # freebsd-version -kru 14.1-RELEASE-p3 14.1-RELEASE-p3 14.1-RELEASE-p3 (I've also seen it on 14.0.) host# ifconfig > /tmp/pre host# ifconfig lagg0 -lro host# ifconfig > /tmp/post host# diff -u /tmp/pre /tmp/post --- /tmp/pre 2024-08-10 14:12:11.812066000 +0000 +++ /tmp/post 2024-08-10 14:13:19.578057000 +0000 @@ -1,11 +1,11 @@ em0: flags=3D1008943 metric 0 mtu 1500 -=20=20=20=20=20=20 options=3D4e524bb +=20=20=20=20=20=20 options=3D4e520bb ether 00:25:90:50:81:ed media: Ethernet autoselect (1000baseT ) status: active nd6 options=3D29 em2: flags=3D1008943 metric 0 mtu 1500 -=20=20=20=20=20=20 options=3D4e524bb +=20=20=20=20=20=20 options=3D4e520bb ether 00:25:90:50:81:ed hwaddr 00:25:90:50:81:ec media: Ethernet autoselect @@ -19,7 +19,7 @@ groups: lo nd6 options=3D21 lagg0: flags=3D1008943 metric 0 mtu 1500 -=20=20=20=20=20=20 options=3D4e524bb +=20=20=20=20=20=20 options=3D4e520bb ether 00:25:90:50:81:ed hwaddr 00:00:00:00:00:00 laggproto lacp lagghash l2,l3 --=20 You are receiving this mail because: You are the assignee for the bug.=