[Available Plugin] XMRig - Monero (XMR) and AEON Cryptocurrency Miner

enemy85

Guru
Joined
Jun 10, 2011
Messages
757
i put that in the freenas settings. on the website i used my email, then after my first login i changed the password to something else

It worked!

as for your cpu usage, if you enabled "safe" even if you specify 4 threads xmrig may lower it to what it thinks is optimal for the processor.

i think for an i3 i would put '0x5' for affinity as you did, and just try 2 threads. i3's only have 3MB cache so i think more threads won't help.

Disabling "safe" and with 2 threads now I get 50% usage, but almost the same hash rate, so I guess it hits the 3MB cache limit

Thanks again


Inviato dal mio LG-D855 utilizzando Tapatalk
 

IceBoosteR

Guru
Joined
Sep 27, 2016
Messages
503
Hi,
wow this is a great plugin!
Thank you for your work. I see this is a good way to get the money back for having a server running, and use unused CPU cycles^^
But this is forced to run as a jail, and jails are not that safe as normal VMs and I normally have my server not connected to the internet. So because of this security reasons I am still not using it :(
I don't want to let someone from outside have access to my private data - and my server has a lot of them like photos and documents....
But you make me interested in mining :D
 

Alix

Dabbler
Joined
Feb 13, 2017
Messages
19
I noticed that the cpu affinity still does not seem to be working. Although I set the plugin to 0x1, when I run htop, I see the processing power jumping all over the place while xmrig sits at a solid 100% for the 1 thread I'm running.
 

ezra

Contributor
Joined
Jan 15, 2015
Messages
124
Hey great Plugin thanks. For nicehash, is there any API key needed in the latest version of the Plugin?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hey great Plugin thanks. For nicehash, is there any API key needed in the latest version of the Plugin?
i havent tried nicehash myself but i believe you generate a stratum (like stratum+tcp://cryptonight.usa.nicehash.com:3355) for th URL, bitcoin address for username, "x" for password
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I noticed that the cpu affinity still does not seem to be working. Although I set the plugin to 0x1, when I run htop, I see the processing power jumping all over the place while xmrig sits at a solid 100% for the 1 thread I'm running.
0x1 is working as expected when i just tested it with an i7. you can stop the plugin, and run "xmrig -c /usr/pbi/xmrig-amd64/etc/xmrig/config.json" to confirm that xmrig is using thw affinity you set.
 

Alix

Dabbler
Joined
Feb 13, 2017
Messages
19
I was able to verify that it is showing the correct set affinity, it just doesn't seem to be doing anything. At least when I use htop to see cpu usage, it's jumping around like crazy.
upload_2018-2-8_17-1-50.png
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I was able to verify that it is showing the correct set affinity, it just doesn't seem to be doing anything. At least when I use htop to see cpu usage, it's jumping around like crazy.
View attachment 22742
weird
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
i havent tried nicehash myself but i believe you generate a stratum (like stratum+tcp://cryptonight.usa.nicehash.com:3355) for th URL, bitcoin address for username, "x" for password
That is correct.
 

ezra

Contributor
Joined
Jan 15, 2015
Messages
124
That is correct.
And can i monitor it at hashvault the same way?

I have a Ryzen 1700x, how can i select all 8 cores the physical ones? 0x5555 and threads to 8?
I'd like to run it at 90% and use all system resources at idle time so when another proc needs cpu it gets it right away.

Could anyone help me setup nicehash?
 
Last edited:

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977

ezra

Contributor
Joined
Jan 15, 2015
Messages
124
If you're setting it up to mine for nicehash it will show up on nicehash.

@Joshua Parker Ruehlig post above gives all the settings you need.
Yeah must have done something wrong then. Can't get it to work.

Anyway will investigate and try out.

But does anyone know what to set the affinity to? i want to use all 8 cores of the ryzen cpu.

edit: nicehash failed when using the SSL link with the App. Using the regular link works. What security issues are there using the regular tcp link?
 
Last edited:

svtkobra7

Patron
Joined
Jan 12, 2017
Messages
202
This is quite cool. I've never tried mining before and was up and running in minutes. Thanks @Joshua Parker Ruehlig :)

I find the concept of being able to power your 24/7 server using spare compute capacity quite intriguing and indeed that seems to be the case:
  • Baseline energy consumption: 306.5 Wh (UPS reported average energy consumption, 2/4 - 2/10)
  • Current energy consumption (with below settings): 459 Watts (UPS reported load, current)
  • Profit! LOL @ 600 H/s | 160 w (incremental load) | $0.11 Cost per kWh | 1% pool fee
Further to the affinity questions, which seems to be an open item at the moment, how does running FreeNAS on ESXi play into this?
  • Server: 2 E5-2680 v2s
  • Prior FN VM configuration: 8 CPU cores (1 socket x 8 cores per socket)
  • I was seeing abysmal hash rates so I changed the CPU allocation ...
  • Updated FN VM config: 30 CPU cores (2 sockets x 15 cores)
  • Which resulted in stronger hash rates
  • But 2x E5-2680 v2s should be capable of 1200 h/s ...
  • So back of the envelope calculations would suggest a "theoretical" maximum of 900 h/s (30/40 cores = 75% x 1200 h/s) whereas the highest reported by the API is 668, or 74%, so it seems my settings may be leaving some XMR on the table ;)
  • API settings: Threads = null | CPU Affinity = null | Max CPU Usage = 90% / Process Priority = 2 - Normal
Any thoughts on how to further optimize this in my scenario? (or thoughts generally if I'm looking at this the wrong way) Thanks in advance.

Plug in settings
XMRig_plugin.jpg
API
XMRig_API.jpg
 
Last edited:

JJT211

Patron
Joined
Jul 4, 2014
Messages
323
OK, for some reason I cannot get the plugin to work on my system. So I'd like to go the jail route. I tried this
https://github.com/xmrig/xmrig/wiki/FreeBSD-Build

I think Ive got it, just need to know what to address to type in. They dont give much info on that.

Has anyone installed this in a jail?
 

svtkobra7

Patron
Joined
Jan 12, 2017
Messages
202
I think I've got it, just need to know what to address to type in. They don't give much info on that.

As shown in the example (no snarkyness as it can be changed), if you mean the URL of Mining Pool:

pool.monero.hashvault.pro:5555
pool.minemonero.pro:5555
 

JJT211

Patron
Joined
Jul 4, 2014
Messages
323
Tried them both and all I'm getting is a big white screen with a "mining pool on" message at the top left of screen
 

Kuro Houou

Contributor
Joined
Jun 17, 2014
Messages
193
This is quite cool. I've never tried mining before and was up and running in minutes. Thanks @Joshua Parker Ruehlig :)
  • But 2x E5-2680 v2s should be capable of 1200 h/s ...
  • So back of the envelope calculations would suggest a "theoretical" maximum of 900 h/s (30/40 cores = 75% x 1200 h/s) whereas the highest reported by the API is 668, or 74%, so it seems my settings may be leaving some XMR on the table ;)
I actually have the same server setup as you, same processors anyways. I am hitting about ~720 h/s. Max CPU Use set to 100% but only seeing about 60% utilized total, with normal background noise that means the miner is probably only using about 55% of my total compute power. Does this have something to do with it being in a jail maybe?
 

svtkobra7

Patron
Joined
Jan 12, 2017
Messages
202
I am hitting about ~720 h/s. Max CPU Use set to 100% but only seeing about 60% utilized total
  • Interesting, that is a delta of ~79-90 h/s in your favor.
My CPU was pegged @ 100% in FreeNAS and ESXi.
Does this have something to do with it being in a jail maybe?
  • I think the variance may be accounted for by virtue of the fact that I had 3-4 VMs accessing the system's resources.
  • I spun them all down and got around ~700 H/s.
  • Regarding your question, are you using XMRig in a manner other than a plugin jail?
For fun, I spun up an Ubuntu VM, installed xmrig, and spun down everything else (except for pfSense):
  • Max reported = 1143 H/s
  • 15 min average = 1058 H/s
I don't think I will let that server quit its day job. ;)

Ubuntu_xmrig.jpg
 

glauco

Guru
Joined
Jan 30, 2017
Messages
526
Thanks to this plugin video tutorial I've begun mining Aeons with my almighty Intel Pentium G4560 CPU and getting a hash rate of around 200 H/s.
Since I'm very new to mining, I'm wondering... How do I access the Aeon wallet I've generated using the HashVault offline wallet generator?
Thank you all.
 
Top