m-pays / m-cpuminer-v2

Latest miner (m-minerd)
Other
89 stars 63 forks source link

Bind to specific CPU when mining with less threads than cores #9

Open pascalwacker opened 6 years ago

pascalwacker commented 6 years ago

Hi

I currently mine in the background of a machine having 4 cores, however I cannot use all of them to not disturb the other services running on it. I tested both efficiency -e 95 and threads -t 3. surprisingly to me, the thread restriction to n-1, where n is the number of processors was giving a higher hash rate. Still what I noticed, using htop, is that the 3 threads get reasigned between the cores. Is there a way to specify, the 3 threads should always run on core 1-3 and keep 0 free? That way the cpu wouldn't have to switch the threads in and out and could just schedule the other workload of that machine on cpu 0.

Thanks