From owner-freebsd-arm@freebsd.org Sun Mar 21 04:20:48 2021 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B4CB35BD8DE for ; Sun, 21 Mar 2021 04:20:48 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic304-23.consmr.mail.gq1.yahoo.com (sonic304-23.consmr.mail.gq1.yahoo.com [98.137.68.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4F34Dv4zyDz3tpS for ; Sun, 21 Mar 2021 04:20:47 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1616300445; bh=zAJ7yzD120MeetDeUEnzhosRTYXqemXszLn6UQuaWYg=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=PbchP7cSVv5Hx5AanSHGWO9IUJQ2NhjQanmAsptQ0pSbJqiHluYb6naVKb1CbqlQpAxsg8sIqP97EzfaaeRp5/4ptrhT2qkf0rwWPu72oPQNt6eK9XJu9htJKX2aAc1v4Qqu1A6CL3YMIfmkr/FjSivzZZgFid/uXIHrhlATI0pENgW3vyfCFTNindeehpakCRuInJYO3fYj+qPIph8A8xUPNQkloMlywPn7woPicG6qY/ejZIQUQd51OaFTsS9E3IK/3lBLtFKhuCEMQRtPJFChvG1NpNnKM2CM1ImzafsffDClN6uFvavT8hiJ0ZA6dOmoXhoURVM+acBdWzOU0A== X-YMail-OSG: SZpghykVM1lJC7A8I2gOXHRQb_FvVrzAZo6AYOGl0pcKSol9tdEgf75zCqb2kN3 DJSpGVxOtbP4DCEzgghNfZrsNzUf6EQQQhPsJGXkGU_wSzIToVrriN87X7hK0h0f0t9DOjg7fYOi 6iOiiB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u_tC0izDvvmz5WCUm7kWlPHQUY5hmXQ0bH2Y4h6YQTpdRwhE_ uJ2HBEVHNMBCA28r4.aEl5_haD7VqSJueo_6D2kY9xHEClRXz6yu9iQbdnHcy1pLdMkYOoSmh8RD sHt9rEupbjqtEGA8jmaMeCAKwArV5QPFSTMAW_ZYAKOt6m6GrAXNXnQDzTAUoijjr8SRkFSlSf0G vxy5NmdOq5KvB0E_GHfiG5wMKXvSrqU90Hb0JHj08V30EMLXMFjNQRdkjm9_z4KtVVyO_jlIzEsw ig5GW.HdurxhL7trY2CcwTw2TIs500YWzQJzVKtp4nmQGBpvl.d60tcL.8ykZnoPYcDujiAVJLgW B.BX5X3FloTxUZYzIXsIDWG830YDSBMLqbnxHsA7KxbPT X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.gq1.yahoo.com with HTTP; Sun, 21 Mar 2021 04:20:45 +0000 Received: by smtp402.mail.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 152428b00b52ed0208b5e972a90719b1; Sun, 21 Mar 2021 04:20:39 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: RPI4 clock speeds and serial port ( temperatures idle and -j4 buildworld buildkernel ) From: Mark Millard In-Reply-To: Date: Sat, 20 Mar 2021 21:20:36 -0700 Cc: freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: <5BF4DC26-8CCC-48E8-802F-34C42084D47F@yahoo.com> References: <81AC0353-258C-41C3-86B1-C133E33D97E3@yahoo.com> <20210319174359.GA38899@www.zefox.net> <20210319195019.GA39087@www.zefox.net> <20210320005302.GA40542@www.zefox.net> <81CB0CCA-59AC-49A2-9372-4E2C22E3214D@googlemail.com> <20210320155638.GA41617@www.zefox.net> <63E61033-667C-4A08-9012-7D987B652176@yahoo.com> <20210320182821.GA49050@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3654.60.0.2.21) X-Rspamd-Queue-Id: 4F34Dv4zyDz3tpS X-Spamd-Bar: / X-Spamd-Result: default: False [-0.41 / 15.00]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ARC_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[98.137.68.204:from]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(1.00)[1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; NEURAL_SPAM_MEDIUM(0.09)[0.089]; SPAMHAUS_ZRD(0.00)[98.137.68.204:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.204:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.68.204:from]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-arm] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting FreeBSD to ARM processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Mar 2021 04:20:48 -0000 On 2021-Mar-20, at 12:27, Mark Millard wrote: > On 2021-Mar-20, at 11:28, bob prohaska wrote: >=20 >> On Sat, Mar 20, 2021 at 10:41:48AM -0700, Mark Millard wrote: >>> On 2021-Mar-20, at 08:56, bob prohaska wrote: >>>=20 >>>> The most recent test on the 8GB Pi4 finished in 9 hours. That was = after >>>> running make cleandir twice, but having the installed system and = the >>>> sources relatively close (days) in age, on -current. >>>=20 >>> So a debug kernel was running? (Non-debug running for my builds.) >>=20 >> Yes. >>=20 >>>=20 >>> Did it include a buildkernel? Or just a buildworld? >>>=20 >>=20 >> Just buildworld in 9 hours.=20 >>=20 >>> At around 9 hours, it would take standardizing on a (equivalent >>> of) src.conf too be able to well compare your context vs. mine >>> now, if we ever want to do so. I'll list my file later below >>> for reference, although I'm probably more likely to try your >>> src.conf content in my overclocked context than you are >>> likely to try building via my src.conf like content in your >>> powerd context. >>>=20 >>=20 >> No /etc/src.conf for this test, nor /etc/make.conf.=20 >=20 > I have a -j4 buildworld build kernel going on the > FreeBSD RPi4B 8GiByte, based on using a prefix of: >=20 > env __MAKE_CONF=3D"/dev/null" \ > SRCCONF=3D"/dev/null" SRC_ENV_CONF=3D"/dev/null" >=20 > I'll report the buildworld and buildkernel times > once it is done. World took somewhat longer than my normal build and the kernel somewhat less, but world+kernel somewhat longer overall: World build completed on Sat Mar 20 20:20:42 PDT 2021 World built in 31233 seconds, ncpu: 4, make -j4 Kernel build for GENERIC completed on Sat Mar 20 20:55:21 PDT 2021 Kernel(s) GENERIC built in 2078 seconds, ncpu: 4, make -j4 So: World took a little under 8 hr 45 minutes (vs. under 8 hr 10 min) kernel took a little under 35 minues (vs. under 40 min) Total: a little under 9 hr 20 minutes (vs. under 8 hr 50 min) You are getting the vast majority of the time benefit from powerd use compared to my build context (based on the world build times). Avoiding building to allow compiling non-arm could cut your time noticeably, possibly around 30 minutes for world. But I do not come anywhere near what tech-lists has reported: a little under 6 hr 45 min for world+kernel (using -j6 and possibly ccache use, however). My guess is that ccache avoided some compiling/linking. (I've not used ccache.) > The RPi4 support for powerd (cpufreq) was added > on 2020-Jun-20 but my RPi4B activity started > well before then. That is why I did not go down > the powerd path in how I configured things. It > will be interesting to compare to your time. >=20 >>> Welcome to the world of overnight (sleep-time) buildworld on a >>> small board computer. >>>=20 >>=20 >> It's a most welcome change! >=20 > You can now also buildworld and buildkernel targeting > armv7 in the overnight time frame via either: >=20 > A) a form of cross build (using src.conf like file(s)) > or: > B) running an armv7 world in a chroot and doing a > "native" style build in the chroot. >=20 > You can also set up poudriere (or just a chroot area > that you chroot to) in order to build armv7 ports in. >=20 > This also has less of a memory limitation in that > multiple full-sized armv7 build processes can be > in RAM at once without swapping/paging: more total > RAM in use than an armv7 would allow, though no > individual process gets more than an armv7 could > potentially allow. >=20 > You could build for the RPi3(s) or other aarch64 > machines on the RPi4(s) as well. So, likely your > arm build activity no longer has to take up nearly > as much time, especially the really long-wait > builds. >=20 >>>> That's with powerd >>>> enabled, but no other speedup tweaks. Temps were just under 60 C, = with >>>> a fan in the case but no heatsinks on the ICs.=20 >>>=20 >>> Ambient temperature? (It is the difference that indicates how >>> well your cooling is working and it is the difference that >>> is more comparable across contexts. For example, my around >>> 15.5C ambient likely was likely around 10C lower than for >>> many reported figures.) >>>=20 >>=20 >> Ambient was around 15-17 C at the times of observation.=20 >>=20 >>>>> sysctl dev.cpu.0.freq will definitely show the current freq. >>>>=20 >>>> On a Pi3 with GENERIC-MMCCAM kernel (also running buildworld) it = reports >>>> bob@www:/usr/freebsd-src % sysctl dev.cpu.0.freq >>>> dev.cpu.0.freq: 1200 >>>> also with no other speedup efforts beyond powerd. That machine has = heastinks >>>> on the ICs but only a fan blowing in through the openings in the = plastic case. >>>> It's around 60C.=20 >>>>=20 >>>> So far the effects of powerd seems to be uniformly good, with=20 >>>> no downsides. Next, to try a Pi2 v1.1 (armv7) >>>>=20 >>=20 >> The Pi2 V1.1 is now running buildworld with powerd enabled. Heatsinks >> on the ICs, but no fan at all, < 50 C (17C ambient) with 0% idle, 900=20= >> MHz, serial console seems to work fine.=20 >>=20 >>>=20 >>> FYI (not that you are likely to build and run such: >>>=20 >> [snipped for brevity] >>=20 >> Alas, you are right. It's already difficult to keep the=20 >> experiments straight in my head......too many variations. >>=20 >> But, unless something most unexpected goes wrong, it seems >> that powerd is useful on the Pi series computers. =20 >>=20 >=20 > Yep. >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)