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" +