[Support] lnxd - XMRig


89 posts in this topic Last Reply

Recommended Posts

24 minutes ago, MorphiousGX said:

@miker905 No sadly it didn't. So I am not sure if I had it setup right or not. So if you manage to get it to work, let me know what was your final setup. Thanks in advance. 

Not around the house tonight to check, but are you running this on another machine as well?  Did you assign different tag/ID/workerName?  I don't think they can be the same (not 100% sure but i use different ones for each machine).

Link to post
  • Replies 88
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Overview: Support thread for lnxd/XMRig in CA. Application: XMRig - https://github.com/xmrig/xmrig Docker Hub: https://hub.docker.com/r/lnxd/xmrig GitHub: https://github.com/lnxd/docker

Hey @horphi, this is quite difficult to set up but possible. Ravencoin uses the kawpow algorithm which is a GPU algorithm. To use XMRig you will need to go on the latest-root tag and re-install it fro

Thanks for the heads up @Squid! A very good call to do this after the recent wave of compromised servers with XMRig running. I'll update OP.    And @jonathanm that recommendation made me l

Posted Images

Big thanks to those who helped out in my absence (@creativity404). I went on holiday and was expecting to have a connection to the internet, but I didn't. @Creativity404 Are you still having trouble yourself, or did you get to the bottom of it?
 

20 hours ago, guillelopez said:

It's there any posibility to put the data folder for xmrig on appdata or other side outside the docker virtual image?

Because yesterday I tried to use the latest-root tag to use my shared GPU with the container and after a really long download process it started to report that I was filling up the virtual image.

 

Sadly the XMRig data folder is tiny, if you don't want to increase your docker image size, what I can do is install the drivers and use a utility like ncdu to find what locations are suitable to create volumes for. What driver version are you trying to use? Nvidia right?

 

20 hours ago, guillelopez said:

And does the latest-root tag install ubuntu on the container or something similar?

It took like 10gb to install, and after that I had something not right on the configuration so it showed CUDA disabled, then I tried to reconfigure and start the docker again, and it had deleted all the downloaded things.

 

Does it have to redownload everything each time you stop-start the docker? I thought it was only when you have to update the container.


The container is already based on Ubuntu, but the CUDA installation is HUGE which is why I've made it optional. To put it into perspective, the XMRig developers opted to leave out CUDA support in the main release because it the library is like 30mb when built, the 10gb or so you're seeing is quite accurate. I still need to go through and see if there's anything I can strip out of it.

It shouldn't redownload every time it restarts no, but it will restart if the docker container is pruned.
 

On 4/29/2021 at 4:38 PM, MorphiousGX said:

@miker905How did you get it to work? I pretty much did the same thing as you did, however I can see in the log things are running well, and I see my hash rates. But after 1 hour, still nothing showing up in my results page

 

Can you please share a screenshot of your config and also your logs, I'm happy to take a look too.

Link to post

Thanks for the info :), Definitely move the big installation part to other volumes would be a big improve to this docker. But don't do it just for me as I am just playing with mining to learn about it. So don't put it as high priority or something 🤣.

 

5 hours ago, lnxd said:

What driver version are you trying to use? Nvidia right?

 

I was using at that moment v465.24.02 on a 1050 ti. I would get back a 1060 6gb that I lend to a familiar and try to use it also.

I also have a rx 580 to test but is on my personal rig as I use it over hackintosh.

 

Anyway thanks for your work!

Link to post
8 hours ago, guillelopez said:

Thanks for the info :), Definitely move the big installation part to other volumes would be a big improve to this docker. But don't do it just for me as I am just playing with mining to learn about it. So don't put it as high priority or something 🤣.

 

 

I was using at that moment v465.24.02 on a 1050 ti. I would get back a 1060 6gb that I lend to a familiar and try to use it also.

I also have a rx 580 to test but is on my personal rig as I use it over hackintosh.

 

Anyway thanks for your work!

No worries! I had a look into the reinstalling every time by the way, looks like with the CUDA driver it does so I'll patch that. I think setting a volume on the host to install to will require multiple volumes, I could get around this using symbolic links but it's a little hacky so I'll think about it for a while before implementing it. I'll @guillelopez you when I've worked out a way to do it and implemented it :) 

Link to post

At this time, just using the cpu with your docker is pretty sweet for me, so don't worry. I don't have a beefy server, just an i7 3770 with 16gb ram and a 1050ti at the moment so... for just playing it's far ok. I'm testing right know the Trex-miner with the 1050ti to use the unmineable etchash pool and seems to work perfect. About 12.68 MH/s. At the same time I have your docker running on the RandomX pool.

 

And as gpu use with xmrig miner don't seems to be great, may be it's a waste of time trying to implement the symbolic links solution.

But if you achieve it, I will love to try it 😁

 

Thanks!

Link to post
Posted (edited)
On 4/30/2021 at 4:03 AM, lnxd said:

Can you please share a screenshot of your config and also your logs, I'm happy to take a look too.

@lnxd Thank you for your help and this as well.  

Here is my log for the last few minutes

 

Project: xmrig
Author: lnxd
Base: Ubuntu 20.04
Target: Unraid
Donation: no-fee 0%

Running xmrig with the following flags:
--url=rx.unmineable.com:3333 --coin=x --user=DOGE:xxxxxxxxxxxxxxxxx.optimusprime --randomx-wrmsr=-1 --randomx-no-rdmsr --no-color --asm ryzen -a rx -k
* ABOUT XMRig/6.10.0 gcc/9.3.0
* LIBS libuv/1.34.2 OpenSSL/1.1.1f hwloc/2.1.0
* HUGE PAGES supported
* 1GB PAGES disabled
* CPU AMD Ryzen 9 5950X 16-Core Processor (1) 64-bit AES
L2:8.0 MB L3:64.0 MB 16C/32T NUMA:1
* MEMORY 55.1/62.8 GB (88%)
* DONATE 0%
* ASSEMBLY ryzen
* POOL #1 rx.unmineable.com:3333 algo rx/0
* COMMANDS 'h' hashrate, 'p' pause, 'r' resume, 's' results, 'c' connection
* OPENCL disabled
* CUDA disabled
[2021-05-03 23:24:41.942] net use pool rx.unmineable.com:3333 139.59.164.251
[2021-05-03 23:24:41.942] net new job from rx.unmineable.com:3333 diff 100001 algo rx/0 height 2353264
[2021-05-03 23:24:41.942] cpu use argon2 implementation AVX2
[2021-05-03 23:24:41.943] msr msr kernel module is not available
[2021-05-03 23:24:41.943] msr FAILED TO APPLY MSR MOD, HASHRATE WILL BE LOW
[2021-05-03 23:24:41.943] randomx init dataset algo rx/0 (32 threads) seed 122a074fb0e4d179...
[2021-05-03 23:24:41.943] randomx allocated 2336 MB (2080+256) huge pages 0% 0/1168 +JIT (0 ms)
[2021-05-03 23:24:44.193] randomx dataset ready (2249 ms)
[2021-05-03 23:24:44.193] cpu use profile rx (32 threads) scratchpad 2048 KB
[2021-05-03 23:24:44.259] cpu READY threads 32/32 (32) huge pages 0% 0/32 memory 65536 KB (66 ms)
[2021-05-03 23:25:44.240] miner speed 10s/60s/15m 3500.8 n/a n/a H/s max 3939.7 H/s
[2021-05-03 23:26:02.715] net no active pools, stop mining
[2021-05-03 23:26:33.965] net use pool rx.unmineable.com:3333 139.59.164.251
[2021-05-03 23:26:33.965] net new job from rx.unmineable.com:3333 diff 100001 algo rx/0 height 2353265
[2021-05-03 23:26:44.275] miner speed 10s/60s/15m 3725.4 1770.0 n/a H/s max 3939.7 H/s
[2021-05-03 23:27:16.761] net no active pools, stop mining
[2021-05-03 23:27:22.023] net use pool rx.unmineable.com:3333 139.59.164.251
[2021-05-03 23:27:22.023] net new job from rx.unmineable.com:3333 diff 100001 algo rx/0 height 2353265
[2021-05-03 23:27:44.288] miner speed 10s/60s/15m 3963.2 3606.3 n/a H/s max 4522.3 H/s
[2021-05-03 23:27:44.288] miner speed 10s/60s/15m 3963.2 3606.3 n/a H/s max 4522.3 H/s
[2021-05-03 23:27:54.144] net new job from rx.unmineable.com:3333 diff 100001 algo rx/0 height 2353265
[2021-05-03 23:27:59.770] net new job from rx.unmineable.com:3333 diff 100001 algo rx/0 height 2353266
[2021-05-03 23:28:24.265] net new job from rx.unmineable.com:3333 diff 100001 algo rx/0 height 2353266
[2021-05-03 23:28:24.265] net new job from rx.unmineable.com:3333 diff 100001 algo rx/0 height 2353266
[2021-05-03 23:28:44.345] miner speed 10s/60s/15m 3877.6 4018.3 n/a H/s max 4613.6 H/s
[2021-05-03 23:28:44.345] miner speed 10s/60s/15m 3877.6 4018.3 n/a H/s max 4613.6 H/s
[2021-05-03 23:28:52.797] net no active pools, stop mining
[2021-05-03 23:28:52.797] net no active pools, stop mining
[2021-05-03 23:28:59.050] net use pool rx.unmineable.com:3333 139.59.164.251
[2021-05-03 23:28:59.050] net new job from rx.unmineable.com:3333 diff 100001 algo rx/0 height 2353266
[2021-05-03 23:28:59.050] net use pool rx.unmineable.com:3333 139.59.164.251
[2021-05-03 23:28:59.050] net new job from rx.unmineable.com:3333 diff 100001 algo rx/0 height 2353266
[2021-05-03 23:29:09.370] net new job from rx.unmineable.com:3333 diff 100001 algo rx/0 height 2353266
[2021-05-03 23:29:09.370] net new job from rx.unmineable.com:3333 diff 100001 algo rx/0 height 2353266
[2021-05-03 23:29:24.310] net new job from rx.unmineable.com:3333 diff 100001 algo rx/0 height 2353266
[2021-05-03 23:29:32.984] net new job from rx.unmineable.com:3333 diff 100001 algo rx/0 height 2353267
[2021-05-03 23:29:44.371] miner speed 10s/60s/15m 4213.8 3605.1 n/a H/s max 4613.6 H/s
[2021-05-03 23:30:39.490] net new job from rx.unmineable.com:3333 diff 100001 algo rx/0 height 2353267
[2021-05-03 23:30:44.390] miner speed 10s/60s/15m 3990.3 3963.3 n/a H/s max 4613.6 H/s
[2021-05-03 23:30:54.376] net new job from rx.unmineable.com:3333 diff 100001 algo rx/0 height 2353267
[2021-05-03 23:31:44.492] miner speed 10s/60s/15m 3896.9 4023.7 n/a H/s max 4613.6 H/s
[2021-05-03 23:31:46.939] net no active pools, stop mining
[2021-05-03 23:31:52.233] net use pool rx.unmineable.com:3333 139.59.164.251
[2021-05-03 23:31:52.233] net new job from rx.unmineable.com:3333 diff 100001 algo rx/0 height 2353267
[2021-05-03 23:31:52.233] net use pool rx.unmineable.com:3333 139.59.164.251
[2021-05-03 23:31:52.233] net new job from rx.unmineable.com:3333 diff 100001 algo rx/0 height 2353267
[2021-05-03 23:32:05.317] net new job from rx.unmineable.com:3333 diff 100001 algo rx/0 height 2353267
[2021-05-03 23:32:44.557] miner speed 10s/60s/15m 3954.4 3655.0 n/a H/s max 4613.6 H/s
[2021-05-03 23:33:39.961] net new job from rx.unmineable.com:3333 diff 100001 algo rx/0 height 2353267
[2021-05-03 23:33:44.584] miner speed 10s/60s/15m 3932.6 3962.5 n/a H/s max 4613.6 H/s
[2021-05-03 23:33:44.584] miner speed 10s/60s/15m 3932.6 3962.5 n/a H/s max 4613.6 H/s
[2021-05-03 23:34:44.608] miner speed 10s/60s/15m 3863.5 4012.9 n/a H/s max 4613.6 H/s
[2021-05-03 23:35:01.008] net no active pools, stop mining
[2021-05-03 23:35:33.245] net use pool rx.unmineable.com:3333 139.59.164.251
[2021-05-03 23:35:33.245] net new job from rx.unmineable.com:3333 diff 100001 algo rx/0 height 2353267
[2021-05-03 23:35:33.245] net use pool rx.unmineable.com:3333 139.59.164.251
[2021-05-03 23:35:33.245] net new job from rx.unmineable.com:3333 diff 100001 algo rx/0 height 2353267
[2021-05-03 23:35:44.640] miner speed 10s/60s/15m 4143.1 1911.5 n/a H/s max 4613.6 H/s
[2021-05-03 23:36:06.057] net no active pools, stop mining
[2021-05-03 23:36:06.057] net no active pools, stop mining
[2021-05-03 23:36:11.313] net use pool rx.unmineable.com:3333 139.59.164.251
[2021-05-03 23:36:11.313] net new job from rx.unmineable.com:3333 diff 100001 algo rx/0 height 2353267
[2021-05-03 23:36:44.642] miner speed 10s/60s/15m 4163.2 3558.4 n/a H/s max 4613.6 H/s
[2021-05-03 23:37:44.655] miner speed 10s/60s/15m 3893.3 4023.0 n/a H/s max 4613.6 H/s
[2021-05-03 23:38:33.205] net no active pools, stop mining
[2021-05-03 23:38:38.441] net use pool rx.unmineable.com:3333 139.59.164.251
[2021-05-03 23:38:38.441] net new job from rx.unmineable.com:3333 diff 100001 algo rx/0 height 2353268
[2021-05-03 23:38:44.712] miner speed 10s/60s/15m 2686.1 3659.9 n/a H/s max 4613.6 H/s
[2021-05-03 23:39:44.774] miner speed 10s/60s/15m 4080.7 4055.4 3570.0 H/s max 4613.6 H/s
[2021-05-03 23:39:44.774] miner speed 10s/60s/15m 4080.7 4055.4 3570.0 H/s max 4613.6 H/s
[2021-05-03 23:40:00.233] net no active pools, stop mining
[2021-05-03 23:40:32.466] net use pool rx.unmineable.com:3333 139.59.164.251
[2021-05-03 23:40:32.466] net new job from rx.unmineable.com:3333 diff 100001 algo rx/0 height 2353268
[2021-05-03 23:40:44.821] miner speed 10s/60s/15m 3853.0 1800.7 3446.4 H/s max 4613.6 H/s
[2021-05-03 23:40:59.244] net no active pools, stop mining
[2021-05-03 23:41:31.484] net use pool rx.unmineable.com:3333 139.59.164.251
[2021-05-03 23:41:31.484] net new job from rx.unmineable.com:3333 diff 100001 algo rx/0 height 2353268

 

