Re: [Debian-salsa-ci] ccache stats and performance evaluation (in CI contexts)
Santiago Ruano Rincón via ccache <[email protected]> Sun, 12 Oct 2025 22:50:14 -0300
| Newsgroups | gmane.comp.compilers.ccache |
|---|---|
| Message-ID | <aOxa1nwkDLXyNlTs@voleno> |
--===============7869244642560868567== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wTEoGmAA4le0oyBt" Content-Disposition: inline --wTEoGmAA4le0oyBt Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable El 09/10/25 a las 10:53, Joel Rosdahl escribi=F3: > On Wed, Oct 8, 2025, at 18:38, Santiago Ruano Rinc=F3n via ccache wrote: >=20 > > Would you mind enlighten us about: is it a good idea to also reset/zero > > the stats between two different jobs? >=20 > See the discussion in https://github.com/ccache/ccache/pull/1639 which le= ad to > this documentation improvement: >=20 > https://github.com/ccache/ccache/commit/e799280a6fe403e9ef766c2343effaf44= 23da65a >=20 > So yes, if you use ccache by downloading and uploading the whole cache fo= r each build job =E0 la GitHub's or GitLab's caching mechanism then counter= s are not tracking global usage of the cache anyway (and only one job acces= ses the local cache at the same time) so using --zero-stats before the job = is perfectly fine. >=20 > Regards > Joel Thanks! That's very helpful. And actually, my understand was that zeroing the stats would prevent =66rom "tracking the entire lifetime of the cache", while comparing the stats before and after the build. In any case, using stats logs seems to be a better approach for I had in mind. Cheers, -- Santiago --wTEoGmAA4le0oyBt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQR+lHTq7mkJOyB6t2Un3j1FEEiG7wUCaOxa0wAKCRAn3j1FEEiG 71jfAP4hiAPi+mkTmhXJOVwSDEmywLXgdwf2UDF1rsqNqVzVgQD+Od91+V8tvZAu 8Tckq7VWRqsxC8MJFJ9IcT5/RTRlkwM= =P64+ -----END PGP SIGNATURE----- --wTEoGmAA4le0oyBt-- --===============7869244642560868567== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ccache mailing list [email protected] https://lists.samba.org/mailman/listinfo/ccache --===============7869244642560868567==--