MoneroOcean / xmrig

Monero (rx/0, rx/wow, rx/loki, defyx, rx/arq, rx/sfx, rx/keva, cn/0, cn/1, cn/2, cn/r, cn/fast, cn/half, cn/xao, cn/rto, cn/rwz, cn/zls, cn/double, cn/gpu, cn-lite/0, cn-lite/1, cn-heavy/0, cn-heavy/tube, cn-heavy/xhv, cn-pico, cn-pico/tlo, argon2/chukwa, argon2/wrkz, astrobwt) CPU/GPU miner
https://moneroocean.stream
GNU General Public License v3.0
274 stars 84 forks source link

--cpu-priority not being honored? #62

Open Big-Daddio opened 3 years ago

Big-Daddio commented 3 years ago

Describe the bug cpu-priority not being honored on Windows 10 via command line - happening since 6.12 branch, 6.10 is OK

To Reproduce .\miners\XMRig_MO\6.12.2\xmrig.exe --asm=auto --donate-level=1 -t 0 --cpu-priority=0 -o stratum+tcp://gulf.moneroocean.stream:10008 -u xxx -p Lappy

Expected behavior Task manager priority should show as low when started with cpu priority 0, however it starts with normal priority every time

Required data

Additional context might be this issue https://github.com/xmrig/xmrig/issues/2351?_pjax=%23js-repo-pjax-container

Spudz76 commented 3 years ago

As a workaround, it does work properly when put into config.json... for now

Big-Daddio commented 2 years ago

Just case anyone else is looking, I ended up working around the problem by following the xmrig command line with this

wmic process where name="xmrig.exe" CALL setpriority "idle"

HTH

Spudz76 commented 2 years ago

Also --cpu-priority allegedly never works unless it's literally the last option on the command line (move it to the end).