-
Notifications
You must be signed in to change notification settings - Fork 46
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
SIGMA mining issue with windows machines >64 cores #184
Comments
Additional complications - our windows builds make use of mingw-w64 with pthreads. mingw-w64 does not expose any of the windows thread group API stuff (or any functions of its own that wrap them) - nor does it expose pthreads 'sched_setaffinity' (its unclear if 'sched_setaffinity' would actually help anyway). Porting off of pthreads would be a major change and likely will have lots of complications in our dependency libraries - the easiest solution here might be to try and get the mingw team to add processor group APIs to mingw. |
Also worth investigating - what happens if running the linux version in WSL - does WSL suffer from the same threading limitations or does that work correctly? |
A not ideal but reasonable workaround for this for now is to simply run two copies of the program, e.g.: This is not quite equivalent to the hashrate a single correctly functioning instance would achieve but does manage to at least utilise all cores. |
Note that the mingw mailing list is to date not very receptive to the idea of actually patching mingw to be able to accept this. https://sourceforge.net/p/mingw-w64/mailman/message/36893364/ Possible way(s) forward from here:
|
Describe the issue
Mining on a windows machine with more than 64 threads results in inability to use all of the threads, e.g. on an 88 thread machine only 44 will be properly utilised
Can you reliably reproduce the issue?
If so, please list the steps to reproduce below:
Expected behaviour
UI should show the correct number of cores on the slider and all cores should be utilised.
Actual behaviour
Wrong maximum number of cores shown, and even if forced via RPC not all cores are utilised.
What version of Gulden are you using?
2.1.0.19, but presents in all current versions (SIGMA)
Machine specs:
Any extra information that might be useful in the debugging process.
See https://bitsum.com/general/the-64-core-threshold-processor-groups-and-windows/ for an explanation of why this happens.
The text was updated successfully, but these errors were encountered: