-
Notifications
You must be signed in to change notification settings - Fork 20.5k
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
Geth uses 100% CPU even with 1 thread active #20161
Comments
That command is deprecrated:
Use |
actually, the legacy one should still work, so i dont know if that would resolve your issue.
|
Ah, I think I know what the issue is. It's probably still constructing the mining DAG. That takes a few minutes and it's multi-threaded, so it will use up all your cores until it finishes. Mining itself will be single threaded afterwards. You can verify by looking at the logs. If it prints something along the lines of |
Verified that when you already have the dag, it's only one processor at 100% |
System information
Geth version: 1.9.6
OS & Version: Linux (Ubuntu 18.04)
Commit hash : bd05968
Expected behaviour
Only 1 thread is used.
Actual behaviour
All CPU threads (8) are used with a 100% load.
Steps to reproduce the behaviour
Run geth with parameters
--mine --minerthreads "1"
or
--mine --minerthreads 1
The text was updated successfully, but these errors were encountered: