From owner-freebsd-arm@freebsd.org Sat Mar 20 19:27:55 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 290F55B2167 for ; Sat, 20 Mar 2021 19:27:55 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic312-24.consmr.mail.gq1.yahoo.com (sonic312-24.consmr.mail.gq1.yahoo.com [98.137.69.205]) (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 4F2rQ16X1qz4tdB for ; Sat, 20 Mar 2021 19:27:53 +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=1616268471; bh=fMMKlx/RBU/PHF1Dyj6ikdIis9cNEUPQ1oN1IzSSExa=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=ZdPw4BtWuSXfZhAfLv6RpaNU3Zj/oUU5jmPkJTaCeOn3uVw/kCSnZKR5aNsREOIJRJKm8bWqbbJvguqJzG7De/qE5YTKF7xrqjruTac/jSF+Kiis8fYvV7uP42PV3MTO5hukMC9hRVBWAz0XyPRv3+2aGSIynzMcvQpz/21dVaZvOM/b+R1AweYCVPKrnqTy4K/tW0pGVs3F1fFHxRVKj2KhLhpZvHwIFSKIcscdvndnUTzbqbBTfBosTZZdU7wHBlU2vYuD8u0B9sDgVXN3fwfb+ozsz196InxOgiu1ZDF/hrXpa9qMyL2QRLpCnlFtEa3rBgdldD/Qlzjkyx0iXw== X-YMail-OSG: M7_1c2AVM1lQNWmop9B3g28rjWDscUlEuaKfPuQ9LBtbcB3CdOuzLpqU4v.qzBY SH.ZZinJbFLqxX7zgPtkZOQCdE3GpNqPrWod3DpseQxkgLLFovHrJTWUMNJVWmLvuT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S2LIziV8UlVaNOiT_ZCEkiRSBlvxHD6etuBNnljvY.oZuiP_LMxztjcJSEi676cf NTCCl4JNwcHP4QTVjLuG23xBXNEEopQQqh2.p76x4AdXxv7I18UIlXyfXGi55otOehIEd7zZth_n moNdbCJlJpWtdCKFgA3jw3hNKV77Q1TYxt6oi24B51dljhBhPxmnB7SOVIFuijtSnxxPYLK.ooHG HrwLBAJe_17PvlKzlmvJDl5t9orYWvO6BrVAHfyprtw7.UO3AK2m3EeOfVVH46H_Oo1cpnc7gMiY _e54GZgO.ohBYt0XvjNR2UJHDBhlg_aNrhl0ws7ikhZY45bHzLe1D7oyUpfpLVfl6P1s- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.gq1.yahoo.com with HTTP; Sat, 20 Mar 2021 19:27:51 +0000 Received: by smtp404.mail.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 83e2b2b32fcc92b0614e81f0adda7ffd; Sat, 20 Mar 2021 19:27:50 +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: <20210320182821.GA49050@www.zefox.net> Date: Sat, 20 Mar 2021 12:27:48 -0700 Cc: freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: 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: 4F2rQ16X1qz4tdB X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.50 / 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]; NEURAL_HAM_SHORT(-1.00)[-1.000]; 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.69.205:from]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_ZRD(0.00)[98.137.69.205:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.205:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.69.205: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: Sat, 20 Mar 2021 19:27:55 -0000 On 2021-Mar-20, at 11:28, bob prohaska wrote: > 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 I have a -j4 buildworld build kernel going on the FreeBSD RPi4B 8GiByte, based on using a prefix of: env __MAKE_CONF=3D"/dev/null" \ SRCCONF=3D"/dev/null" SRC_ENV_CONF=3D"/dev/null" I'll report the buildworld and buildkernel times once it is done. 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. >> Welcome to the world of overnight (sleep-time) buildworld on a >> small board computer. >>=20 >=20 > It's a most welcome change! You can now also buildworld and buildkernel targeting armv7 in the overnight time frame via either: 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. You can also set up poudriere (or just a chroot area that you chroot to) in order to build armv7 ports in. 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. 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. >>> 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 Yep. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)