etclabscore / core-geth

A highly configurable Go implementation of the Ethereum protocol.
https://etclabscore.github.io/core-geth
GNU Lesser General Public License v3.0
263 stars 144 forks source link

Update algorithm.go #631

Closed yuriy0803 closed 2 months ago

yuriy0803 commented 2 months ago

Set the number of threads to 2 ?????????

meowsbits commented 2 months ago

Why?

yuriy0803 commented 2 months ago

Why?

because it is the next DAG size where the CPU runs at 100% Generating ethash verification cache

yuriy0803 commented 2 months ago

What other programs can cause problems until it generates the Ethash verification cache?

yuriy0803 commented 2 months ago

when CPU is running at 100%

ziogaschr commented 2 months ago

While I see your point, as you see 100% CPU usage for a while, I wouldn't favour this change. The Ethash generation takes short time (1-5 minutes), which is considered ok to utilise the max number of CPU threads available to the system. The system handles its resources for other apps.

meowsbits commented 2 months ago

It seems this proposal has been resolved as unnecessary by @ziogaschr's clarification.