Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.2: Revert "Thread manager instantiation in the validator (#4603)" (backport of #5132) #5156

Open
wants to merge 2 commits into
base: v2.2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ codecov = { repository = "solana-labs/solana", branch = "master", service = "git

[dependencies]
agave-banking-stage-ingress-types = { workspace = true }
agave-thread-manager = { workspace = true }
agave-transaction-view = { workspace = true }
ahash = { workspace = true }
anyhow = { workspace = true }
Expand Down
7 changes: 0 additions & 7 deletions core/src/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ use {
tpu::{Tpu, TpuSockets, DEFAULT_TPU_COALESCE},
tvu::{Tvu, TvuConfig, TvuSockets},
},
agave_thread_manager::{ThreadManager, ThreadManagerConfig},
anyhow::{anyhow, Context, Result},
crossbeam_channel::{bounded, unbounded, Receiver},
lazy_static::lazy_static,
Expand Down Expand Up @@ -315,7 +314,6 @@ pub struct ValidatorConfig {
pub replay_forks_threads: NonZeroUsize,
pub replay_transactions_threads: NonZeroUsize,
pub tvu_shred_sigverify_threads: NonZeroUsize,
pub thread_manager_config: ThreadManagerConfig,
pub delay_leader_block_for_pending_fork: bool,
}

Expand Down Expand Up @@ -388,7 +386,6 @@ impl Default for ValidatorConfig {
rayon_global_threads: NonZeroUsize::new(1).expect("1 is non-zero"),
replay_forks_threads: NonZeroUsize::new(1).expect("1 is non-zero"),
replay_transactions_threads: NonZeroUsize::new(1).expect("1 is non-zero"),
thread_manager_config: ThreadManagerConfig::default_for_agave(),
tvu_shred_sigverify_threads: NonZeroUsize::new(1).expect("1 is non-zero"),
delay_leader_block_for_pending_fork: false,
}
Expand Down Expand Up @@ -592,7 +589,6 @@ pub struct Validator {
repair_quic_endpoints: Option<[Endpoint; 3]>,
repair_quic_endpoints_runtime: Option<TokioRuntime>,
repair_quic_endpoints_join_handle: Option<repair::quic_endpoint::AsyncTryJoinHandle>,
thread_manager: ThreadManager,
}

impl Validator {
Expand Down Expand Up @@ -624,7 +620,6 @@ impl Validator {

let start_time = Instant::now();

let thread_manager = ThreadManager::new(&config.thread_manager_config)?;
// Initialize the global rayon pool first to ensure the value in config
// is honored. Otherwise, some code accessing the global pool could
// cause it to get initialized with Rayon's default (not ours)
Expand Down Expand Up @@ -1665,7 +1660,6 @@ impl Validator {
repair_quic_endpoints,
repair_quic_endpoints_runtime,
repair_quic_endpoints_join_handle,
thread_manager,
})
}

Expand Down Expand Up @@ -1821,7 +1815,6 @@ impl Validator {
self.poh_timing_report_service
.join()
.expect("poh_timing_report_service");
self.thread_manager.destroy();
}
}

Expand Down
1 change: 0 additions & 1 deletion local-cluster/src/validator_configs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ pub fn safe_clone_config(config: &ValidatorConfig) -> ValidatorConfig {
replay_forks_threads: config.replay_forks_threads,
replay_transactions_threads: config.replay_transactions_threads,
tvu_shred_sigverify_threads: config.tvu_shred_sigverify_threads,
thread_manager_config: config.thread_manager_config.clone(),
delay_leader_block_for_pending_fork: config.delay_leader_block_for_pending_fork,
}
}
Expand Down
96 changes: 3 additions & 93 deletions programs/sbf/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

72 changes: 1 addition & 71 deletions svm/examples/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion thread-manager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ serde = { workspace = true, features = ["derive"] }
solana-metrics = { workspace = true }
thread-priority = { workspace = true }
tokio = { workspace = true, features = ["time", "rt-multi-thread"] }
toml = { workspace = true }

[target.'cfg(target_os = "linux")'.dependencies]
affinity = "0.1.2"
Expand All @@ -30,6 +29,7 @@ axum = { workspace = true }
env_logger = { workspace = true }
hyper = { workspace = true, features = ["http1", "client", "stream", "tcp"] }
serde_json = { workspace = true }
toml = { workspace = true }
tower = { workspace = true }

[features]
Expand Down
Loading
Loading