From nobody Tue Oct 22 20:00:53 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 4XY32Z2kDFz5ZJdr for ; Tue, 22 Oct 2024 20:00:54 +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 4XY32Y0RBNz41ff for ; Tue, 22 Oct 2024 20:00:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729627253; 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=gnfw+M9uOtdUs58xP3xLAOBvcy+DurHClWj6b7ZSOqs=; b=Y5dUbzY/tao/Nv9zAqxdK5+9OsdsKmNvui7ThsNC1cZqKZtWf/ZPzNQD1jLHC65o9rBWPp ib5HRT0qkLP3CA4VpqYN/PYO9L/JV3jIWO4HEcNVpxN9fcHT9jjt/VH5z4HiNqQfZzjTqN ZdtE/e4uemlAwM79+d95NbpUy5oEYqxlgb7d3kOu8Xz3FHABxZW4qI+uJ0KLmU1I4I5MDs pjW4eM+iaeDBgUIUW5biV15szMCuKW/K/z2nOmG+a8rQAS7gkBTyEWFFUwcxkOmpIiYKFv OHHYBDseMQ/2EG2SYrYHP2FWw1zkRF1pz7aocp5T1PsyTjj6BcueBlLvVnAo3w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729627253; a=rsa-sha256; cv=none; b=kEWPWPMGdhccHXjBJy6P4c+0QoxRZbbF4Sa85+XX4kp8bKhylAo7jF2cDAiQRDEZATbU9r LtnmsixyzK7f3GuuwwbLi2dspREd/F0YIlHBhfHHvRJ/FeFJUhl9eMiydWkLpJ6xxdOedy 2KNojfyi5onMqbr5ff1y9QXpP08NqLvkhlcuy7hlTv0edQbU37Hy9r6BUkD4GuO3kV0gSk 1JmhcU6Gzj4ZmEGaXpS941DGWUxKlNeFsaU6b5DyEFmajypLD+/HnF9TferxuTVh3UJpPc fRymmdc3wsCiPglC+HkPkRNzO2iZ4BvNF2g75PD1l1BRi5lRaveE0SrUFE+weg== 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 4XY32Y01rnzSVM for ; Tue, 22 Oct 2024 20:00:53 +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 49MK0qL1085726 for ; Tue, 22 Oct 2024 20:00:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 49MK0qwR085725 for net@FreeBSD.org; Tue, 22 Oct 2024 20:00:52 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 280386] if_bridge throws output errors under load Date: Tue, 22 Oct 2024 20:00:53 +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: 14.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: cc@FreeBSD.org X-Bugzilla-Status: Open 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=3D280386 Cheng Cui changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cc@FreeBSD.org --- Comment #25 from Cheng Cui --- (In reply to Kevin Bowling from comment #22) (In reply to pascal.guitierrez from comment #23) I had a similar experience last year when I was debugging a ENOBUFS error returned to TCP on using bce NICs. But I am not sure if you can find a simi= lar solution. Turns out the root cause is the default NIC send queue length is too small.= The enobufs error came from the _IF_QFULL check in ifq.h. However, tuning "sysctl net.link.ifqmaxlen" directly does not work. There i= s a per NIC interface setup in the driver to setup device tx/rx queues. I have = to increase the tx queue "ifq_maxlen" from the device sysctl "hw.bce.tx_pages". After tuning that, I can achieve a stable 1Gbps x 100ms delay BDP. Talking about review D4295, it reminds me of `Linux has some work like TCP small queue at the sender side.` Talking about workaround, you may also test the following two patches I prepared in stable/14 branch as a workaround of improving TCP performance in congestion control. https://reviews.freebsd.org/D47218 << apply this patch firstly https://reviews.freebsd.org/D47213 << apply this patch secondly --=20 You are receiving this mail because: You are the assignee for the bug.=