index: time catch-up stages and assemble heights on the script pool - #786
Merged
Merged
Conversation
The 10s progress line only printed a cumulative rate, so a slow tail could not be told apart from parent reads, tweak math, or fsync. Co-authored-by: Cursor <cursoragent@cursor.com>
Filter GCS and tweak EC ran on one thread, which is the slow tail once blocks are large. The CPU thread still commits the window. Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Summary
index: buildline and the one-heightindex: applyline report intervalread=build=commit=milliseconds.tip: accept bf=stays the combined build+commit time.rbtc-scripts-*(filter GCS and tweak EC). The IO thread fills the block hash so those jobs do no store IO. The CPU thread still commits each window once.Host check after merge
Grep
index: build next=around 700k–800k and past 850k. The 2026-09-26 baseline was about 43–53/s at 711k–745k and 10–20/s from 820k to the tip.build=is the long pole,rate=should move toward 30–60/s on 4 CPUs andbuild=should fall towardread=.read=is still at least 80% of the interval past 850k, the next change is the reader (window size, ring depth), not a pipeline reshape.commit=is the long pole, promote write aggregation.Do not start an in-flight cache from this PR alone.
Test plan
cargo test -p rbitcoin-consensus --lib index_writebehind-D warnings, deny, ast-grep, andci-os-smokeMade with Cursor