From 2cdce54765d7845d0406486ccb195d39ee0dee11 Mon Sep 17 00:00:00 2001 From: andrew clark Date: Tue, 4 Nov 2025 19:55:11 -0700 Subject: [PATCH] Collecting redis stats (#3149) [ROCm/composable_kernel commit: 3b076b0b74fec1c5a27a808cea45b21c6f526ced] --- script/sccache_wrapper.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/script/sccache_wrapper.sh b/script/sccache_wrapper.sh index b0ec08de45..30fd17e520 100755 --- a/script/sccache_wrapper.sh +++ b/script/sccache_wrapper.sh @@ -52,5 +52,22 @@ if [ "${ENFORCE_REDIS}" == "true" ]; then fi setup_rocm_compilers_hash_file $SCCACHE_BIN --version +echo "=== Starting sccache server at $(date) ===" $SCCACHE_BIN --start-server +# Log initial sccache statistics +echo "=== Initial sccache statistics ===" +$SCCACHE_BIN --show-stats || echo "Could not get initial stats" + +# Test Redis connectivity and performance +echo "=== Testing Redis connectivity ===" +start_time=$(date +%s%N) +redis-cli -u ${SCCACHE_REDIS} ping || echo "Redis ping failed" +end_time=$(date +%s%N) +latency=$(( (end_time - start_time) / 1000000 )) +echo "Redis ping latency: ${latency}ms" + +# Check Redis memory status +echo "=== Redis memory status ===" +redis-cli -u ${SCCACHE_REDIS} info memory | grep -E "(used_memory|maxmemory|evicted_keys)" || echo "Could not get Redis memory info" +