Skip to content

fix(tp2): let pending snapshots run before AR advances - #14

Closed
LostVector wants to merge 2 commits into
neuhaus:rdmafrom
LostVector:fix/tp-ar-snapshot-turn
Closed

LostVector wants to merge 2 commits into
neuhaus:rdmafrom
LostVector:fix/tp-ar-snapshot-turn

Conversation

@LostVector

@LostVector LostVector commented Oct 31, 2026 •

Copy link
Copy Markdown

Extends #13’s snapshot handoff to AR and batched advances. A pending capture previously waited 601 ms while 22 new advances acquired the same mutex; capture itself then took 3.9 ms. A thread-local Turn lets nested advances finish inside an active fallback decode without waiting on the snapshot gate and deadlocking.

This branch contains only rebased #13 plus the AR code/test commit 50dc06cb (original 92bf7cb6). The AR follow-up changes three files. Until #13 merges, GitHub’s cumulative diff also includes that prerequisite. Both are rebased onto rdma at 3198893d; test registration follows the current non-Windows CMake layout. No benchmark documentation, measurements, scripts or images are added to this PR.

Results from the earlier integration stack: eight balanced AR pairs matched all 80 outputs, with C2 throughput +5.415% (95% CI +0.886 to +12.644%). Adaptive-MTP results were inconclusive. Fair admission can delay the first request while improving combined progress; this is not a uniform latency or general speedup claim. Those measurements use the revisions and configurations recorded in the evidence, not this fresh rebase.

Full retained evidence, raw data, scripts and qualification limits on our fork.

Fresh rebase validation: focused CPU gate, TP executor, control and disk-store tests; gate ASan/UBSan; repository formatting. No fresh two-node performance claim. Remains draft for review.

November 5 integration check

The requested rebase is superseded by the maintainer’s integration into rdma: prerequisite #13 is included through merge a7fa41d6 and the AR follow-up through f070a179. The AR range-diff is identical; gate/test files match our review head. No duplicate patch was pushed or PR closed. Fresh validation of integrated f070a179: gate, TP executor, control and disk-store CPU tests pass; gate ASan/UBSan and repository formatting pass. This is a code/integration check, not a new two-node performance measurement.

@neuhaus

neuhaus commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Thanks, the AR follow-up itself looks right to me: the thread-local Turn keeps the nested Advance inside a fallback DecodeStep from waiting at the gate, which is the deadlock I was looking for.

I'd like to take only the code commit (92bf7cb6, on top of #13), not the rest of this PR. The other commits add about 40 data, script and image files under docs/patches/ar-snapshot-turn/ and edit BENCHMARKS.md, EXPERIMENTS.md and QUALITY.md, which record measurements from my pair. Could you split it so that this PR carries just 92bf7cb6 and a short summary of the results in the description, and keep the evidence on your fork's branch with a link? I'm testing #11, #12, #13 and 92bf7cb6 together on my TP2 pair against the current rdma now. Both #13 and this PR conflict with it in CMakeLists.txt/cmake/Checks.cmake (test registration only), so a rebase would help as well.

@LostVector
LostVector force-pushed the fix/tp-ar-snapshot-turn branch from ed5c65d to 50dc06c Compare November 4, 2026 20:42
@LostVector
LostVector marked this pull request as ready for review November 5, 2026 17:48
@neuhaus

neuhaus commented Nov 7, 2026

Copy link
Copy Markdown
Owner

Thanks for your contribution!
This code has landed, sorry it doesn't credit you properly. Thanks again.

@neuhaus neuhaus closed this Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants