From 580e9eefe39f2f94695e1a22437c6ac47a1664e6 Mon Sep 17 00:00:00 2001 From: will Date: Mon, 2 Feb 2026 09:15:27 +0000 Subject: [PATCH 1/2] ci: bump CCACHE_MAXSIZE to 2G With 15 runners we get 150GB of cache space to use, and we currently have 18 jobs using ccache. Although each run only generates ~ 200-300 MB of cache data on each run, the small the small size may be contributing to poor hitrate. Bump ccache to 2GB per job ~ --> 36GB of the total 150GB cache space to try and reduce any thrashaing and generally increase hitrate. --- ci/test/00_setup_env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/test/00_setup_env.sh b/ci/test/00_setup_env.sh index bbe9515f216..8d9a16ab784 100755 --- a/ci/test/00_setup_env.sh +++ b/ci/test/00_setup_env.sh @@ -48,7 +48,7 @@ export RUN_FUZZ_TESTS=${RUN_FUZZ_TESTS:-false} export BOOST_TEST_RANDOM=${BOOST_TEST_RANDOM:-1} # See man 7 debconf export DEBIAN_FRONTEND=noninteractive -export CCACHE_MAXSIZE=${CCACHE_MAXSIZE:-500M} +export CCACHE_MAXSIZE=${CCACHE_MAXSIZE:-2G} export CCACHE_TEMPDIR=${CCACHE_TEMPDIR:-/tmp/.ccache-temp} export CCACHE_COMPRESS=${CCACHE_COMPRESS:-1} # The cache dir. From 7528d18796a22c695aac8090f3ecd2ccc859aa68 Mon Sep 17 00:00:00 2001 From: will Date: Mon, 2 Feb 2026 09:30:27 +0000 Subject: [PATCH 2/2] ci: show more verbose ccache stats ...and inline function used only once --- ci/test/03_test_script.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ci/test/03_test_script.sh b/ci/test/03_test_script.sh index 3908b2746f5..9f844a26a41 100755 --- a/ci/test/03_test_script.sh +++ b/ci/test/03_test_script.sh @@ -116,7 +116,6 @@ if [ -z "$NO_WERROR" ]; then fi ccache --zero-stats -PRINT_CCACHE_STATISTICS="ccache --version | head -n 1 && ccache --show-stats" # Folder where the build is done. BASE_BUILD_DIR=${BASE_BUILD_DIR:-$BASE_SCRATCH_DIR/build-$HOST} @@ -147,7 +146,7 @@ cmake --build "${BASE_BUILD_DIR}" "$MAKEJOBS" --target $GOAL || ( false ) -bash -c "${PRINT_CCACHE_STATISTICS}" +ccache --version | head -n 1 && ccache --show-stats --verbose hit_rate=$(ccache --show-stats | grep "Hits:" | head -1 | sed 's/.*(\(.*\)%).*/\1/') if [ "${hit_rate%.*}" -lt 75 ]; then echo "::notice title=low ccache hitrate::Ccache hit-rate in $CONTAINER_NAME was $hit_rate%"