From f016ccdbb5661b8ef661f30e65be0bf746e90783 Mon Sep 17 00:00:00 2001 From: sakridge Date: Sat, 13 Jun 2020 22:48:32 -0700 Subject: [PATCH] Dial down gossip threadpool (#10540) --- core/src/cluster_info.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/src/cluster_info.rs b/core/src/cluster_info.rs index ded25d50e7..6de9864455 100644 --- a/core/src/cluster_info.rs +++ b/core/src/cluster_info.rs @@ -1728,8 +1728,8 @@ impl ClusterInfo { let now = timestamp(); const INTERVAL_MS: u64 = 100; - // allow 50kBps per staked validator, epoch slots + votes ~= 1.5kB/slot ~= 4kB/s - const BYTES_PER_INTERVAL: usize = 5000; + // allow 30kBps per staked validator, epoch slots + votes ~= 1.5kB/slot ~= 4kB/s + const BYTES_PER_INTERVAL: usize = 3000; const MAX_BUDGET_MULTIPLE: usize = 5; // allow budget build-up to 5x the interval default if now - w_outbound_budget.last_timestamp_ms > INTERVAL_MS { @@ -2255,7 +2255,8 @@ impl ClusterInfo { .name("solana-listen".to_string()) .spawn(move || { let thread_pool = rayon::ThreadPoolBuilder::new() - .num_threads(get_thread_count()) + .num_threads(get_thread_count() / 2) + .thread_name(|ix| format!("gos_work_{}", ix)) .build() .unwrap(); let mut last_print = Instant::now();