and here is my setup. This is the only way I can get it to work, since you configured the "user" field, I have to put DOGE in front of the Wallet. Unmineable uses the following syntax 

xmrig.exe -o rx.unmineable.com:3333 -a rx -k -u DOGE:YourAddress.YourWorkerName

 

I would have put the -u DOGE:YourAddress.YourWorkerName in the additional arguments field, but I don't think that would work. Your thought and help would be appreciated

 

image.png

Edited by MorphiousGX
Link to post
  • 2 weeks later...
Posted (edited)

Is there a way to run the Docker container or the binary therin with LOW priority? Thanks for your support!

 

Edit: okay, I found this - add --cpu-priority 0 to the Additional XMRig Arguments of the Docker and it runs on Idle Priority.

Edited by Raki72
Solution found
Link to post

Hey thanks for this awesome app!

 

I'm having an odd problem, I feel like I'm missing something obvious; hopefully you can help!

 

I have a brand new Ryzen 5800X and I'm only getting a hash rate of bout 800 H/s.  My MacBook Air hashes faster than that!  Benchmarks from around the web report I should be seeing something like 6,000 H/s.  I seem to be missing 80% - 90% of my performance somewhere....  

 

I have tried

- Running the Docker container with privileges.

- Adding `--randomx-1gb-pages` to the command list. (and getting error: randomx failed to allocate RandomX dataset using 1GB pages)"

