Patrick

How-to Guide How to start mining Monero in Docker

Your guide to turning servers into mining powerhouses

  1. Patrick

    Patrick Administrator
    Staff Member

    Joined:
    Dec 21, 2010
    Messages:
    10,892
    Likes Received:
    3,828
    Patrick submitted a new resource:

    How to start mining Monero in Docker - Your guide to turning servers into mining powerhouses

    Read more about this resource...
     
    #1
    depend, Serhan and chilipepperz like this.
  2. wlmbasson

    wlmbasson New Member

    Joined:
    Dec 17, 2017
    Messages:
    2
    Likes Received:
    0
    Hi Patrick,

    I can't quite figure out how to properly configure NUMA on the monero_xmrig docker for a dual AMD EPYC 7401 24-Core Processor server. I followed the how-to guide for AMD EPYC and only used the ranges before the commas, but I end up with some dockers doing 160 or 16 H/s.

    I'm experimenting with different configs, but I was wondering do you know that the optimal for this server would be?

    I noticed that some of the NUMA nodes don't register any cache so I assume I should avoid running on those. If I run with 6 threads on the four nodes that do register cache I get about 380 H/s per docker. If I increase the threads two dockers drop below 200.

    I get better performance without configuring NUMA and just running numthreads=32 @1865.3 H/s. Doubling the thread count to 64 doesn't make a difference, in fact it makes it worse. According to Monero Mining Performance 1500 H/s should be possible on a single 7401. Any ideas?

    My docker commands:

    docker run -d -ti -e username=mywallet -e password=myemail -e numthreads=6 --cpuset-cpus="0-5" servethehome/monero_xmrig
    docker run -d -ti -e username=mywallet -e password=myemail -e numthreads=6 --cpuset-cpus="6-11" servethehome/monero_xmrig
    docker run -d -ti -e username=mywallet -e password=myemail -e numthreads=6 --cpuset-cpus="12-16" servethehome/monero_xmrig
    docker run -d -ti -e username=mywallet -e password=myemail -e numthreads=6 --cpuset-cpus="18-23" servethehome/monero_xmrig

    # numactl --hardware
    available: 8 nodes (0-7)
    node 0 cpus: 0 1 2 3 4 5 48 49 50 51 52 53
    node 0 size: 65453 MB
    node 0 free: 61554 MB
    node 1 cpus: 6 7 8 9 10 11 54 55 56 57 58 59
    node 1 size: 65536 MB
    node 1 free: 63671 MB
    node 2 cpus: 12 13 14 15 16 17 60 61 62 63 64 65
    node 2 size: 0 MB
    node 2 free: 0 MB
    node 3 cpus: 18 19 20 21 22 23 66 67 68 69 70 71
    node 3 size: 0 MB
    node 3 free: 0 MB
    node 4 cpus: 24 25 26 27 28 29 72 73 74 75 76 77
    node 4 size: 65536 MB
    node 4 free: 63220 MB
    node 5 cpus: 30 31 32 33 34 35 78 79 80 81 82 83
    node 5 size: 65520 MB
    node 5 free: 63994 MB
    node 6 cpus: 36 37 38 39 40 41 84 85 86 87 88 89
    node 6 size: 0 MB
    node 6 free: 0 MB
    node 7 cpus: 42 43 44 45 46 47 90 91 92 93 94 95
    node 7 size: 0 MB
    node 7 free: 0 MB
    node distances:
    node 0 1 2 3 4 5 6 7
    0: 10 16 16 16 32 32 32 32
    1: 16 10 16 16 32 32 32 32
    2: 16 16 10 16 32 32 32 32
    3: 16 16 16 10 32 32 32 32
    4: 32 32 32 32 10 16 16 16
    5: 32 32 32 32 16 10 16 16
    6: 32 32 32 32 16 16 10 16
    7: 32 32 32 32 16 16 16 10
     
    #2
  3. wlmbasson

    wlmbasson New Member

    Joined:
    Dec 17, 2017
    Messages:
    2
    Likes Received:
    0
    48 threads seems to be the sweet spot on a single docker @2624.9 H/s
     
    #3
  4. MiniKnight

    MiniKnight Well-Known Member

    Joined:
    Mar 30, 2012
    Messages:
    2,679
    Likes Received:
    745
    @wlmbasson did you do sysctl vm.nr_hugepages=128?
     
    #4
  5. eroji

    eroji Member

    Joined:
    Dec 1, 2015
    Messages:
    206
    Likes Received:
    16
    I got the wallet address and put it into the script but docker logs shows this?

    Code:
    [xmr-usa.dwarfpool.com:8100] error: "invalid address used for login", code: -1
    Took out the extra $hostname stuff in the example script for username and it's working.
     
    #5
    Last edited: Dec 22, 2017
  6. Patrick

    Patrick Administrator
    Staff Member

    Joined:
    Dec 21, 2010
    Messages:
    10,892
    Likes Received:
    3,828
    @eroji you are correct, it is not needed. Interesting. That script is the one I have been using.

    The hostname is just for automatically using the machine's host name so you can have worker IDs.

    BTW @wlmbasson if you have EPYC, you are better off mining Aeon and trading that for XMR.
     
    #6
  7. eroji

    eroji Member

    Joined:
    Dec 1, 2015
    Messages:
    206
    Likes Received:
    16
    Got it running then tried to calculate the cost vs rewards based on my hash rate and the proceeded to deleted the VMs lol.
     
    #7
  8. leebo_28

    leebo_28 New Member

    Joined:
    Apr 2, 2017
    Messages:
    17
    Likes Received:
    3
    Would someone be a little more clear on how this can be done? I want to use the Monero Docker image to mine a different coin.
     
    #8
  9. jfoor

    jfoor Member

    Joined:
    Feb 4, 2017
    Messages:
    68
    Likes Received:
    20
    Seems like the easiest way to mine Monero is to just docker pull some sketchy images from random users on the Docker hub. They'll start mining for you right away without you even knowing! ...just not to your wallet :)
     
    #9
Similar Threads: start mining
Forum Title Date
Guides Basic GPU Mining Guide Vid for Ethereum Jul 21, 2017

Share This Page