Window scripts: holder env var goes before nohup (nohup HOLDER_MEMFD=... failed to start the holder)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
137d2899a6
commit
d885dc5019
@@ -13,7 +13,7 @@ restart_holder() {
|
||||
rmdir "$HOME/work/gpu-runs/MODEL.lock" 2>/dev/null # ours, if the payload died holding it
|
||||
rm -f "$H/jobs/STOP" "$H/jobs/READY"
|
||||
# the restarted holder must not inherit this window's CMP_* settings (it passes its environment on to every later queue stub: cmp-van-r2 once ran as VANL because of it)
|
||||
( cd "$H" && unset CMP_ARM CMP_TASKS CMP_OPTIONAL CMP_REPS CMP_VANILLA_LOSSY CMP_WALL CMP_ROUNDS CMP_RUN CMP_TARBALL && setsid nohup HOLDER_MEMFD=sparse bash /data/leleka-e2e/prefill-latency/tools/pf_holder_sparse.sh > "$H/holder3.out" 2>&1 < /dev/null & )
|
||||
( cd "$H" && unset CMP_ARM CMP_TASKS CMP_OPTIONAL CMP_REPS CMP_VANILLA_LOSSY CMP_WALL CMP_ROUNDS CMP_RUN CMP_TARBALL && HOLDER_MEMFD=sparse setsid nohup bash /data/leleka-e2e/prefill-latency/tools/pf_holder_sparse.sh > "$H/holder3.out" 2>&1 < /dev/null & )
|
||||
note "window $LABEL over: holder restarted SPARSE with pf_holder_sparse.sh (holder3.out; the full single-copy-holder.sh refilled the memfd to 51.5 GiB after every window); queue open again"
|
||||
}
|
||||
trap restart_holder EXIT
|
||||
|
||||
@@ -14,7 +14,7 @@ restart_holder() {
|
||||
rmdir "$HOME/work/gpu-runs/MODEL.lock" 2>/dev/null # ours, if the payload died holding it
|
||||
rm -f "$H/jobs/STOP" "$H/jobs/READY"
|
||||
# the restarted holder must not inherit this window's CMP_* settings (it passes its environment on to every later queue stub: cmp-van-r2 once ran as VANL because of it)
|
||||
( cd "$H" && unset CMP_ARM CMP_TASKS CMP_OPTIONAL CMP_REPS CMP_VANILLA_LOSSY CMP_WALL CMP_ROUNDS CMP_RUN CMP_TARBALL SPD_LOSSY SPD_MAX SPD_CELLS SPD_RUN && setsid nohup HOLDER_MEMFD=sparse bash /data/leleka-e2e/prefill-latency/tools/pf_holder_sparse.sh > "$H/holder3.out" 2>&1 < /dev/null & )
|
||||
( cd "$H" && unset CMP_ARM CMP_TASKS CMP_OPTIONAL CMP_REPS CMP_VANILLA_LOSSY CMP_WALL CMP_ROUNDS CMP_RUN CMP_TARBALL SPD_LOSSY SPD_MAX SPD_CELLS SPD_RUN && HOLDER_MEMFD=sparse setsid nohup bash /data/leleka-e2e/prefill-latency/tools/pf_holder_sparse.sh > "$H/holder3.out" 2>&1 < /dev/null & )
|
||||
note "window $LABEL over: holder restarted SPARSE with pf_holder_sparse.sh (holder3.out; the full single-copy-holder.sh refilled the memfd to 51.5 GiB after every window); queue open again"
|
||||
}
|
||||
trap restart_holder EXIT
|
||||
|
||||
Reference in New Issue
Block a user