nimbus-eth2/tests/consensus_spec
Jacek Sieka b8a32419b8
async batch verification (+40% sig verification throughput) (#5176)
* 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>
2023-08-03 11:36:45 +03:00
..
altair reduce memory allocations during state transition (#5235) 2023-08-03 01:03:40 +02:00
bellatrix reduce memory allocations during state transition (#5235) 2023-08-03 01:03:40 +02:00
capella reduce memory allocations during state transition (#5235) 2023-08-03 01:03:40 +02:00
deneb reduce memory allocations during state transition (#5235) 2023-08-03 01:03:40 +02:00
phase0 disable BareExcept warnings (#4662) 2023-02-24 19:50:46 +00:00
README.md test fixture cleanups (#2976) 2021-10-12 13:36:52 +02:00
all_tests.nim add Bellatrix fork and transition tests; "Ethereum Foundation" -> EF (#3242) 2022-01-05 09:42:56 +01:00
consensus_spec_tests_preset.nim rename directory tests/consensus_specs/{eip4844,deneb}/ (#4628) 2023-02-15 21:07:31 +00:00
fixtures_utils.nim automated consensus spec URL updating to v1.4.0-beta.0 (#5121) 2023-06-24 15:43:30 +00:00
os_ops.nim Fix Windows MAX_PATH constraint issue in CI. (#4576) 2023-02-10 21:59:38 +01:00
test_fixture_fork.nim rename `upgrade_to_eip4844` > `upgrade_to_deneb` (#4723) 2023-03-11 14:28:55 +00:00
test_fixture_fork_choice.nim async batch verification (+40% sig verification throughput) (#5176) 2023-08-03 11:36:45 +03:00
test_fixture_light_client_single_merkle_proof.nim rename `(with|at)StateFork` > `(with|at)ConsensusFork` (#4725) 2023-03-11 14:39:29 +00:00
test_fixture_light_client_sync.nim use v1.4.0-alpha.1 consensus spec test vectors (#5026) 2023-06-03 21:55:08 +00:00
test_fixture_light_client_update_ranking.nim rename `lcDataForkAtStateFork` > `lcDataForkAtConsensusFork` (#4726) 2023-03-11 20:09:21 +00:00
test_fixture_sanity_blocks.nim use consensus spec v1.3.0-rc.3 test vectors (#4645) 2023-02-21 12:58:08 +00:00
test_fixture_sanity_slots.nim use consensus spec v1.3.0-rc.3 test vectors (#4645) 2023-02-21 12:58:08 +00:00
test_fixture_ssz_generic_types.nim Fix Windows MAX_PATH constraint issue in CI. (#4576) 2023-02-10 21:59:38 +01:00
test_fixture_transition.nim update transition test category from `EIP4844` to `Deneb` (#4716) 2023-03-10 17:12:46 +00:00

README.md

Tests based on scenarios generated from the consensus spec.