Debug Counters Implementation - Clean History
Major Features: - Debug counter infrastructure for Refill Stage tracking - Free Pipeline counters (ss_local, ss_remote, tls_sll) - Diagnostic counters for early return analysis - Unified larson.sh benchmark runner with profiles - Phase 6-3 regression analysis documentation Bug Fixes: - Fix SuperSlab disabled by default (HAKMEM_TINY_USE_SUPERSLAB) - Fix profile variable naming consistency - Add .gitignore patterns for large files Performance: - Phase 6-3: 4.79 M ops/s (has OOM risk) - With SuperSlab: 3.13 M ops/s (+19% improvement) This is a clean repository without large log files. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
41
benchmarks/scripts/utils/kill_bench.sh
Executable file
41
benchmarks/scripts/utils/kill_bench.sh
Executable file
@ -0,0 +1,41 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Kill any lingering mimalloc-bench/larson runs and our bench runner scripts.
|
||||
# Usage: scripts/kill_bench.sh
|
||||
|
||||
PATS=(
|
||||
"mimalloc-bench/bench/larson/larson"
|
||||
"scripts/run_bench_suite.sh"
|
||||
"scripts/save_prof_sweep.sh"
|
||||
"scripts/ab_sweep_mid.sh"
|
||||
)
|
||||
|
||||
found=0
|
||||
for pat in "${PATS[@]}"; do
|
||||
if pgrep -fa "$pat" >/dev/null 2>&1; then
|
||||
echo "[kill_bench] Found processes for: $pat"
|
||||
pgrep -fa "$pat" || true
|
||||
found=1
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ "$found" -eq 0 ]]; then
|
||||
echo "[kill_bench] No matching bench processes found."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "[kill_bench] Sending SIGTERM..."
|
||||
for pat in "${PATS[@]}"; do
|
||||
pgrep -f "$pat" >/dev/null 2>&1 && pkill -f "$pat" || true
|
||||
done
|
||||
|
||||
sleep 1
|
||||
|
||||
echo "[kill_bench] Forcing SIGKILL for leftovers..."
|
||||
for pat in "${PATS[@]}"; do
|
||||
pgrep -f "$pat" >/dev/null 2>&1 && pkill -9 -f "$pat" || true
|
||||
done
|
||||
|
||||
echo "[kill_bench] Done."
|
||||
|
||||
Reference in New Issue
Block a user