b8a32419b8
* async batch verification When batch verification is done, the main thread is blocked reducing concurrency. With this PR, the new thread signalling primitive in chronos is used to offload the full batch verification process to a separate thread allowing the main threads to continue async operations while the other threads verify signatures. Similar to previous behavior, the number of ongoing batch verifications is capped to prevent runaway resource usage. In addition to the asynchronous processing, 3 addition changes help drive throughput: * A loop is used for batch accumulation: this prevents a stampede of small batches in eager mode where both the eager and the scheduled batch runner would pick batches off the queue, prematurely picking "fresh" batches off the queue * An additional small wait is introduced for small batches - this helps create slightly larger batches which make better used of the increased concurrency * Up to 2 batches are scheduled to the threadpool during high pressure, reducing startup latency for the threads Together, these changes increase attestation verification throughput under load up to 30%. * fixup * Update submodules * fix blst build issues (and a PIC warning) * bump --------- Co-authored-by: Zahary Karadjov <zahary@gmail.com> |
||
---|---|---|
.. | ||
altair | ||
bellatrix | ||
capella | ||
deneb | ||
phase0 | ||
README.md | ||
all_tests.nim | ||
consensus_spec_tests_preset.nim | ||
fixtures_utils.nim | ||
os_ops.nim | ||
test_fixture_fork.nim | ||
test_fixture_fork_choice.nim | ||
test_fixture_light_client_single_merkle_proof.nim | ||
test_fixture_light_client_sync.nim | ||
test_fixture_light_client_update_ranking.nim | ||
test_fixture_sanity_blocks.nim | ||
test_fixture_sanity_slots.nim | ||
test_fixture_ssz_generic_types.nim | ||
test_fixture_transition.nim |
README.md
Tests based on scenarios generated from the consensus spec.