[Debian-salsa-ci] [ccache] ccache stats and performance evaluation (in CI contexts)
Santiago Ruano Rincón
santiagorr at riseup.net
Mon Oct 13 02:50:14 BST 2025
El 09/10/25 a las 10:53, Joel Rosdahl escribió:
> On Wed, Oct 8, 2025, at 18:38, Santiago Ruano Rincón via ccache wrote:
>
> > Would you mind enlighten us about: is it a good idea to also reset/zero
> > the stats between two different jobs?
>
> See the discussion in https://github.com/ccache/ccache/pull/1639 which lead to
> this documentation improvement:
>
> https://github.com/ccache/ccache/commit/e799280a6fe403e9ef766c2343effaf4423da65a
>
> So yes, if you use ccache by downloading and uploading the whole cache for each build job à la GitHub's or GitLab's caching mechanism then counters are not tracking global usage of the cache anyway (and only one job accesses the local cache at the same time) so using --zero-stats before the job is perfectly fine.
>
> Regards
> Joel
Thanks! That's very helpful.
And actually, my understand was that zeroing the stats would prevent
from "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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-salsa-ci/attachments/20251012/606ee509/attachment.sig>
More information about the Debian-salsa-ci
mailing list