Nicehashminer: Suggestion: Add xmrig for cpu mining

Created on 24 Aug 2017  路  16Comments  路  Source: nicehash/NiceHashMiner

Found quite solid cpu miner of XMR: https://github.com/xmrig/xmrig
They have released a new version with nicehash support a few days ago: https://github.com/xmrig/xmrig/releases/tag/v2.3.0

Dev fee is configurable @ https://github.com/xmrig/xmrig/blob/master/src/donate.h#L40

I have only tested it on my old i5-2320 sandy bridge CPU and compared with xmr-stuck-cpu with fairly the same configs - 3 threads and 75% cpu usage:
xmrig: 183 H/s
xmr-stuck-cpu: 171 H/s

UDP: I have also tested on another cpu - Intel Core i5-4570
xmrig: 221 H/s
xmr-stuck-cpu: 199 H/s

Also devs suggest to use msvc builds, but my benching has shown that there is no real difference in hash rates between msvc and gcc on my CPU.

Here is the config for example:

{
"algo": "cryptonight",
"av": 0,
"background": false,
"colors": true,
"cpu-affinity": null,
"cpu-priority": null,
"donate-level": 1,
"log-file": null,
"max-cpu-usage": 75,
"print-time": 60,
"retries": 5,
"retry-pause": 5,
"safe": false,
"syslog": false,
"threads": null,
"pools": [
{
"url": "cryptonight.eu.nicehash.com:3355",
"user": "wallet.worker",
"pass": "x",
"keepalive": false,
"nicehash": true
}
]
}

Most helpful comment

@quinnman2017 imo it is better to post such issues not related directly to NHML itself on https://github.com/xmrig/xmrig/issues

All 16 comments

Found quite solid cpu miner of XMR

Looks interesting indeed. I also had a look at the Nvidia GPU XMR miner by same developer but it seems to be a bit slower than tpruvot ccminer for Maxell/Pascal, or I can't get the blocks/threads right for my cards for optimum performance. Have you looked into it?

This one really seems giving up to 10% better hashrate, tested on 5+ machines, i3-i7

Tested 2 days on dual xeon e5-2687w. Seems good miner. 75% load = 820h/s

Thanks for posting, I will look into this

@DillonN Just wondering. Why wasn't this added to 1.8.1.2?

Can we just mine with it pointed at nicehash's servers and it throws in with our software in the nicehash package?
I found some comment from the monero pool here regarding nicehash:
https://minemonero.pro/en/#!/help/getting_started, but you need a monero wallet, which I wanted to avoid, instead piggybacking my mining power into my nicehash interface.

I tried xmrig and my hashrate went from about 240 to about 270.
So, it is superior to what nicehash presently has, from what I've seen.
But, the can't-rid-of-it-5% donation built in erases quite a bit of that. I tried setting it to zero in the config file, but nope, it was right back to 5% when I ran it.

@dinicthis Just edit the config.json to connect to a cryptonight nicehash pool (along with your nicehash wallet). As for the donation level, the lowest you can go is 1%. If you set it to 0% then it'll automatically change that to 5%, unless you build it yourself then you can set the donation level to 0

I did that, Nich.
It is working fine at about 200H/s, evidently?. Not really sure how great that is, profit-wise, but it's just a non-Ryzen CPU, after all.
image

I am using an intel i5-5200U but I am only getting around 39H/s I live on the east coast of the united states and I am using the pool usxmrpool.com which is based in the west coast US could this be the reason for such low hash rate?

@quinnman2017 the network traffic shouldn't be an issue, either that's just the hashrate you'll get with that CPU or there's a bunch of L3 cache misses. That model only has 3MB of L3 cache so you may only be able to run 1 or 2 processes. My single core performance is about 40 H/s. Maybe try messing around with the --cpu-affinity or --av flags?

I pointed xmrig at stratum+tcp://cryptonight.usa.nicehash.com:3355 and it appears to accept my shares, both on the client and on the web interface.

[2017-09-27 23:07:52] accepted (2/0) diff 80000 (69 ms)
[2017-09-27 23:08:17] speed 2.5s/60s/15m 254.5 257.2 n/a H/s max: 261.3 H/s
[2017-09-27 23:08:42] new job from cryptonight.usa.nicehash.com:3355 diff 80000

By the way, I'm running Linux with an AMD FX-6300 (no overclock) and with the following settings I'm getting about 250 H/s.
xmrig --algo=cryptonight --url=stratum+tcp://cryptonight.usa.nicehash.com:3355 --userpass=[wallet]:x

@quinnman2017 imo it is better to post such issues not related directly to NHML itself on https://github.com/xmrig/xmrig/issues

Btw it is suggested to use "keepalive": false, with nicehash.com: https://github.com/xmrig/xmrig/issues/97

I've updated example config in the 1st post

xmr in nicehash seems to be behaving okay but not getting 270 tgat's for sure.

I think I can close this issue as xmrig support added since 1.8.1.4 version.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AtlAntA118 picture AtlAntA118  路  3Comments

tham2539 picture tham2539  路  4Comments

Kayfolom picture Kayfolom  路  3Comments

mandeep148 picture mandeep148  路  4Comments

Kayfolom picture Kayfolom  路  3Comments