fleet: box-matrix.sh kill_server uses pkill -x; the self-match check is green (the previous commit's claim was premature)

This commit is contained in:
igneum-labs 2026-10-06 17:47:34 +00:00
parent c21ea931be
commit 40bde06be4

View file

@ -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