Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 May 2021 02:12:23 +0100
From:      tech-lists <tech-lists@zyxst.net>
To:        freebsd-arm@freebsd.org
Subject:   Re: RPi 4 build time
Message-ID:  <YKmr90UB8/Me4WYk@ceres.zyxst.net>
In-Reply-To: <DB0011CC-3F99-4E34-B5DF-307AD707851A@yahoo.com>
References:  <YKgTB7Hf3dkQiW5c@vax.khramtsov.org> <YKgzeLxxZNhViwoi@ceres.zyxst.net> <0299DFBF-5497-4A06-978D-13E4FBD8B5F0@yahoo.com> <YKkqxrthZoHg87wV@ceres.zyxst.net> <DB0011CC-3F99-4E34-B5DF-307AD707851A@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--HsVeFn8hjdwcpdOo
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, May 22, 2021 at 01:12:23PM -0700, Mark Millard via freebsd-arm wrot=
e:
>of "cold" cache). Another form of "cold" cache could
>result from changing compiler options that would change
>the code generated for (nearly) every file produced so
>that the cache becomes ineffective.
>
>"hot" refers to having a significant amount of
>"effective/used cache content" that makes a notable
>difference in the build times. I'm not that impressed
>with the terminology but it is was I've seen used the
>most frequently for ccache. So I used it.

OK

>I'm confused how you can know it "provides tremendous
>speedups" while simultaneously not knowing "when ccache
>was last used for building anything".=20

what I meant was "I'm not sure of the last time I built
anything that used ccache" or, more accurately, "I can't remember the
last time I built anything on that machine" because some building uses
ccache, others not. But I know that buildworld and friends use ccache.

>Remember that when comparing to my "from scratch"
>build times: in my build everything was compiled
>and linked, no prior build materials around to be
>reused. So I'm reporting a context where I know
>how to interpret the result and I'm presenting
>enough history to establish a repeatable context.

OK I ran another build. Same sources.

1. rm -rf /usr/obj && mkdir /usr/obj
2. rm -rf /var/cache/ccache && mkdir /var/cache/ccache

then:

make -j10 cleanworld started on Sat May 22 19:10:02 BST 2021
make -j10 cleanworld completed on Sat May 22 19:10:02 BST 2021
#
make -j10 cleandir started on Sat May 22 19:10:02 BST 2021
make -j10 cleandir completed on Sat May 22 19:10:37 BST 2021
#
make -j10 clean started on Sat May 22 19:10:37 BST 2021
make -j10 clean completed on Sat May 22 19:10:58 BST 2021
#
make -j6 buildworld started on Sat May 22 19:10:58 BST 2021
make -j6 buildworld completed on Sun May 23 00:47:03 BST 2021
#
make -j6 buildkernel started on Sun May 23 00:47:03 BST 2021
make -j6 buildkernel completed on Sun May 23 01:20:31 BST 2021

so buildworld took 5hr 36min 5s and buildkernel 33min 28s from cold.

earlier, I wrote:

>> make -j6 buildworld started on Sat May 22 15:44:11 BST 2021
>> make -j6 buildworld completed on Sat May 22 16:20:48 BST 2021

>> make -j6 buildkernel started on Sat May 22 16:20:48 BST 2021
>> make -j6 buildkernel completed on Sat May 22 16:49:18 BST 2021

36min 37s for make buildworld and 28min 30s for make buildkernel. This
is what I meant by "tremendous speedups". Other things get built on this
machine; it has a poudriere instance. So I guess anything using C or C++
will use the ccache when building. I might not know exactly *when*
unless I also know (when whatever the machine was compiling), it used
something that ccache could be used for.
--=20
J.

--HsVeFn8hjdwcpdOo
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEE8n3tWhxW11Ccvv9/s8o7QhFzNAUFAmCpq+8ACgkQs8o7QhFz
NAVzpQ/9GrP6LnIXJ1lrXrwZIp+CDbwXYST7wHeLahuLzIRTLaRG1Jpv4bas0Bxi
b80M+G8cJ1zvOTaClAVoS4+L6KZ4qkkTyPf2dxa8YrZd5llFp4GGYZyw80bB2rMs
P8ntYUlbTT6UhpYdTuSC159mFfLSY6ldMQFfIeB+ga3R+kzlXpyB+nab0R2JSz+9
+ibOlJQKyHLmMpnZZ54w5fmH+8gIbapLvSeiAqxHjvyqYIY/7RVXOwnHAskLWvsp
kYnO/qwvyvN+DolMyBvKWYuOOYgsv37pRzQcpr0BFaDPQnMXMw/ZDRLwgU/Ba7Qd
2OHZV3EaFlIpOoKIt13zmkH7q4Pon7317m4ePNkTFljOAVP1zxg4jx+v90voCl+E
7ISgYxGOXSAQ/e1K/gYhPk4pIzk5m2lJYwsrCCOKpXFKFPzWRz0Zr/FWyxcYkl1y
edc57QdkW8KjUOapXkMviWkc3qoMJyhvKsVPwczbCUB/hLgdgx6H7vT3BsIZo/aC
tOxKC4w1npNkS7HMXCHEhSYIYQgOAiPYd5hGMQdzm1QDbLbyHfFQpF3wXD/+4WmK
n60KgVXyE1BO68LTV3X372+chd6iJ7gZimYKEUmjaOx9oFzVZGoRyhJ4TQEE+rYe
H9anSJlTa7+8EFPcM5DLzHqNDMSSkXDZfETVvgRr4kF+8vY+JUo=
=OIBY
-----END PGP SIGNATURE-----

--HsVeFn8hjdwcpdOo--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YKmr90UB8/Me4WYk>