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

Add hidden CLI arg to control number of shred sigverify threads #3046

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

steviez
Copy link

@steviez steviez commented Oct 1, 2024

Problem

#105

Summary of Changes

The argument controls the size of the rayon threadpool that is used to perform signature verification on received shreds. The argument is hidden for now.

This change allows configuration of the value, but the default behavior (ie not setting the arg) matches the pre-existing behavior.

The argument controls the size of the rayon threadpool that is used to
perform signature verification on received shreds. The argument is
hidden for now.

This change allows configuration of the value, but the default behavior
(ie not setting the arg) matches the pre-existing behavior.
@steviez steviez requested a review from bw-solana October 2, 2024 13:48
Comment on lines +373 to +374
tvu_shred_sigverify_threads: NonZeroUsize::new(get_thread_count())
.expect("thread count is non-zero"),
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having to duplicate this (in addition to calling the function in validator/cli/thread_args.rs is a bit unfortunate, but it was what we did with replay_transactions_threads.

For now, I think I'm ok with it. Eventually, I'd like the solana_rayon_threadlimit crate to go away completely, removing these "extraneous" usages could be tucked in with that

Copy link

@bw-solana bw-solana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@steviez steviez merged commit 83e7d84 into anza-xyz:master Oct 2, 2024
40 checks passed
@steviez steviez deleted the val_cli_shred_sigverify_threads branch October 2, 2024 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants