From nobody Wed Oct 23 15:04:40 2024 X-Original-To: freebsd-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 4XYXQP0zVlz5ZKyv for ; Wed, 23 Oct 2024 15:04:45 +0000 (UTC) (envelope-from void@f-m.fm) Received: from fhigh-b3-smtp.messagingengine.com (fhigh-b3-smtp.messagingengine.com [202.12.124.154]) (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 4XYXQM6mdVz4qn9 for ; Wed, 23 Oct 2024 15:04:43 +0000 (UTC) (envelope-from void@f-m.fm) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=f-m.fm header.s=fm3 header.b=mKVkWafb; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=PL7twU2f; spf=pass (mx1.freebsd.org: domain of void@f-m.fm designates 202.12.124.154 as permitted sender) smtp.mailfrom=void@f-m.fm; dmarc=pass (policy=none) header.from=f-m.fm Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfhigh.stl.internal (Postfix) with ESMTP id 2EB252540110 for ; Wed, 23 Oct 2024 11:04:43 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Wed, 23 Oct 2024 11:04:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=f-m.fm; h=cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1729695883; x=1729782283; bh=QdCIqQNALJ qN2B1IGsw2upWex4oOI72qQXSUkfXmj1A=; b=mKVkWafbNh5MzqpMXAx03n8700 Par7gGPMHwqat/++UeWQ2oPIB/f4jIQEs/jlouQZNwzTlapVWDN+SC0W7hA981SU mFz0WAL+uiAe1ByWiiJkCxDDBVHde4JKFAnrBUZ9iUmIjZDHmDZBAWjcsguYKJ+D ULehLlc8aGwjPRAPNU0mm+OtJzFsUazIXeyel/JN8G52iJxU0mA+qxQqpCOgJie0 NnanZyBtrZ7bVrowO7fdnVuRx7nIcoA2ihhkK4xJISXAMJziqOjv0/G2iNoaGy4D Hrzf4aZmpj+G4G6KayZ8NLct0aNYTLapxlni9W+nnqkalbhzMt03ItnHmHGw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1729695883; x=1729782283; bh=QdCIqQNALJqN2B1IGsw2upWex4oO I72qQXSUkfXmj1A=; b=PL7twU2fU9NVwHjJg0yB5wZ6tnxmz4JaZztzJWVDW74Q meDRgSX5XvDzr7GIEUugqQ3itTZKJoFgZKzb2CnVk6YJMnAYnhqudFKXJK+BuKDi WUsvBn7mXGIvQDLD2BgOccik5juLMt/gqR5rh/XNYkAnhmY12Ptk5nhgkWQxioTb wDUnxhKyKJd5G0rApTYAHX8UoLGyQ65LgUQGdh1RtrYTX92FCR0DcmjEOpiXRcPB smNrnvUMoChU81c5xjIE7mf4mSgqB+OuwwQDUZAU96gfyeD53NXTOTkQBUYiZkGv 5m2rSUpHEdeL90mf52vSX5VKfcjkQl2qZsTOMHU4Rg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdeijedgkedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuf fkfhggtggujgesthdtredttddtvdenucfhrhhomhepvhhoihguuceovhhoihgusehfqdhm rdhfmheqnecuggftrfgrthhtvghrnhepgeetueejvdejfefhteeguddvgffgfffgtdfftd evueeklefgvdelffffffeuvefhnecuffhomhgrihhnpehttghprdgttgdphhhomhgvrdgr rhhprgenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hvohhiugesfhdqmhdrfhhmpdhnsggprhgtphhtthhopedupdhmohguvgepshhmthhpohhu thdprhgtphhtthhopehfrhgvvggsshguqdhnvghtsehfrhgvvggsshgurdhorhhg X-ME-Proxy: Feedback-ID: i2541463c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 23 Oct 2024 11:04:42 -0400 (EDT) Date: Wed, 23 Oct 2024 16:04:40 +0100 From: void To: freebsd-net@freebsd.org Subject: Re: Performance test for CUBIC in stable/14 Message-ID: References: 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 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-Spamd-Result: default: False [-3.54 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.94)[-0.938]; MID_RHS_NOT_FQDN(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[f-m.fm,none]; R_DKIM_ALLOW(-0.20)[f-m.fm:s=fm3,messagingengine.com:s=fm3]; R_SPF_ALLOW(-0.20)[+ip4:202.12.124.128/27]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[202.12.124.154:from]; FREEMAIL_FROM(0.00)[f-m.fm]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_THREE(0.00)[3]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVFROM(0.00)[f-m.fm]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[f-m.fm:+,messagingengine.com:+]; MLMMJ_DEST(0.00)[freebsd-net@freebsd.org]; MISSING_XM_UA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:151847, ipnet:202.12.124.0/24, country:AU]; DWL_DNSWL_NONE(0.00)[messagingengine.com:dkim] X-Rspamd-Queue-Id: 4XYXQM6mdVz4qn9 X-Spamd-Bar: --- On Wed, Oct 23, 2024 at 08:28:01AM -0400, Cheng Cui wrote: >The latency does not sound a problem to me. What is the performance of >TCP congestion control algorithm `newreno`? > >In case you need to load `newreno` first. > >cc@n1:~ % sudo kldload newreno > >cc@n1:~ % sudo sysctl net.inet.tcp.cc.algorithm=newreno > >net.inet.tcp.cc.algorithm: cubic -> newreno > >cc@n1:~ % > >And let me know the result of `newreno` vs. `cubic`, for example: >iperf3 -B ${src} --cport ${tcp_port} -c ${dst} -l 1M -t 20 -i 2 -VC newreno speedtests@vm4-fbsd14s:~ % doas kldload newreno speedtests@vm4-fbsd14s:~ % doas sysctl net.inet.tcp.cc.algorithm=newreno net.inet.tcp.cc.algorithm: cubic -> newreno speedtests@vm4-fbsd14s:~ % iperf3 -B 192.168.1.13 --cport 5201 -c 192.168.1.232 -l 1M -t 20 -i 2 -VC newreno iperf 3.17.1 FreeBSD vm4-fbsd14s.home.arpa 14.2-PRERELEASE FreeBSD 14.2-PRERELEASE #0 stable/14-n269252-e18ba5c5555a-dirty: Mon Oct 21 18:09:22 BST 2024 root@vm4-fbsd14s.home.arpa:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 Control connection MSS 1460 Time: Wed, 23 Oct 2024 14:41:11 UTC Connecting to host 192.168.1.232, port 5201 Cookie: tvrlkd2axzx24uui7gglzk4ni66ib7qy4kxa TCP MSS: 1460 (default) [ 5] local 192.168.1.13 port 5201 connected to 192.168.1.232 port 5201 Starting Test: protocol: TCP, 1 streams, 1048576 byte blocks, omitting 0 seconds, 20 second test, tos 0 [ ID] Interval Transfer Bitrate Retr Cwnd [ 5] 0.00-2.01 sec 137 MBytes 572 Mbits/sec 0 629 KBytes [ 5] 2.01-4.13 sec 159 MBytes 628 Mbits/sec 0 928 KBytes [ 5] 4.13-6.12 sec 192 MBytes 809 Mbits/sec 0 1.16 MBytes [ 5] 6.12-8.08 sec 153 MBytes 656 Mbits/sec 0 1.33 MBytes [ 5] 8.08-10.08 sec 176 MBytes 737 Mbits/sec 0 1.51 MBytes [ 5] 10.08-12.13 sec 211 MBytes 864 Mbits/sec 0 1.69 MBytes [ 5] 12.13-14.04 sec 138 MBytes 606 Mbits/sec 73 1.01 MBytes [ 5] 14.04-16.02 sec 155 MBytes 657 Mbits/sec 0 1.21 MBytes [ 5] 16.02-18.10 sec 168 MBytes 678 Mbits/sec 0 1.39 MBytes [ 5] 18.10-20.13 sec 188 MBytes 777 Mbits/sec 0 1.56 MBytes - - - - - - - - - - - - - - - - - - - - - - - - - Test Complete. Summary Results: [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-20.13 sec 1.64 GBytes 699 Mbits/sec 73 sender [ 5] 0.00-20.14 sec 1.64 GBytes 698 Mbits/sec receiver CPU Utilization: local/sender 97.7% (0.0%u/97.7%s), remote/receiver 19.5% (1.6%u/17.9%s) snd_tcp_congestion newreno rcv_tcp_congestion newreno iperf Done. ====================================== speedtests@vm4-fbsd14s:~ % doas sysctl net.inet.tcp.cc.algorithm=cubic net.inet.tcp.cc.algorithm: newreno -> cubic speedtests@vm4-fbsd14s:~ % iperf3 -B 192.168.1.13 --cport 5201 -c 192.168.1.232 -l 1M -t 20 -i 2 -VC cubic iperf 3.17.1 FreeBSD vm4-fbsd14s.home.arpa 14.2-PRERELEASE FreeBSD 14.2-PRERELEASE #0 stable/14-n269252-e18ba5c5555a-dirty: Mon Oct 21 18:09:22 BST 2024 root@vm4-fbsd14s.home.arpa:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 Control connection MSS 1460 Time: Wed, 23 Oct 2024 14:51:30 UTC Connecting to host 192.168.1.232, port 5201 Cookie: wp5nkovyy5pwzqos4lsdlqv4loccl6iu5kdv TCP MSS: 1460 (default) [ 5] local 192.168.1.13 port 5201 connected to 192.168.1.232 port 5201 Starting Test: protocol: TCP, 1 streams, 1048576 byte blocks, omitting 0 seconds, 20 second test, tos 0 [ ID] Interval Transfer Bitrate Retr Cwnd [ 5] 0.00-2.03 sec 184 MBytes 762 Mbits/sec 0 752 KBytes [ 5] 2.03-4.07 sec 198 MBytes 811 Mbits/sec 0 1.05 MBytes [ 5] 4.07-6.13 sec 193 MBytes 787 Mbits/sec 0 1.28 MBytes [ 5] 6.13-8.08 sec 203 MBytes 874 Mbits/sec 0 1.48 MBytes [ 5] 8.08-10.13 sec 192 MBytes 786 Mbits/sec 0 1.65 MBytes [ 5] 10.13-12.13 sec 156 MBytes 653 Mbits/sec 44 1.40 MBytes [ 5] 12.13-14.13 sec 167 MBytes 703 Mbits/sec 16 1.04 MBytes [ 5] 14.13-16.07 sec 167 MBytes 721 Mbits/sec 0 1.25 MBytes [ 5] 16.07-18.02 sec 114 MBytes 490 Mbits/sec 0 1.37 MBytes [ 5] 18.02-20.04 sec 173 MBytes 719 Mbits/sec 0 1.53 MBytes - - - - - - - - - - - - - - - - - - - - - - - - - Test Complete. Summary Results: [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-20.04 sec 1.71 GBytes 731 Mbits/sec 60 sender [ 5] 0.00-20.05 sec 1.71 GBytes 730 Mbits/sec receiver CPU Utilization: local/sender 97.6% (0.0%u/97.6%s), remote/receiver 20.5% (1.8%u/18.6%s) snd_tcp_congestion cubic rcv_tcp_congestion cubic iperf Done. speedtests@vm4-fbsd14s:~ % --