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

Stop 1weso squaring #176

Closed
wants to merge 3 commits into from
Closed

Stop 1weso squaring #176

wants to merge 3 commits into from

Conversation

emlowe
Copy link
Contributor

@emlowe emlowe commented Apr 5, 2024

For 1-Wesolowski proofs (used for "blueboxing") the squaring thread previously needlessly continued squaring while proof computation was in progress. In practice, proof computation also takes a while, so this could easily result in 10-20M additional squaring iterations. With this change, the squaring stops after the iterations target is reached. This also makes CPU utilisation more predictable. Previously, during squaring 2 threads were heavily utilised, and 3 threads during proof computation. Now it's never more than 2 high-load threads: 2 for squaring, 1 for proof computation.

This was originally written more than 2 years ago for the "blueboxing group" we ran in a SpaceFarmers.io Discord channel and was used by the people participating in that group intensively over several months. With the recently renewed interest in blueboxing, I remembered that I never got around to upstreaming that change: so here we go :)

see #174

xearl4 and others added 3 commits April 4, 2024 21:43
For 1-Wesolowski proofs (used for "blueboxing") the squaring thread
previously needlessly continued squaring while proof computation was in
progress. In practice, proof computation also takes a while, so this
could easily result in 10-20M additional squaring iterations. With this
change, the squaring stops after the iterations target is reached. This
also makes CPU utilisation more predictable. Previously, during squaring
2 threads were heavily utilised, and 3 threads during proof computation.
Now it's never more than 2 high-load threads: 2 for squaring, 1 for
proof computation.
@xearl4
Copy link
Contributor

xearl4 commented Apr 5, 2024

@emlowe Thanks. I just force-pushed a signed version of my original commit to #174, just in case you need that: 5b9ee7b

@emlowe
Copy link
Contributor Author

emlowe commented May 13, 2024

Closing this PR - opened one specific to the TSAN test fix

@emlowe emlowe closed this May 13, 2024
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.

None yet

2 participants