From owner-freebsd-arm@freebsd.org Sun Mar 21 16:50:07 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 6D6F657BF0D for ; Sun, 21 Mar 2021 16:50:07 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic310-21.consmr.mail.gq1.yahoo.com (sonic310-21.consmr.mail.gq1.yahoo.com [98.137.69.147]) (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 4F3NsV3wQLz3NrG for ; Sun, 21 Mar 2021 16:50:06 +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=1616345404; bh=RzOd+af1QDLeQVgDqKulLq96bhNh1QHf77t4zklY2j2=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=Oh9i5DROwEl7Khpkfd95hCzHcg3sakmZKCwWWLduMyjPvKb6GsmtONFO/YzB4I8MkODqTiLfvDT7NHCrrJnCZdQfeaLjxrFleaIv/2DwxfdwowZOVi9rcxOByXxE7WMYiITZVEXJXW07Ku9qN7BUAE4jyvz8K9rT72lZfUb22v1fv6juu5rq71nKh7w5sEBh1qeZ1X/P0EikUgaelp4vDnEg6H9pYNcH06c+RZ1TPM8y7eSXKt/b8EYP3ftIgjr+ODrRzU6yexzAyjxrf6ct5FFd1f36ObCb1VCiL5RZ2rMRR8S+brwfCU2MaWFYlK5OD4N/Yi2f3Bj+Le0t1kVHPQ== X-YMail-OSG: iAQIG8gVM1ls5.6dI368tqfzCEImd9Njo0B1ETPJrf2DCMWF4u.HrEtxH4WtRG4 0KTPWJneLbo0RmNrYX.ohkPjqh12lOScAFxot4qcXH1.F9NHiiFk2K_traLzgbBJ97otlcNEK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bOtHOLVGKYUi0W8O4OnWcpjaR2FEOKUMK2qojxF0o8oOj5PViJxTB7RUeaVbaSmmU401v0wgFL 7nBJEupMWen6sA5YRiBhE1sJP2niCh8rM0vV5NbSuhtSwBQMKc3TVzFCZBNLuv4QriUXbOK4JPUE IxweFB5bcqFBoIYHaB2lLrikv76COL46Z6N9hH5Ti_RUhJKKjwPQTAhVpbFO_Z8RU8_JQ5hX_cJK Fy3DoR76FUU0X59mvQOoWdtM.Xon3Bg_gLK.UZxDfm8J.b1mRb0OoxAg- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.gq1.yahoo.com with HTTP; Sun, 21 Mar 2021 16:50:04 +0000 Received: by smtp422.mail.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 9930528c729a2a980bfe0f70f4f95def; Sun, 21 Mar 2021 16:49:59 +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 From: Mark Millard In-Reply-To: Date: Sun, 21 Mar 2021 09:49:57 -0700 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20210318170053.GA26688@www.zefox.net> <9FFA0A51-C0B7-4121-95CA-B98669809007@yahoo.com> To: tech-lists X-Mailer: Apple Mail (2.3654.60.0.2.21) X-Rspamd-Queue-Id: 4F3NsV3wQLz3NrG X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.50 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; 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]; RBL_DBL_DONT_QUERY_IPS(0.00)[98.137.69.147:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; 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.147:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.147:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.69.147: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 16:50:07 -0000 On 2021-Mar-21, at 06:50, tech-lists wrote: > On Sat, Mar 20, 2021 at 04:55:47PM -0700, Mark Millard wrote: >=20 >> To me the wording is unclear on an important >> point: >>=20 >> Was this a rebuild after installing and booting >> the kernel and world that had been built with >> those flags? Or was this running the as yet >> not updated system and just doing the initial >> build with the -mcpu assignments? >=20 > 1. cd /usr/src && git pull --ff-only > 2. added those .clang statements to /etc/src.conf > 3. it had already built world & kernel with the other WITHOUT_xyz = statements in days previously >=20 > this was the first time i'd tried those -mcpu assignments. >=20 > I'll try building again, this time noting exactly what's done. >=20 >> CCACHE status? >=20 > enabled. I almost always use ccache as the buildtime impact is = substantial with any c/c++ program. poudriere uses it if it's available > for this reason. = https://docs.freebsd.org/en_US.ISO8859-1/books/handbook/ports-poudriere.ht= ml reports: QUOTE Defining CCACHE_DIR enables the use of devel/ccache to cache compilation = and reduce build times for frequently-compiled code. END QUOTE and: # grep -r CCACHE_DIR /usr/local/etc/poudriere.conf.sample /usr/local/etc/poudriere.conf.sample:#CCACHE_DIR=3D/var/cache/ccache /usr/local/etc/poudriere.conf.sample:# Default: yes, unless CCACHE_DIR = is set and CCACHE_DIR_NON_ROOT_SAFE is not /usr/local/etc/poudriere.conf.sample:# use a non-shared CCACHE_DIR that = is only built by PORTBUILD_USER and chowned /usr/local/etc/poudriere.conf.sample:# to that user. Then set = CCACHE_DIR_NON_ROOT_SAFE to yes. So it looks like use of ccache must be explicitly enabled in poudriere-devel . Mere installing of devel/cache and then using poudreire bulk does not seem to use ccache. (There also seems to be CCACHE_STATIC_PREFIX and CCACHE_DIR_NON_ROOT_SAFE that can be set as well.) At least for figuring out what buildworld buildkernel installs lead to taking less time vs. more time and how much less/more for later build activity, having differences in what has been cached by ccache also involved makes time comparisons untenable. Of course, going the other way, holding the system installation constant and doing various without and with ccache timings for repeatable sequences of updates can be used to get an idea of how much ccache can help. I happen to not have done such testing. >> Was this caching effectively cleaned-out/empty >> for the timing? >=20 > I don't know. All I know is that it looks after itself. I'll > disable/clear out ccache [1] if changing major freebsd versions [2], = or tracking down a problem with a program building. >=20 > I'm surprised you don't usually use it >=20 > [1] rm -rf /var/cache/ccache/* > [2] also rm -rf /usr/obj and re-make it again =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)