dsv41: after "the TP pair failed; rank 0 exits", rank 0 can stay alive and keep answering /health 200
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 65/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- linux, zig
- Ambito
- distributed-systems
Direzione di ricerca
Parti da exitSoon() in zig/src/families/dsv41/lanes.zig e confrontalo con il percorso del rango 1 modificato in 74b715d (#33), che usa già _exit. Aggiungi il piccolo helper pair_exit.zig accanto, così il rango 0 termina tramite _exit(3), e replica il test sull'host descritto nel report: un figlio forkato il cui gestore atexit non ritorna mai deve scomparire entro 300 ms, mentre la variante con std.process.exit resta attiva. Verifica con zig test -lc zig/src/families/dsv41/pair_exit.zig e zig build test su un host solo CPU; è completato quando il ripristino a std.process.exit fa fallire quel test. La modifica opzionale del 503 su /health è separata e richiede prima di individuare l'handler di health.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
AI disclosure: I am not a software developer. Claude Code (Claude Opus 5.5, medium reasoning) wrote this report from logs and a code reading; an independent Claude Fable 5.2 (medium reasoning) review checked it before posting; this is not a claim of human developer review.
What happened (two-box TP2, tcp_host collectives for gathers above the RDMA slot size, TF_COLL_PROGRESS_MS=2000,
DeepSeek-V4.1-Flash EXL3 2.9 bpw, commit 93d2845):
- During an 11,594-token prompt pass, rank 0's tcp_host exchange (prompt_attn layer 0, 4 MiB, chunk 1 of 4) failed after
2,009 ms withTimeout (no progress within the deadline); rank 1 failed the same exchange after 0 ms with
PeerLost (peer closed while sending)(rank 0's wire shutdown, as designed). - Rank 1 exited. Rank 0 logged
dsv41: the TP pair failed (Timeout); rank 0 exitsbut did not exit: it kept its pid,
/healthkept returning 200, and the later chat requests in the log endedreason=error (Timeout)after ~0.03 s.
Why (code reading): exitSoon() in families/dsv41/lanes.zig calls std.process.exit(3), which with libc linked
is libc exit(): atexit handlers and every loaded library's fini (the dlopened GPU runtime, libomp) run before the
process ends, while the HTTP and engine threads keep running. 74b715d (#33) moved rank 1 to _exit for the same fini list;
rank 0's path still goes through it, so a fini that blocks (we cannot tell which one from the log; there is no stack)
leaves a live process with a poisoned pair. /health does not look at the pair, so health checks pass.
Proposed fix: rank 0 ends through _exit(3) too (a small pair_exit.zig with a host test: a forked child whose
atexit handler never returns is ended by now() with status 3; with libc exit() the same child is still alive after
300 ms). Optionally /health could answer 503 once the pair failed, for the 500 ms before the exit.
Related: #55 covers rank 0's normal stop, not this failed-pair path; #51 concerns the 2 s progress deadline behind the open question below.
Open question: rank 1 reached that exchange more than 2 s after rank 0 without logging a GPU wait past 2 s; the rank
logs have no timestamps, so we could not tell where rank 1 spent that time. A larger TF_COLL_PROGRESS_MS hides it.
Test scope: host tests on a CPU-only Linux dev host (zig 0.17.0), on 93d2845 and on main 01aa7d6 (zig build test 338/338 there): zig test -lc zig/src/families/dsv41/pair_exit.zig
2/2 pass; the mutation back to std.process.exit fails the first test. Not run: anything on GPU hardware, a reproduced
wedge with the fix.
- Lingua principale
- Zig
- Stelle
- 76
- Fork
- 9
- Merge medio
- 21h 59m
- PR unite (30g)
- 34
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Shoestring-dev/StrixFold
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 18/100
Shoestring-dev/StrixFold#57 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Problem with thinking-loopsAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
Shoestring-dev/StrixFold#39 · 8 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
Shoestring-dev/StrixFold#28 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 54/100
Shoestring-dev/StrixFold#7 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Future GLM 5.3 support?Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
Shoestring-dev/StrixFold#3 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Shoestring-dev/StrixFold
Issue simili
-
external
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ydb-platform/ydb#60447 ·
I maintainer di solito rispondono entro 1 giorno
-
community-backlog serve stability
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
ray-project/ray#68460 ·
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
seaweedfs/seaweed-block#435 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug] Default key routing (JavaStringHash) picks a different partition than the Java client for about half of keysForse già presa @0z5a l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
apache/pulsar-client-go#1575 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
orientechnologies/orientdb#11017 ·
I maintainer di solito rispondono entro 1 giorno