Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate reading & writing into scoped threads #1129

Merged
merged 1 commit into from
Dec 26, 2024
Merged

Separate reading & writing into scoped threads #1129

merged 1 commit into from
Dec 26, 2024

Conversation

romanz
Copy link
Owner

@romanz romanz commented Dec 22, 2024

If the index is on a SSD, sync perfomance should improve.

When the blocks' data is stored on a HDD, it takes ~3h to finish the initial sync (without full compactions, which take an additional ~1h):
2024-12-22_19-56

Most of the time is spent waiting for p2p messages (i.e. bitcoind reading blocks from the spinning disk):
2024-12-22_19-57

Writing the index is done in parallel with the reading:
2024-12-22_19-58

@romanz romanz self-assigned this Dec 22, 2024
@romanz
Copy link
Owner Author

romanz commented Dec 23, 2024

Without this PR, the initial sync takes ~4h50m (excluding ~1h of full compaction).

If the index is on a SSD, sync perfomance should improve.
@romanz romanz merged commit fc8f756 into master Dec 26, 2024
12 checks passed
@romanz romanz deleted the par-index branch December 26, 2024 12:30
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.

1 participant