Assign custom names to the Rayon global thread pool

This commit is contained in:
Michael Vines 2022-08-22 08:06:06 -07:00 committed by mergify[bot]
parent 9daa41024d
commit 7bdeea10ad
1 changed files with 8 additions and 0 deletions

View File

@ -425,6 +425,14 @@ impl Validator {
info!("entrypoint: {:?}", cluster_entrypoint);
}
if rayon::ThreadPoolBuilder::new()
.thread_name(|ix| format!("solRayonGlob{:02}", ix))
.build_global()
.is_err()
{
warn!("Rayon global thread pool already initialized");
}
if solana_perf::perf_libs::api().is_some() {
info!("Initializing sigverify, this could take a while...");
} else {