- Running the "optimiseCPUForXMRig.sh" file on my server via user scripts.

 

All this effort got me from 400 H/s to 800 H/s so it's some improvement... but I'm still missing somewhere near 5,000 H/s!

 

I have 64 GB of ram via 4 16GB sticks, I've tried playing around with ram timings but it hasn't helped.  I also get the sense that RAM timings shouldn't give me 10x increase in performance, so probably not barking up the right tree.

 

 

Link to post
Posted (edited)
On 5/17/2021 at 7:15 PM, only_cliches said:

Hey thanks for this awesome app!

 

I'm having an odd problem, I feel like I'm missing something obvious; hopefully you can help!

No worries! Sorry I'm a little slow at support, bit of a poor work/life balance at the moment leaving me with insufficient free time to help out.

 

Can you please share the output from running the user script for me? Also if you don't mind sharing your diagnostics.zip after the container has been running for about 5 minutes that'd be appreciated. 

 

@MorphiousGX are you still having this issue? I tried testing this out but wasn't able to replicate it.

 

@guillelopez I just updated the container, the installation should be significantly faster than before. If you or anyone else have any issues after the update please let me know 😅

Edited by lnxd
Link to post
On 5/23/2021 at 1:36 AM, lnxd said:

@guillelopez I just updated the container, the installation should be significantly faster than before. If you or anyone else have any issues after the update please let me know 😅

 

