equihash-solomining
equihash-solomining copied to clipboard
Clustering
I may be missing something, but it seems every thread is polling the daemon for work. Is that right? When I used z-nomp, I was also using "blocknotify", so I didn't notice the threads hammering the daemon the way they are now. I've turned "clustering" off, for the time being.
Every thread polls so they're on the same page as the other ones since that's one area Node.js falls short. I made the default config to be really aggressive at 100ms but I haven't noticed any high cpu usage from it though.
Well, they could be kept on the same page by having a single thread deal exclusively with the daemon, sinking and sourcing everything to/from the stratum threads.
On Mar 27, 2017, at 8:05 PM, Procrastinator [email protected] wrote:
Every thread polls so they're on the same page as the other ones since that's one area Node.js falls short. I made the default config to be really aggressive at 100ms but I haven't noticed any high cpu usage from it though.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aayanl/equihash-solomining/issues/4#issuecomment-289640552, or mute the thread https://github.com/notifications/unsubscribe-auth/AOexPasWFOkA-V4lJ3LZlWw5mkQ9UzC1ks5rqGrZgaJpZM4MniGV.
https://nodejs.org/api/cluster.html#cluster_how_it_works