Skip to content

block_size = 8KiB#76

Open
l0rinc wants to merge 12 commits intobitcoin-dev-tools:masterfrom
l0rinc:detached55
Open

block_size = 8KiB#76
l0rinc wants to merge 12 commits intobitcoin-dev-tools:masterfrom
l0rinc:detached55

Conversation

@l0rinc
Copy link
Copy Markdown
Collaborator

@l0rinc l0rinc commented Dec 18, 2024

No description provided.

josibake and others added 7 commits December 2, 2024 10:26
introduce two commandline options for assumeutxo, specifically for
benchmarking. these commands are:

- pausebackgroundsync - an option lets the user pause the verification
                        of historical blocks in the background
-loadutxosnapshot=<path> - load an assumeutxo snapshot on startup,
                           instead of needing to go through the rpc
                           command. the node will shutdown immediately
                           after the snapshot has been loaded

this path is not meant for general use and is instead just for making it
more ergonomic to use assumeutxo for benchmarking IBD changes. the
benefits of using assumeutxo here are we can start from an arbitrary
height and sync to chaintip to collect relevant data quickly. using
assumeutxo means we can make whatever changes we need to the
chainstatedb, since it will be created fresh from the snapshot.

note, to use the loadutxosnapshot option, you must first run:

    ./build/src/bitcoind -stopatheight=1

this makes the node do a header sync and then shut down. this is because
assumeutxo will not load a snapshot unless the base block is in the
header chain. we could remove this requirement, but this patch is meant
to be as minimal as possible, and this also allows us to perform heaeder
sync as a preparation commit for a benchmark, which helps keep IBD
benchmarks more focused on strictly measuring IBD.

next, run:

    ./build/src/bitcoind -loadutxosnapshot=<path>

the node will shutdown after the snapshot is loaded. finally, run:

    ./build/src/bitcoind -pausebackgroundsync=1

for the actual benchmarking step. this ensures only the sync to chaintip
is benchmarked and the load snapshot step is not included in the
measurement.

Co-authored-by: Sjors Provoost <10217+sjors@users.noreply.github.com>
Co-authored-by: David Gumberg <davidzgumberg@gmail.com>
@github-actions
Copy link
Copy Markdown

📊 Benchmark results for this run (12409509701) will be available at: https://bitcoin-dev-tools.github.io/benchcoin/results/pr-76/12409509701/index.html after the github pages "build and deployment" action has completed.

@github-actions
Copy link
Copy Markdown

📊 Benchmark results for this run (12437387250) will be available at: https://bitcoin-dev-tools.github.io/benchcoin/results/pr-76/12437387250/index.html after the github pages "build and deployment" action has completed.

@l0rinc l0rinc changed the title block_size = 2 * 1024 block_size = 1 * 1024 Dec 21, 2024
@l0rinc l0rinc changed the title block_size = 1 * 1024 block_size =512 Dec 21, 2024
@l0rinc l0rinc changed the title block_size =512 block_size = 512 Dec 21, 2024
@github-actions
Copy link
Copy Markdown

📊 Benchmark results for this run (12446905754) will be available at: https://bitcoin-dev-tools.github.io/benchcoin/results/pr-76/12446905754/index.html after the github pages "build and deployment" action has completed.

1 similar comment
@github-actions
Copy link
Copy Markdown

📊 Benchmark results for this run (12446905754) will be available at: https://bitcoin-dev-tools.github.io/benchcoin/results/pr-76/12446905754/index.html after the github pages "build and deployment" action has completed.

@l0rinc l0rinc changed the title block_size = 512 block_size = 2MiB Dec 28, 2024
@github-actions
Copy link
Copy Markdown

📊 Benchmark results for this run (12533748546) will be available at: https://bitcoin-dev-tools.github.io/benchcoin/results/pr-76/12533748546/index.html after the github pages "build and deployment" action has completed.

@l0rinc l0rinc changed the title block_size = 2MiB block_size = 8KiB Dec 30, 2024
@github-actions
Copy link
Copy Markdown

📊 Benchmark results for this run (12546045880) will be available at: https://bitcoin-dev-tools.github.io/benchcoin/results/pr-76/12546045880/index.html after the github pages "build and deployment" action has completed.

@github-actions github-actions bot force-pushed the master branch 7 times, most recently from c556197 to 7862a78 Compare February 22, 2025 03:21
@github-actions github-actions bot force-pushed the master branch 4 times, most recently from 607732d to e0dab54 Compare March 4, 2025 03:28
@github-actions github-actions bot force-pushed the master branch 6 times, most recently from 3b99594 to 4098c1c Compare March 10, 2025 03:20
@willcl-ark willcl-ark force-pushed the master branch 7 times, most recently from d216dc5 to 7f7e173 Compare October 29, 2025 02:02
@willcl-ark willcl-ark force-pushed the master branch 3 times, most recently from 331398e to 31836d5 Compare December 8, 2025 11:38
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.

4 participants