#!/usr/bin/env bash # Campaign 2 (2026-05-31): two extra reuse sweeps at out=128 (user request: # delta=1024/out=128 and delta=2048/out=128), then the capped conc restart. # STRICTLY one driver at a time; reuse sweeps run uncapped (mild collapse, matches # the existing d2048/o256 sweep), conc runs with the PD-arm wall-cap. NO set -e. cd /home/admin/cpfs/wjh/agentic-kv-fresh export MB5_VENV="${MB5_VENV:-/home/admin/cpfs/wjh/agentic-kv-fresh/.venv_dash0}" FS=microbench/fresh_setup echo "=== CAMPAIGN2 START $(date) ===" echo "=== [1/3] REUSE delta=1024 out=128 (reuse 0.33-0.97) $(date) ===" DELTA=1024 OL=128 bash "$FS/run_reuse_fixed.sh"; rc1=$? echo "=== reuse d1024 o128 rc=$rc1 $(date) ===" sleep 12; nvidia-smi --query-gpu=index,memory.used --format=csv,noheader | head -8 echo "=== [2/3] REUSE delta=2048 out=128 (reuse 0.20-0.95) $(date) ===" DELTA=2048 OL=128 bash "$FS/run_reuse_fixed.sh"; rc2=$? echo "=== reuse d2048 o128 rc=$rc2 $(date) ===" sleep 12; nvidia-smi --query-gpu=index,memory.used --format=csv,noheader | head -8 echo "=== [3/3] CONC capped (PD wall=${CONC_PD_MAXDUR:-600}s, colo uncapped), N 8..128 $(date) ===" NLIST="8 16 32 48 64 96 128" bash "$FS/run_conc.sh"; rc3=$? echo "=== conc rc=$rc3 $(date) ===" echo "=== CAMPAIGN2 DONE reuse_d1024_o128=$rc1 reuse_d2048_o128=$rc2 conc=$rc3 $(date) ==="