From nobody Mon Apr 21 13:17:57 2025 X-Original-To: questions@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 4Zh5XM3Hssz5tTpd for ; Mon, 21 Apr 2025 13:18:11 +0000 (UTC) (envelope-from merlyn@geeks.org) Received: from mail.geeks.org (jacobs.geeks.org [64.244.63.1]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4Zh5XL0Sb7z44wy for ; Mon, 21 Apr 2025 13:18:09 +0000 (UTC) (envelope-from merlyn@geeks.org) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of merlyn@geeks.org designates 64.244.63.1 as permitted sender) smtp.mailfrom=merlyn@geeks.org Received: from mail.geeks.org (localhost [127.0.0.1]) by after-clamsmtpd.geeks.org (Postfix) with ESMTP id 47D43BA51 for ; Mon, 21 Apr 2025 08:17:57 -0500 (CDT) Received: by mail.geeks.org (Postfix, from userid 1003) id 36A67BAD8; Mon, 21 Apr 2025 08:17:57 -0500 (CDT) Date: Mon, 21 Apr 2025 08:17:57 -0500 From: Doug McIntyre To: questions@freebsd.org Subject: Re: Avoiding the lagg(4) bottleneck Message-ID: References: <202504210148.TAA26419@mail.lariat.net> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202504210148.TAA26419@mail.lariat.net> X-Virus-Scanned: ClamAV using ClamSMTP X-Spamd-Result: default: False [1.11 / 15.00]; NEURAL_SPAM_LONG(1.00)[0.999]; NEURAL_SPAM_MEDIUM(0.93)[0.927]; NEURAL_HAM_SHORT(-0.52)[-0.520]; R_SPF_ALLOW(-0.20)[+ptr]; MIME_GOOD(-0.10)[text/plain]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:25694, ipnet:64.244.48.0/20, country:US]; MIME_TRACE(0.00)[0:+]; MISSING_XM_UA(0.00)[]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; DMARC_NA(0.00)[geeks.org]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4Zh5XL0Sb7z44wy X-Spamd-Bar: + On Sun, Apr 20, 2025 at 07:48:09PM -0600, Brett Glass wrote: > I've been attempting to expand the capacity of the connection between a > FreeBSD machine and a switch by using the lagg(4) device to aggregate two > gigabit ports. > > Unfortunately, I'm running into a bottleneck. Perhaps due to the overhead of > the driver, or limits on multithreading, or locks within the system, I can't > get anywhere near 2 Gbps out of the pair of gigabit ports. How are you testing? With LAG, any single connection is still limited by the 10G link speed. You can only get aggregate increased throughput with LAG with multiple connections, multiple streams of data. But if you've only got one stream (ie. copying one file from server to server), you are still limited by the single link speed. But it will aggregate more, the more streams, the more it can be load balanced over the LAG segments.