[Debian-salsa-ci] [ccache] ccache stats and performance evaluation (in CI contexts)

Joel Rosdahl joel at rosdahl.net
Thu Oct 9 09:53:34 BST 2025


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



More information about the Debian-salsa-ci mailing list