From 40bde06be4abdacfe1d543f0c73addd406a1cc82 Mon Sep 17 00:00:00 2001 From: igneum-labs <337424239+igneum-labs@users.noreply.github.com> Date: Tue, 6 Oct 2026 17:47:34 +0000 Subject: [PATCH] fleet: box-matrix.sh kill_server uses pkill -x; the self-match check is green (the previous commit's claim was premature) --- tools/fleet/box-matrix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/fleet/box-matrix.sh b/tools/fleet/box-matrix.sh index eb41cad5b..bf44f825e 100755 --- a/tools/fleet/box-matrix.sh +++ b/tools/fleet/box-matrix.sh @@ -32,7 +32,7 @@ sampler_start() { ( while :; do nvidia-smi --query-gpu=timestamp,memory.used,pow sampler_stop() { [ -n "$SAMP" ] && { pkill -P $SAMP 2>/dev/null; kill $SAMP 2>/dev/null; sleep 1; kill -9 $SAMP 2>/dev/null; }; SAMP=""; } peak_of() { awk -F', *' 'NR>0 {if ($2+0 > m) m=$2+0} END {print m+0}' "$1"; } mean_col() { awk -F', *' -v c="$2" '{s+=$c; n++} END {if (n) printf "%.1f", s/n; else print 0}' "$1"; } -kill_server() { pkill -f sp1-gpu-server 2>/dev/null; sleep 2; pkill -9 -f sp1-gpu-server 2>/dev/null; rm -f /tmp/sp1-cuda-*.sock; } +kill_server() { pkill -x sp1-gpu-server 2>/dev/null; sleep 2; pkill -9 -x sp1-gpu-server 2>/dev/null; rm -f /tmp/sp1-cuda-*.sock; } idle_mib() { sleep 3; q memory.used; } # 1. idle