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

bloom: don't calc checksum at startup #12967

Merged
merged 4 commits into from
Dec 3, 2024
Merged

Conversation

AskAlexSharov
Copy link
Collaborator

@AskAlexSharov AskAlexSharov commented Dec 3, 2024

  • bloom is not different from other files

  • we can't afford reading 5TB at each startup (all files) and checksum it

  • also such read may flood PageCache

  • so we trying to minimize amount of reads at startup

  • we have .torrent for each file - which is "array of chunks checkums". We can verify checksums at any time by downloader --verify or --verify.failfast.

  • yes, need to open PR to origin repo. but currently i need to keep focus on e3 release.

@AskAlexSharov AskAlexSharov changed the title bloom: don't calc at startup bloom: don't calc checksum at startup Dec 3, 2024
@@ -2,6 +2,11 @@ module github.com/erigontech/erigon-lib

go 1.22.0

replace (
github.com/anacrolix/torrent => github.com/erigontech/torrent v1.54.2-alpha-38
github.com/holiman/bloomfilter/v2 => github.com/AskAlexSharov/bloomfilter/v2 v2.0.9
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we still need your fork of bloomfilter ?

@antonis19 antonis19 merged commit 7c7023d into main Dec 3, 2024
13 of 14 checks passed
@antonis19 antonis19 deleted the bloom_no_checksum_at_startup branch December 3, 2024 09:42
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