xmrig / xmrig-cuda

NVIDIA CUDA plugin for XMRig miner
GNU General Public License v3.0
372 stars 156 forks source link

Hash Rate - CPU hash is cut by what CUDA plugin is Adding #25

Closed cdndcminer closed 4 years ago

cdndcminer commented 4 years ago

xmrig 5.1.1 cuda plugin 2.1.1.

If i run xmrig i get 1500h/s, when i add the GPU by the cuda plugin(2.1.1) my CPU hash rate drops by what the NV(GPU) hash rate is able to produce.

Example if GPU produces 200h/s my CPU drops to 1300h/s.

bug?

Spudz76 commented 4 years ago

Run separate miners, one with CPU only, one with CPU disabled but GPUs enabled. Set affinity on GPU one so that it is never on cores the CPU mining is using (may be impossible unless you have over-cored and under-cached type of CPU).

The hash loss is more likely from wait states, to keep the two totally different backends in sync working on one single job. The CPU is not given more work until all backends complete the last work so you can only be as lucky as your least lucky device. There are none such waits if you run two xmrigs one on each "class" of device. Also RandomX sucks on GPU anyway so running separate lets you choose the best HashPerWatt of each device (and use MoneroOcean to payout whatever coins to XMR automatically).