Skip to content

v4.3: bls-cert-verify: specify an optional thread pool (backport of #16059) - #16085

Merged
bw-solana merged 2 commits into
v4.3from
mergify/bp/v4.3/pr-16059
Oct 15, 2026
Merged

bw-solana merged 2 commits into
v4.3from
mergify/bp/v4.3/pr-16059

Conversation

@mergify

@mergify mergify Bot commented Oct 15, 2026

Copy link
Copy Markdown

Problem

Profiles show that using a rayon thread pool for verifying certs in the block footer does not help performance and can degrade it.

Summary of Changes

bls-cert-verify takes an optional thread pool as an argument that is used to control whether or not a pool should be used. Block footer verification specifies None and bls-sigverifier specifies the pool it was already using.

Testing

The screenshots below show the performance of verifying block footer certs with a thread pool of 4 workers vs. no thread pool vs. 64 workers thread pool.
Screenshot 2026-10-15 at 2 41 43 am
Screenshot 2026-10-15 at 2 42 03 am
Screenshot 2026-10-15 at 2 42 23 am

Given this, we think it is fine to remove the pool.


This is an automatic backport of pull request #16059 done by Mergify.

(cherry picked from commit 534c3e1)

# Conflicts:
#	bls-sigverify/src/bls_cert_sigverify.rs
@mergify mergify Bot added the conflicts label Oct 15, 2026
@mergify
mergify Bot requested a review from a team as a code owner October 15, 2026 09:59
@mergify

mergify Bot commented Oct 15, 2026

Copy link
Copy Markdown
Author

Cherry-pick of 534c3e1 has failed:

On branch mergify/bp/v4.3/pr-16059
Your branch is up to date with 'origin/v4.3'.

You are currently cherry-picking commit 534c3e1.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   bls-cert-verify/benches/cert_verify.rs
	modified:   bls-cert-verify/src/cert_verify.rs
	modified:   runtime/src/bank.rs
	modified:   runtime/src/block_component_processor.rs
	modified:   runtime/src/validated_block_finalization.rs
	modified:   runtime/src/validated_reward_certificate.rs

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   bls-sigverify/src/bls_cert_sigverify.rs

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

@akhi3030

Copy link
Copy Markdown

@Mergifyio rebase

@mergify

mergify Bot commented Oct 15, 2026

Copy link
Copy Markdown
Author

rebase

☑️ Nothing to do, the required conditions are not met

Details
  • any of:
    • #commits-behind > 0 [📌 rebase requirement]
    • -linear-history [📌 rebase requirement]
  • -closed [📌 rebase requirement]
  • -conflict [📌 rebase requirement]
  • queue-position = -1 [📌 rebase requirement]

@akhi3030

Copy link
Copy Markdown

fixed the conflicts.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.97590% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.3%. Comparing base (b913891) to head (64f256f).

Additional details and impacted files
@@           Coverage Diff            @@
##             v4.3   #16085    +/-   ##
========================================
  Coverage    82.3%    82.3%            
========================================
  Files         918      918            
  Lines      361818   361905    +87     
========================================
+ Hits       297785   297900   +115     
+ Misses      64033    64005    -28     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@AshwinSekar AshwinSekar left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Approving as SME, mechanical change to remove rayon and shows speedup on block footer processing

@bw-solana
bw-solana merged commit cebcd4e into v4.3 Oct 15, 2026
47 checks passed
@bw-solana
bw-solana deleted the mergify/bp/v4.3/pr-16059 branch October 15, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants