Repository navigation
fix(tp2): let pending snapshots run before AR advances - #3
LostVector wants to merge 6 commits into
Conversation
|
Superseded by the maintained The current Linux HIP release passed fresh TP=2 inference, cache/cancellation, persisted-cache restart and injected failure/recovery checks. The integration PR retains the original measurement attribution and timing caveats; these checks do not create a new performance claim for this historical patch. Closing this historical draft as superseded, not claiming a formal GitHub merge. Its source branch and evidence remain intact. Fork |
Draft follow-up to #1, based on its unchanged
perf/tp-mtp-snapshot-handoffbranch. This contains only the recursive-turn follow-up and its evidence.A pending TP snapshot can be starved by repeated AR advances. A two-node trace measured 22 new
Advanceacquisitions of the same mutex during a 601 ms capture wait, followed by 3.9 ms to finish capture. Extend snapshot admission to AR and batched advances; recursive turns let an active decode finish its nested advance without deadlocking the waiting capture.Only three code/test files change. Model math, GPU kernels, transport, cache policy and wire protocol are unchanged. Active calls are not preempted, and this is not strict FIFO.
Validation and remaining limits:
Integration-stack AR confidence: eight predeclared balanced pairs, 16 starts and 80 exact outputs. C2 geometric throughput +5.415%, 95% CI [0.886,12.644]%, balanced-assignment p=.028571. All 16 phase flags remain. One first request takes 464 ms longer while the pair finishes sooner; this is a fairness/batching tradeoff, not uniform latency improvement.
Integration-stack adaptive MTP: eight pairs/80 exact outputs, +1.302%, CI [−1.053,+3.511]%, balanced p=.371429. No direction or equivalence established; all 14 flags/30 changed-work comparisons remain. Earlier AR/MTP pilots and their flags are retained separately.
Standalone published base: CPU/build and actual AR/MTP output checks pass. The subsequent fixed eight-pair MTP study completes 16 starts/80 exact outputs and 32 clean host transport windows. Point C2 change +18.365%, bootstrap CI [0.670,49.116]%, but predeclared exact balanced p=.142857: inconclusive, not an established gain or equivalence. All 55 new phase flags/30 work changes remain; the earlier 24 pilot flags are separate. Repeated C1 has identical recorded draft work yet varies 1.991–2.556 s in both builds. Early documentation/git activity and ordinary desktop/writeback effects remain limitations; no observations excluded.
Standalone candidate functional checks: AR and MTP each pass 23 HTTP requests, six request-ID-matched server cancellations, exact width-two survivors/post-cancel replay, and seeded keep/discard continuations reusing 18,461 tokens. Actual mode/proposals, cleanup, transport and kernel checks pass. Integration functional checks, sanitizer recursion checks and the naive nested-wait deadlock negative control are retained.
Separate path diagnostic: three genuine Corsair table-I/O cohorts include 198 commands over 10 ms, maxima 62/77/32 ms from software setup to CQ consumption. IRQ entry→CQ ≤6.75 µs and observed reader runnable delay ≤33.179 µs. This locates those delays before observed IRQ/CQ handling; it does not identify device/firmware/interrupt-delivery cause or explain the old long plateau. Failed collector shutdown guard, one missing EVO setup record and missing post-run transport snapshot remain explicit; no retrospective controller pass or speed claim.
Per-request data, figures, source/binary provenance and limits distinguish the combined private HC/cooperative/cache stack from this older standalone published base. The same temporary driver is used in paired arms; approved drivers restore after each study. The first confidence launch failed before model execution because its copied wrapper lacked execute permission; that attempt/cleanup remains, and the completed separate study added access checks.
Keep draft pending request-level timing attribution and review. No merge, permanent default deployment, universal deadlock clearance or blanket speedup claim.