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

Run verifier in blocking pool #20812

Merged
merged 1 commit into from
Jan 10, 2025
Merged

Conversation

mystenmark
Copy link
Contributor

Turns out the verifier is running in the async thread pool, which may be causing thread stalls.

@mystenmark mystenmark requested a review from a team as a code owner January 8, 2025 00:09
Copy link

vercel bot commented Jan 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 8, 2025 0:10am
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Jan 8, 2025 0:10am
sui-kiosk ⬜️ Ignored (Inspect) Jan 8, 2025 0:10am
sui-typescript-docs ⬜️ Ignored (Inspect) Jan 8, 2025 0:10am

@mwtian
Copy link
Member

mwtian commented Jan 8, 2025

Can you test this in PT first?

.spawn_blocking({
let inner = inner.clone();
move || {
inner.verify_commits(
Copy link
Member

Choose a reason for hiding this comment

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

Why is this needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The spawn_blocking? To keep the long running cpu work out of the async thread pool.

@mystenmark
Copy link
Contributor Author

Can you test this in PT first?

yes of course just wanted a sanity check first

@mystenmark mystenmark merged commit 139a2b9 into main Jan 10, 2025
52 checks passed
@mystenmark mystenmark deleted the mlogan-consensus-non-blocking branch January 10, 2025 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants