From nobody Sat Dec 23 23:32:01 2023 X-Original-To: freebsd-arm@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 4SyL6q5BsTz558x9 for ; Sat, 23 Dec 2023 23:32:19 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic311-25.consmr.mail.gq1.yahoo.com (sonic311-25.consmr.mail.gq1.yahoo.com [98.137.65.206]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 4SyL6p4yFmz3Dc0 for ; Sat, 23 Dec 2023 23:32:18 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b="V/2ymu17"; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.65.206 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1703374337; bh=YEvkR6eJbDkcVI5Z8CxkzLUAdrJu8AsRN1uCJt/J224=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=V/2ymu172ilG+RlPaxjAUmgXuJ4b55urxsplAaBYwEQg7VXqJZzQpFL61DjipwH4MRJEZ+PvyCTXNW7b8G1ZSiScVDtblBSj+TUfHSJX7aMVfVbNNwcoJrAM6HOTxvqygpAzzpkKH8UDu65GrYpmOPLNk1eVnVKV9qi7n9RJ2bkQDgTWnJXjslV8aIYpOGCSrQOaZSS40s9TTBkqOITe/w4XOUl5xVfRkhmWDZLEn0eMp4pQtYNVM0sZw6+Mxu2xiAf5eklSUZfYH2xAgAywKsJJ5tpVpzEae2KBgDAPKn6sf8YvksN8m/1YZyJBEIbn/5jlOX7srI9yya5RqIbidQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1703374337; bh=FHd302nttU/bb8U0wMKtd5QyYmr3s0gdSLzzr3gnmS/=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=rwviXasMvbBFm+pt0v1W1zuNX63YLzR3tZSP+HkRY3MJ7+Fs4GXlfWNAwIJLvarhoRefwufGYpNVSLD/iKKs9DkCHDAK8sHEQeDqr0bd8gsBk3UF3IaCgxhwa1MC5CMIHs3NqboTENAKgCtnNG60eAsSZZgctOdXc05UagNC7l7teJqKXYJRlQ2/Lxb67fiBdPiF5uz8p8xVcwAFfEaptaqfjut4CifyyksIPBCKYrbye7oezwPl8Wikb+xTWwMu/wgHWd8H0YEBxMFeP8y5Z/1kbEtgvWK5Mc4JKRh+z/3Fs25tHqHQ2X1HUBoXII0PUpXzFIUsurNCb4clKH82Xg== X-YMail-OSG: ehz2_QMVM1nBWwrG5yw6ynhn.H99nbEslTJCTfhpJn4ELijDjvRKvM3YrAcsyAh y8b15nCjv2taoRMTv06qmErjabi.ZfVJB7mGlMgowLCtDWAH3qwxaY98YM3eN3iD774OlhIkV75b H.Gsh7kdLxVkzZv.f891jzpZpuO2rVxvW6FInIfRUXA2DgOl5Rx1bKQK8.IzxWt5FUALr_YgqREH nZO7F5cit5DxtejsX1EYFn3xKeEA20.cQpGpeKeFoknfSUkmafk_lE5hG3D2Olg23cboaR93ah8G AitKRGxQy8GndFopawc_n8YRCE6j0FDJ5WaBh5HU2i_bUw33QdQs3PiMq5ZimGyeIfY0ZjXY5Fwe Zzw_aUvDTmQAE_nsj.EZn0bKYV80nSEBBsw8gLneZhcezjAvF1i4p5HptZe.dAiL9MUdrkUMJqDR yuQ.GW5TBvB4CSlHq9RCo5DTI3XIpFaDWy39n7lygg8Jl.tDpUIBlMGhziDEEGC3IX6qJ5.bjlSp 9pkcXPZVo88qPEcWlSCaQjSpBpwnlvHXn_ngTUhOYO0fyWqoWMLK611RCS42191wETP14Kn.1OLP nhV3PmwEu75JOlWaOPz0zMRPVICWYR4y7IyyGhpSriLwtxU6VyEQem2SF2Uago8t4Xiw7mbNRIvN v6ADUwy8hoRx_9xOHxsLzFQUOPb83v65MiiyEP8X5axO9LLEV1tWU6h7eAhIWGE1jwKZB5Zv31_f dgcIviFysYIZIVlUj0SWyBjySzvlRTPK6OpaZzHo6W0TopQe73Uf8NwOlwsK7fkvtC2iIeVgcnYa SNxYnKlkz7keKerpLcG.W6dNB.pwhjCE49B__kQlHfXHFTBwy2gdin25MJCuJepvVwVkmbCxAYZZ abpvOA8Hrxpv1Jq8ok9qB.KULGg7GKOffPMiNhmnklbUSgym85hy6QcQRhSceAGw7klbW040cSdi ED2XRfS59zBXlRytoHhI3E9g85YBdgvfDDThmxDyyWvARs2djMhIOIW4mTm47CBgN549o_zIJCPa q7Q3rUk8CuEh7CvRrZj5e9XRRP0tPpZwLisFgTBAW_NFIld9Fyx16eau2oEtSQgAIAl0dmcvvgln cDXstpuiAy4neh_41rvRQq0w8WPRLYOpYBQyACq1OCZ0TCaV2_xwpyzGr3ZV0jO8wqV4gVMKRBFe QgXxWEm1s690zKh2icSbQOktyxACRVp32uuh.BTEMDvUIn3zofPr4mAUtRPo9QkJ2XQP2Gplup7v gMrQgyUFTX3hMZO1KzTECGLL_QFV.nr.yUhChxfTknlNhlP0o0C2u_TCmf.q67EjqR6levsJec6i uvc4QKdxi9EVWWO_DK.6U_3p46bujKF5e_spxcLSKXOUDWhOz1CX2HCMEGVxyh4rktPMXIDuNqYO Vz2nM_cG275r5mvW9wdtlQCvW_h0QEbMXlREzd4Y7KGbWz.PJGQtHR0G39u0rd0QV4DJlnmex.nO SooYTFlrmHr_JB3St5vVabPY8aRSJLVtPs11V3UTN6z8iBK0PptTMLfahN14zlYNRJ2wQGmvMxsK 2RZwSRxCWTpQb2Yno6Dysf6QLm_2ZiEdYvGUQZafOznB0RuqKn3NoT0ajS3Vm8s7z3B5OpkXgiFj PNXHgQa9vGl_OCF1Mg2iNvE_fQa33n.sofw_RmLsJhnY47mo_QVH1vDtaX6VQxd450JZA4DZifcC osJ5kXBKBDADdjNLm8JwepOpFTBev79sGhhTCL0L5eho.R7IhzsUaUl5vwTCN0A3HJQT7T0QH1e6 Md8W5pi2xqwlQtnSqeIwjYEuC5tvyvo0fVWWjvvJ_IV.ZH.4vhH0wNHK9bY4E5bdfW1qO2lun9SM MEW_DnLeGbdVUIH067jP.A9vIySet0C1aKvAEIsht8X0u9JalkYeL5HyQeIermwZi5UrwHqU6vtz ddUvtMGGhT.q_Ej5Ddvi3wd0sdTJg.i2rC9A4JYqt3Xt8RRAx2nHA1yoPJX_jd4kPXILtV2NlsRW 1gv6Y7.VRLXY1MLdcNh4B5XLjej4I6R.RZGu.UmTIaeoYg_ZW6LSq.lYQ.2uj51Vqjjbh7qMd.LM BEtAiNBWwWzMHNC7lBXnwRFKXCAC1avaUwLygiZpizPcYukTy17DDu671xmlY0bJ7kRnWw0vG_Ve HF0nXhyufvgyj787j1pIfjo9ENuL1fd9WrptaP9eOeepERTTbV2oJMnaVDpCXv3CH4mQc2yqBY8P .7ZygJCePJrcely.s0IP3xkSqXEpcLfU7FWjkwGTwNofsfy_HlXcksZqw8lh3gfmxemBPtat11JW LJ7Pi X-Sonic-MF: X-Sonic-ID: f755bc14-b9c7-4215-8914-e4c58293a275 Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.gq1.yahoo.com with HTTP; Sat, 23 Dec 2023 23:32:17 +0000 Received: by hermes--production-gq1-6949d6d8f9-bvfr7 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 45dcbf7e53af0d1e046434cc394e7c97; Sat, 23 Dec 2023 23:32:12 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.300.61.1.2\)) Subject: Re: FreeBSD 14.0-RELEASE and Raspberry Pi CM4 4GB From: Mark Millard In-Reply-To: <8CBB5E92-942E-43FA-B188-8288480B8D95@yahoo.com> Date: Sat, 23 Dec 2023 15:32:01 -0800 Cc: Steve Bernacki , "freebsd-arm@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <445940f7-e8f1-4dbc-87be-99bfd705141d@copacetic.net> <2E1B887B-EB3C-4F47-A6EE-8256149F7C84@karels.net> <8CBB5E92-942E-43FA-B188-8288480B8D95@yahoo.com> To: Mike Karels X-Mailer: Apple Mail (2.3774.300.61.1.2) X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_THREE(0.00)[3]; FROM_HAS_DN(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ARC_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@FreeBSD.org]; RCVD_IN_DNSWL_NONE(0.00)[98.137.65.206:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.65.206:from]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4SyL6p4yFmz3Dc0 X-Spamd-Bar: --- On Dec 23, 2023, at 15:27, Mark Millard wrote: > On Dec 22, 2023, at 17:28, Mark Millard wrote: >=20 >> On Dec 22, 2023, at 14:48, Mike Karels wrote: >>=20 >> On 22 Dec 2023, at 16:14, Steve Bernacki wrote: >>>=20 >>>> Hi Mike, >>>>=20 >>>> Indeed, I'm getting a lot of retransmits: >>>>=20 >>>> [ 5] local 172.16.200.2 port 55551 connected to 172.16.200.182 = port 5201 >>>> [ ID] Interval Transfer Bitrate Retr Cwnd >>>> [ 5] 0.00-1.00 sec 36.2 MBytes 304 Mbits/sec 60 9.98 = KBytes >>>> [ 5] 1.00-2.00 sec 35.7 MBytes 300 Mbits/sec 143 111 = KBytes >>>> [ 5] 2.00-3.00 sec 34.9 MBytes 293 Mbits/sec 141 7.13 = KBytes >>>> [ 5] 3.00-4.00 sec 33.9 MBytes 284 Mbits/sec 198 99.5 = KBytes >>>> [ 5] 4.00-5.00 sec 34.9 MBytes 292 Mbits/sec 167 1.43 = KBytes >>>> [ 5] 5.00-6.00 sec 34.2 MBytes 287 Mbits/sec 221 2.85 = KBytes >>>> [ 5] 6.00-7.00 sec 34.1 MBytes 286 Mbits/sec 169 100 = KBytes >>>> [ 5] 7.00-8.00 sec 35.2 MBytes 295 Mbits/sec 159 7.13 = KBytes >>>> [ 5] 8.00-9.00 sec 34.3 MBytes 287 Mbits/sec 138 4.28 = KBytes >>>> [ 5] 9.00-10.00 sec 33.3 MBytes 279 Mbits/sec 182 2.85 = KBytes >>>> - - - - - - - - - - - - - - - - - - - - - - - - - >>>> [ ID] Interval Transfer Bitrate Retr >>>> [ 5] 0.00-10.00 sec 347 MBytes 291 Mbits/sec 1578 = sender >>>> [ 5] 0.00-10.00 sec 346 MBytes 291 Mbits/sec = receiver >>>>=20 >>>> Thanks, >>>> Steve >>>=20 >>> One other question: are you running powerd? I booted without it, = and my >>> throughput dropped to 600-640 Mb/s. Repeating the test, = retransmissions >>> went down but throughput was about the same. Note, the RPi 4, and = probably >>> the CM 4, boots at a lower clock frequency by default, and powerd = raises it >>> under load. I'm running powerd with -M 1800, overclocking a little. >>=20 >> I explore here fixed frequencies: 2000 MHz, 600 MHz, 1500 MHz, 1800 = MHz >> (no powerd use) >=20 > Well, my later assumption about the likes of the = hw.cpufreq.sdram_freq_min Sorry: (RPi* config.txt notation) sdram_freq_min (since 400 is observed = to occur) (FreeBSD does not expose a hw.cpufreq.sdram_freq_min .) > being due to RPi* firmware looks to be wrong. The RPi* documentation > changed from 400 MHz to 3200 MHz for RPi4B sdram_freq_min at: >=20 > Before (400), Jun 8, 2021: > = https://github.com/raspberrypi/documentation/blob/974995fabb184a2435a98e68= c1e728b346112f89/configuration/config-txt/overclocking.md >=20 > After (3200), Jun 9, 2021: > = https://github.com/raspberrypi/documentation/blob/920ff905995541f7ef1c6048= 2924a392143e9192/configuration/config-txt/overclocking.md >=20 > The RPi* firmware should be setting things up to have 3200 MHz. Since > that is not what FreeBSD ends up with in modern snapshots with the > FreeBSD supplied config.txt , Likely FreeBSD has taken control of > such. >=20 > This might just be one example parameter that is overridden. >=20 > FYI: the 2023-Dec-16 stable/14 snapshot that I'm using > has: >=20 > # strings /boot/efi/start4.elf | grep VC_BUILD_ID_ > VC_BUILD_ID_USER: dom > VC_BUILD_ID_TIME: 10:50:39 > VC_BUILD_ID_VARIANT: start > VC_BUILD_ID_TIME: Mar 17 2023 > VC_BUILD_ID_BRANCH: bcm2711_2 > VC_BUILD_ID_HOSTNAME: buildbot > VC_BUILD_ID_PLATFORM: raspberrypi_linux > VC_BUILD_ID_VERSION: 82f3750a65fadae9a38077e3c2e217ad158c8d54 (clean) >=20 > Far more recent than 2021. >=20 >> Based on: >>=20 >> # uname -apKU >> FreeBSD generic 14.0-STABLE FreeBSD 14.0-STABLE #0 = stable/14-n266002-2ef9079ece5a: Sat Dec 16 08:49:23 UTC 2023 = root@releng1.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC = arm64 aarch6 >>=20 >> # more /boot/efi/config.txt=20 >> [all] >> arm_64bit=3D1 >> dtparam=3Daudio=3Don,i2c_arm=3Don,spi=3Don >> dtoverlay=3Dmmc >> dtoverlay=3Ddisable-bt >> device_tree_address=3D0x4000 >> kernel=3Du-boot.bin >>=20 >> [pi4] >> hdmi_safe=3D1 >> armstub=3Darmstub8-gic.bin >> # >> over_voltage=3D6 >> sdram_freq_min=3D3200 >> arm_freq_min=3D2000 >> force_turbo=3D1 >>=20 >> # sysctl dev.bcm2835_cpufreq.0.freq_settings dev.cpu.0.freq_levels = dev.cpu.0.freq >> dev.bcm2835_cpufreq.0.freq_settings: 2000/-1 >> dev.cpu.0.freq_levels: 2000/-1 >> dev.cpu.0.freq: 2000 >>=20 >>=20 >> # iperf3 -c 192.168.1.157 >> Connecting to host 192.168.1.157, port 5201 >> [ 5] local 192.168.1.159 port 52424 connected to 192.168.1.157 port = 5201 >> [ ID] Interval Transfer Bitrate Retr Cwnd >> [ 5] 0.00-1.00 sec 113 MBytes 948 Mbits/sec 243 328 = KBytes >> [ 5] 1.00-2.00 sec 112 MBytes 941 Mbits/sec 150 18.5 = KBytes >> [ 5] 2.00-3.00 sec 112 MBytes 942 Mbits/sec 149 173 = KBytes >> [ 5] 3.00-4.00 sec 112 MBytes 942 Mbits/sec 150 456 = KBytes >> [ 5] 4.00-5.00 sec 112 MBytes 941 Mbits/sec 159 456 = KBytes >> [ 5] 5.00-6.00 sec 112 MBytes 941 Mbits/sec 160 538 = KBytes >> [ 5] 6.00-7.00 sec 112 MBytes 941 Mbits/sec 143 1.43 = KBytes >> [ 5] 7.00-8.00 sec 112 MBytes 942 Mbits/sec 215 167 = KBytes >> [ 5] 8.00-9.00 sec 112 MBytes 941 Mbits/sec 194 580 = KBytes >> [ 5] 9.00-10.00 sec 112 MBytes 941 Mbits/sec 157 552 = KBytes >> - - - - - - - - - - - - - - - - - - - - - - - - - >> [ ID] Interval Transfer Bitrate Retr >> [ 5] 0.00-10.00 sec 1.10 GBytes 942 Mbits/sec 1720 = sender >> [ 5] 0.00-10.01 sec 1.10 GBytes 941 Mbits/sec = receiver >>=20 >> iperf Done. >>=20 >>=20 >> Note: The amd64 system running main [so: 15] and the RPi4B are >> on the same ethernet switch. >>=20 >>=20 >> With the 4 overclocking lines in config.txt commented out : >>=20 >> # sysctl dev.bcm2835_cpufreq.0.freq_settings dev.cpu.0.freq_levels = dev.cpu.0.freq >> dev.bcm2835_cpufreq.0.freq_settings: 1500/-1 600/-1 >> dev.cpu.0.freq_levels: 1500/-1 600/-1 >> dev.cpu.0.freq: 600 >>=20 >> Note: the default context lacks 1800 (based on the RPi* firmware = vintage >> in the snapshot). Later I show having 1800 instead of 1500. >>=20 >> # iperf3 -c 192.168.1.157 >> Connecting to host 192.168.1.157, port 5201 >> [ 5] local 192.168.1.159 port 42060 connected to 192.168.1.157 port = 5201 >> [ ID] Interval Transfer Bitrate Retr Cwnd >> [ 5] 0.00-1.00 sec 70.8 MBytes 594 Mbits/sec 18 195 = KBytes =20 >> [ 5] 1.00-2.00 sec 73.8 MBytes 619 Mbits/sec 8 293 = KBytes =20 >> [ 5] 2.00-3.00 sec 73.6 MBytes 618 Mbits/sec 19 250 = KBytes =20 >> [ 5] 3.00-4.00 sec 73.6 MBytes 618 Mbits/sec 9 366 = KBytes =20 >> [ 5] 4.00-5.00 sec 73.3 MBytes 615 Mbits/sec 9 447 = KBytes =20 >> [ 5] 5.00-6.00 sec 73.3 MBytes 615 Mbits/sec 16 303 = KBytes =20 >> [ 5] 6.00-7.00 sec 73.2 MBytes 614 Mbits/sec 0 455 = KBytes =20 >> [ 5] 7.00-8.00 sec 73.6 MBytes 618 Mbits/sec 1 328 = KBytes =20 >> [ 5] 8.00-9.00 sec 73.5 MBytes 616 Mbits/sec 16 246 = KBytes =20 >> [ 5] 9.00-10.00 sec 73.3 MBytes 615 Mbits/sec 0 435 = KBytes =20 >> - - - - - - - - - - - - - - - - - - - - - - - - - >> [ ID] Interval Transfer Bitrate Retr >> [ 5] 0.00-10.00 sec 732 MBytes 614 Mbits/sec 96 = sender >> [ 5] 0.00-10.01 sec 732 MBytes 613 Mbits/sec = receiver >>=20 >> iperf Done. >>=20 >> Assigning 1500: >>=20 >> # sysctl dev.cpu.0.freq=3D1500 >> dev.cpu.0.freq: 600 -> 1500 >>=20 >> # sysctl dev.cpu.0.freq=3D1500 >> dev.cpu.0.freq: 600 -> 1500 >> root@generic:~ # iperf3 -c 192.168.1.157 >> Connecting to host 192.168.1.157, port 5201 >> [ 5] local 192.168.1.159 port 28904 connected to 192.168.1.157 port = 5201 >> [ ID] Interval Transfer Bitrate Retr Cwnd >> [ 5] 0.00-1.00 sec 113 MBytes 949 Mbits/sec 4 472 = KBytes =20 >> [ 5] 1.00-2.00 sec 112 MBytes 941 Mbits/sec 6 464 = KBytes =20 >> [ 5] 2.00-3.00 sec 112 MBytes 941 Mbits/sec 5 452 = KBytes =20 >> [ 5] 3.00-4.00 sec 112 MBytes 941 Mbits/sec 3 443 = KBytes =20 >> [ 5] 4.00-5.00 sec 112 MBytes 941 Mbits/sec 4 421 = KBytes =20 >> [ 5] 5.00-6.00 sec 112 MBytes 941 Mbits/sec 4 397 = KBytes =20 >> [ 5] 6.00-7.00 sec 112 MBytes 942 Mbits/sec 3 378 = KBytes =20 >> [ 5] 7.00-8.00 sec 112 MBytes 941 Mbits/sec 5 355 = KBytes =20 >> [ 5] 8.00-9.00 sec 112 MBytes 941 Mbits/sec 2 476 = KBytes =20 >> [ 5] 9.00-10.00 sec 112 MBytes 941 Mbits/sec 5 446 = KBytes =20 >> - - - - - - - - - - - - - - - - - - - - - - - - - >> [ ID] Interval Transfer Bitrate Retr >> [ 5] 0.00-10.00 sec 1.10 GBytes 942 Mbits/sec 41 = sender >> [ 5] 0.00-10.00 sec 1.10 GBytes 941 Mbits/sec = receiver >>=20 >>=20 >>=20 >> Adding arm_boost=3D1 to config.txt in order to have 1800 instead of = 1500 >> (needed due to the RPi* firmware vintage in FreeBSD snapshots): >>=20 >> # sysctl dev.bcm2835_cpufreq.0.freq_settings dev.cpu.0.freq_levels = dev.cpu.0.freq >> dev.bcm2835_cpufreq.0.freq_settings: 1800/-1 600/-1 >> dev.cpu.0.freq_levels: 1800/-1 600/-1 >> dev.cpu.0.freq: 600 >>=20 >> # sysctl dev.cpu.0.freq=3D1800 >> dev.cpu.0.freq: 600 -> 1800 >>=20 >> # iperf3 -c 192.168.1.157 >> Connecting to host 192.168.1.157, port 5201 >> [ 5] local 192.168.1.159 port 27499 connected to 192.168.1.157 port = 5201 >> [ ID] Interval Transfer Bitrate Retr Cwnd >> [ 5] 0.00-1.00 sec 114 MBytes 952 Mbits/sec 169 104 = KBytes =20 >> [ 5] 1.00-2.00 sec 112 MBytes 941 Mbits/sec 150 320 = KBytes =20 >> [ 5] 2.00-3.00 sec 112 MBytes 942 Mbits/sec 157 52.8 = KBytes =20 >> [ 5] 3.00-4.00 sec 112 MBytes 941 Mbits/sec 143 87.0 = KBytes =20 >> [ 5] 4.00-5.00 sec 112 MBytes 941 Mbits/sec 143 121 = KBytes =20 >> [ 5] 5.00-6.00 sec 112 MBytes 941 Mbits/sec 159 104 = KBytes =20 >> [ 5] 6.00-7.00 sec 112 MBytes 941 Mbits/sec 138 238 = KBytes =20 >> [ 5] 7.00-8.00 sec 112 MBytes 941 Mbits/sec 152 276 = KBytes =20 >> [ 5] 8.00-9.00 sec 112 MBytes 941 Mbits/sec 145 115 = KBytes =20 >> [ 5] 9.00-10.00 sec 112 MBytes 941 Mbits/sec 162 283 = KBytes =20 >> - - - - - - - - - - - - - - - - - - - - - - - - - >> [ ID] Interval Transfer Bitrate Retr >> [ 5] 0.00-10.00 sec 1.10 GBytes 943 Mbits/sec 1518 = sender >> [ 5] 0.00-10.00 sec 1.10 GBytes 941 Mbits/sec = receiver >>=20 >> iperf Done. >>=20 >>=20 >>=20 >> =46rom this it appears that the Retr counts do not seem to make >> much of a difference to the Bitrate's achieved. But the arm >> frequency does if 600 is involved. >>=20 >>=20 >> My understanding is that arm_boost=3D1 was later made the default >> in later vintages of the rpi* firmware. arm_boots only causes >> 1800 for Rev 1.4+ . Pi 400's have 1800 available by default, at >> least for modern enough RPi* firmware. >>=20 >> https://www.raspberrypi.com/documentation/computers/config_txt.html >> is not necessarily accurate for the older RPi* firmware that FreeBSD >> uses in its snapshots/releases. >>=20 >>> IIRC >>> the standard clock is 1500 for the RPi 4. But the throughput is = about the >>> same using the standard clock with powerd. >>>=20 >>> Mike >>>=20 >>>> On 12/22/2023 9:23 AM, Mike Karels wrote: >>>>> On 22 Dec 2023, at 6:20, Steve Bernacki wrote: >>>>>=20 >>>>>> I recently purchased a RPI CM4 with 4GB and 32GB eMMC to replace = my aging FreeBSD firewall. I managed to install FreeBSD 14.0-RELEASE-p3 = on it, and both Ethernet devices (genet0 and ue0) were properly = identified. However, network throughput on my gigabit network is pretty = bad; iperf3 reports a maximum transfer speed of 291 Mbits/sec. Flashing = OpenWRT on the same hardware using the same ethernet port, I'm able to = achieve 923 Mbits/sec. >>>>>>=20 >>>>>> Does anyone have any suggestions on how to improve throughput = under FreeBSD? >>>>>>=20 >>>>>> Thank you >>>>>> Steve >>>>> I just tested with an RPi4 (4 GB) and 14.0 using iperf3. It looks = like I'm getting >>>>> a rather variable number of retransmissions. On my first run = (client on RPi 4), >>>>> I got 460 Mb/s with a lot of retransmissions, but the next couple = of runs, including >>>>> one receiving, I got about 940 Mb even with some retransmissions. = The peers were >>>>> fairly fast FreeBSD 13.2 and 15-current systems. Are you seeing = retransmissions? >>>>>=20 >>>>> I'll try to look into this, but I'm not sure when I'll get to it. >>>>>=20 >>>>> Mike >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com