arionum-java icon indicating copy to clipboard operation
arionum-java copied to clipboard

HT CPU Core Affinity

Open nate911 opened this issue 7 years ago • 2 comments

Are there plans to change how worker threads are assigned to CPU cores (with hyper-threading)? For example, I'd like to use it with an i7 on 4 out of 8 cores. The physical cores are 0/2/4/6, but currently, this configuration uses CPU cores 3/4/5/6, a mix of virtual and physical cores.

nate911 avatar Apr 01 '18 22:04 nate911

ATM the route I recommend is controlling at the OS level. Use taskset in *nix and start /affinity <mask> for Windows.

The affinity library I use is pretty feature full, but the windows support has been leaving me a bit dissapointed.

Let me know if I can give clearer guidance on the external affine set. For your specific case you'd use (in windows: start /affinity 77 java -d64 -jar arionum-miner-java.jar for 0/2... iirc and start /affinity AA java -d64 -jar arionum-miner-java.jar for 1/3/ etc.

ProgrammerDan avatar Apr 01 '18 23:04 ProgrammerDan

Thanks for the guidance. It looks like once I add those parameters, the behavior is covered by issue #8. I'll check back for a release soon.

nate911 avatar Apr 01 '18 23:04 nate911