Repository navigation
DDIR: gather trace merge timestamps by lane - #1117
Draft
frankmcsherry wants to merge 2 commits into
Draft
frankmcsherry wants to merge 2 commits into
frankmcsherry wants to merge 2 commits into
Conversation
The lane gather wins on single-row runs but loses to slice copies once runs reach about eight rows. Merge now records its output as stretches: a run of at least eight rows is a slice copy per lane, and shorter runs join a stretch read row by row through the tags and offsets. Each lane is one pass over the stretches. On LDBC SF1, all 41 plans in one server with 4 workers, answers match master-next at every capture. The initial settle falls from 44.8 s to 38.7 s, the same as the plain gather (38.1 s). The 521-epoch replay is unchanged, within the 5% noise between repeats. In that workload 62% of merge rows come from runs shorter than eight, and longer runs average 17 rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DDIR trace merge builds source tags and row offsets to gather the surviving keys and values.
Reuse that map to gather timestamps one coordinate at a time.
Exclusive runs still extend the map and diffs in bulk, and equal times still combine their diffs in the merge loop.
A coordinate missing from a source reads as zero.
In the maintained transaction experiment, 82% of range appends copied a single row.
At 100,000 transactions per cycle, consolidation fell from 3.63 s to 2.81 s and all merge phases from 8.40 s to 7.74 s, summed across workers.
Whole-cycle latency showed no consistent change.
Those numbers are from the earlier prototype, with the same Popster survey in both arms.
This PR uses DDIR's existing Corgi survey.
All 190 interactive library tests pass, including a timestamp gather test with unequal input widths.
The release server passed the maintained transaction workload's serial rollback and final-state checks at 10,000 and 100,000 transactions per cycle.
The performance follow-up is a comparison against the parent commit with Corgi throughout, plus a merge-heavy workload with longer contiguous runs.