Thanks! Would give it a try on Wednesday as I would have some free time :)

Link to post

Hello,

How do I get past the installation error? See image.

Apparently there's no space left on device,...but that's a bit odd:

My docker space has 5.4GB free

Cache and disks have >1TB space free.

Thx

 

error.jpg

Link to post

You should post your diagnostics.  That doesn't appear to be anything to do with the app itself (and to verify you probably can't install anything else either)

Link to post
  • 2 weeks later...
On 4/2/2021 at 7:50 AM, lnxd said:

Overview: Support thread for lnxd/XMRig in CA.

Application: XMRig - https://github.com/xmrig/xmrig

Docker Hub: https://hub.docker.com/r/lnxd/xmrig

GitHub: https://github.com/lnxd/docker-xmrig

 

Please ensure that you know what you're doing before setting this up, as excessively high temperatures are BAD for computers and could damage your hardware / eventuate in data loss.

 

Instructions:

  1. Install lnxd's XMRig via CA.
  2. Add in your XMR receive address to the wallet field.
  3. Update the pool address to your closest node or preferred pool. Don't forget to pay attention to the port if you change pools, as they tend to use arbitrary ports.
  4. Set the --donate-level you would like to enable. Eg. entering a 1 causes XMRig to mine for 99 minutes for you, and then 1 minute for the fee option chosen in the next step. Setting the --donate-level flag to 0 will not work unless you follow the steps below.
  5. There are 3 fee options enabled by a custom build from my fork of the latest release source. This allows for some options that aren't available in the base version:
    no-fee: Makes it possible to set the --donate-level flag to 0%. Unless you set it to 0%, the fee goes to the developer of XMRig.
    dev-fee: The fee goes to the developer of XMRig.
    lnxd-fee: The fee goes to me 🙃 Thank you in advance if you choose this option.

  6. Turn on advanced mode for the template and select CPU core / thread pairs that you would like to use in CPU pinning. I recommend leaving core 1 and its thread pair unselected, as it could possibly cause Unraid to unexpectedly slow down / the Docker engine to quit if things get too intense while mining.
    670055416_ScreenShot2021-04-02at8_45_23am.png.87bc01e297840fadd32bdf36489369eb.png
  7. Run the container and check the temperature of your CPU and other hardware regularly for at least 20-30 minutes to ensure everything is safe and stable. If you get any errors that you can't decipher, feel free reach out and I'll take a look for you.
  8. (Optional) To increase your hash rate, you can add and run the following User Script. At the moment, in order to reset your MSR values to default you need to restart your Unraid host. For this reason, it needs to be re-run after every boot as the updated values do not survive reboots. The script installs msr-tools and then updates the registry values to optimise your CPU for XMRig. This may have performance implications for other functions on your server. The logs will also show that XMRig is being run with MSR MOD disabled, but if you run this script it serves the same purpose and you should get a higher hash rate.
    
    #!/bin/bash
    
    # Write XMRig Optimised MSR values
    # https://github.com/xmrig/xmrig/blob/master/scripts/randomx_boost.sh
    
    VERSION=1.3
    
    echo "Installing msr-tools v${VERSION}"
    echo ""
    echo "(don't!) blame lnxd if something goes wrong"
    echo ""
    curl -fsSL https://packages.slackonly.com/pub/packages/14.2-x86_64/system/msr-tools/msr-tools-${VERSION}-x86_64-1_slonly.txz -o /tmp/msr-tools-${VERSION}-x86_64-1_slonly.txz
    upgradepkg --install-new /tmp/msr-tools-${VERSION}-x86_64-1_slonly.txz
    rm /tmp/msr-tools-${VERSION}-x86_64-1_slonly.txz
    
    echo ""
    echo "Optimising register values for XMRig"
    echo ""
    modprobe msr
    
    if cat /proc/cpuinfo | grep "AMD Ryzen" >/dev/null; then
    	if cat /proc/cpuinfo | grep "cpu family[[:space:]]:[[:space:]]25" >/dev/null; then
    		echo "Detected Ryzen (Zen3)"
    		wrmsr -a 0xc0011020 0x4480000000000
    		wrmsr -a 0xc0011021 0x1c000200000040
    		wrmsr -a 0xc0011022 0xc000000401500000
    		wrmsr -a 0xc001102b 0x2000cc14
    		echo "MSR register values for Ryzen (Zen3) applied"
    	else
    		echo "Detected Ryzen (Zen1/Zen2)"
    		wrmsr -a 0xc0011020 0
    		wrmsr -a 0xc0011021 0x40
    		wrmsr -a 0xc0011022 0x1510000
    		wrmsr -a 0xc001102b 0x2000cc16
    		echo "MSR register values for Ryzen (Zen1/Zen2) applied"
    	fi
    elif cat /proc/cpuinfo | grep "Intel" >/dev/null; then
    	echo "Detected Intel"
    	wrmsr -a 0x1a4 0xf
    	echo "MSR register values for Intel applied"
    else
    	echo "No supported CPU detected"
    fi
    echo ""
    echo "Done!"
    echo "To reset values, please reboot your server."

     


If you get stuck, please feel free to reply to this thread and I'll do my best to help out 🙂

do you run this script int he console of the docker of use user script in unraid it self?

 

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.