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

High-performance vanity gen #29

Open
kornpow opened this issue Sep 17, 2021 · 1 comment
Open

High-performance vanity gen #29

kornpow opened this issue Sep 17, 2021 · 1 comment

Comments

@kornpow
Copy link

kornpow commented Sep 17, 2021

I was attempting to run chantools vanitygen on an AWS m5.24xlarge using this command:
chantools vanitygen --prefix 0212345678 --threads 255
and I only got about a 5x speed improvement over a quad-core laptop.

Any ideas?

This instance should have 96 cores. So was hoping for like a 10-15x improvement.

@guggero
Copy link
Member

guggero commented Sep 19, 2021

The parallelism in vanitygen uses runtime.GOMAXPROCS (https://pkg.go.dev/runtime). Maybe that doesn't scale very well to a high core count?
I don't have much experience with highly parallel code to be honest. But maybe you can tweak it a bit with trial and error?
Maybe the common "synchronization point" in the code here happens too often? Try increasing that number by factor 10 or 100. That will mean the stats printed every second will be less precise but the threads will be blocked less often.

I'm happily accepting PRs if you find something that can be optimized.

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

No branches or pull requests

2 participants