mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-21 20:10:36 +00:00
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>
59 lines
1.8 KiB
ArmAsm
59 lines
1.8 KiB
ArmAsm
# beacon_chain
|
|
# Copyright (c) 2023 Status Research & Development GmbH
|
|
# Licensed and distributed under either of
|
|
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
|
|
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
|
|
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
|
|
|
#if defined(__APPLE__)
|
|
# define cdecl(s) _##s
|
|
#else
|
|
# define cdecl(s) s
|
|
#endif
|
|
|
|
#if defined(__linux__)
|
|
.section .note.GNU-stack, "", @progbits
|
|
.section .rodata,"a",@progbits
|
|
#elif defined(__APPLE__)
|
|
.section __TEXT,__const
|
|
#elif defined(__WIN32__)
|
|
.section .rdata,"dr"
|
|
#else
|
|
.text
|
|
#endif
|
|
|
|
# name_data = start of data
|
|
# name_end = end of data (without alignment)
|
|
# name = 64-bit pointer to data
|
|
# name_size = 64-bit length in bytes
|
|
|
|
gnosis_mainnet_genesis_data:
|
|
.incbin "gnosis-chain-configs/mainnet/genesis.ssz"
|
|
gnosis_mainnet_genesis_end:
|
|
.global cdecl(gnosis_mainnet_genesis_size)
|
|
cdecl(gnosis_mainnet_genesis_size):
|
|
.quad gnosis_mainnet_genesis_end - gnosis_mainnet_genesis_data
|
|
|
|
gnosis_chiado_genesis_data:
|
|
.incbin "gnosis-chain-configs/chiado/genesis.ssz"
|
|
gnosis_chiado_genesis_end:
|
|
.global cdecl(gnosis_chiado_genesis_size)
|
|
cdecl(gnosis_chiado_genesis_size):
|
|
.quad gnosis_chiado_genesis_end - gnosis_chiado_genesis_data
|
|
|
|
#if defined(__linux__) && (defined(__pie__) || defined(__pic__))
|
|
.section .data.rel.ro,"aw",@progbits
|
|
#elif defined(__APPLE__)
|
|
.section __DATA,__const
|
|
#endif
|
|
|
|
.global cdecl(gnosis_mainnet_genesis)
|
|
.p2align 3
|
|
cdecl(gnosis_mainnet_genesis):
|
|
.quad gnosis_mainnet_genesis_data
|
|
|
|
.global cdecl(gnosis_chiado_genesis)
|
|
.p2align 3
|
|
cdecl(gnosis_chiado_genesis):
|
|
.quad gnosis_chiado_genesis_data
|