Ethereum Tutorials - Herong's Tutorial Notes - Version 1.01, by Dr. Herong Yang
Run "geth" Miner in Multiple Threads
This section describes how to run 'geth' miner in multiple threads.
If you think your "geth" miner is not running fast enough, you can check its performance and run it with multiple threads.
The performance of your "geth" miner is measured by "hashrate", the number of hashes it can generated per second. Here is the hashrate of my "geth" miner running in a single thread on a 2.30 GHz computer:
> miner.getHashrate() 60764
Now let's improve the miner's performance by running it in 4 threads:
> miner.stop() true > miner.start(4) null ... > miner.getHashrate() 179138
As you can see the miner's performance increased by about 3 times with 4 threads, comparing to 1 thread.
Let's wait a little bit longer, may be the miner will generate enough hashes to find (mine) one that meets the blockchain hash requirement.
Last update: 2018.
Table of Contents