From 7bdeea10add8cc343c1982bb56cab7f894914f3c Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Mon, 22 Aug 2022 08:06:06 -0700 Subject: [PATCH] Assign custom names to the Rayon global thread pool --- core/src/validator.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/src/validator.rs b/core/src/validator.rs index ebdda2d48f2b90..babc1e1fb20b74 100644 --- a/core/src/validator.rs +++ b/core/src/validator.rs @@ -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 {