1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Monero GPU mining in Docker with nvidia-docker

Discussion in 'Cryptocurrency Mining and Markets' started by Patrick, Jan 22, 2017.

  1. reedog117

    reedog117 New Member

    Joined:
    May 24, 2017
    Messages:
    2
    Likes Received:
    0
    That's not a problem - I just wish I could see the actual Dockerfile and how the images are put together as they aren't really showing up in the Docker Hub.
     
    #21
  2. JazzFaucet

    JazzFaucet New Member

    Joined:
    May 19, 2017
    Messages:
    29
    Likes Received:
    4
    Is it usual practice to run a Docker container (for CPU mining) and an NVIDIA-Docker container (for GPU mining) on the same physical machine? Is this a case where the two miners together result in a greater total hash rate than running the CPU or GPU miner separately - even though the hash rate from each is slightly less than if it was run alone?
     
    #22
  3. MiniKnight

    MiniKnight Well-Known Member

    Joined:
    Mar 30, 2012
    Messages:
    2,473
    Likes Received:
    663
    The most common way to mine is with Windows. If you're using Linux, Docker works. There's usually a different Linux miner for GPU and CPU so you're running multiple miners Docker provides some isolation and ease of mgmt. Nvidia-docker is just docker with the CUDA libraries injected.
     
    #23
  4. PHOOK

    PHOOK New Member

    Joined:
    Jul 16, 2017
    Messages:
    3
    Likes Received:
    1
    Hello

    I have a GPU ASUS GTX1060, and I mine ETC for a couple of weeks without problem.
    I would like to use your image (servethehome/monero_gpu_nv_minergate) to mine MONERO, launching the container like that:

    NV_GPU=0 ; sudo nvidia-docker run -d -e username=xxxxxx@yyyyy.com --name GPU0_monero servethehome/monero_gpu_nv_minergate ; sudo docker logs GPU0_monero -f

    ####In the logs, after this compilation line
    gcc -std=gnu99 -g -O2 -pthread -L/usr/local/cuda/lib64 -o ccminer ccminer-cpu-miner.o ccminer-util.o ccminer-sha2.o cryptonight/cryptonight.o cryptonight/cuda_cryptonight_core.o cryptonight/cuda_cryptonight_extra.o ccminer-cryptonight.o crypto/ccminer-oaes_lib.o crypto/ccminer-c_keccak.o crypto/ccminer-c_groestl.o crypto/ccminer-c_blake256.o crypto/ccminer-c_jh.o crypto/ccminer-c_skein.o crypto/ccminer-aesb.o -L/usr/lib/x86_64-linux-gnu -lcurl -ljansson -lpthread -lcudart -static-libstdc++ -fopenmp -lcrypto -lssl -lcrypto -lssl
    #### the make exists...
    make[2]: Leaving directory `/ccminer-cryptonight-0.17'
    make[1]: Leaving directory `/ccminer-cryptonight-0.17'
    #### and I get this error
    [2017-07-16 19:08:20] Unable to query number of CUDA devices! Is an nVidia driver installed?

    Any idea of what can be wrong ?

    Thank you....

    P.

    For information, following is ok :
    $ sudo nvidia-docker run --rm nvidia/cuda nvidia-smi

    Sun Jul 16 19:24:07 2017
    +-----------------------------------------------------------------------------+
    | NVIDIA-SMI 367.35 Driver Version: 367.35 |
    |-------------------------------+----------------------+----------------------+
    | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
    | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
    |===============================+======================+======================|
    | 0 GeForce GTX 106... Off | 0000:01:00.0 Off | N/A |
    | 0% 40C P8 7W / 120W | 0MiB / 6072MiB | 0% Default |
    +-------------------------------+----------------------+----------------------+

    +-----------------------------------------------------------------------------+
    | Processes: GPU Memory |
    | GPU PID Type Process name Usage |
    |=============================================================================|

    | No running processes found |
    +-----------------------------------------------------------------------------+
     
    #24
  5. nthu9280

    nthu9280 Active Member

    Joined:
    Feb 3, 2016
    Messages:
    661
    Likes Received:
    136
    I think there is a min NVIDIA driver version required. 38?.??

    Sent from my Nexus 6 using Tapatalk
     
    #25
  6. PHOOK

    PHOOK New Member

    Joined:
    Jul 16, 2017
    Messages:
    3
    Likes Received:
    1
    Thank you for your advice.
    Apparently only 375.66 driver is available on NVIDIA Website (for linux 64)(Graphics Driver - Linux Display Driver - x86 | NVIDIA)

    I will keep you informed
     
    #26
  7. PHOOK

    PHOOK New Member

    Joined:
    Jul 16, 2017
    Messages:
    3
    Likes Received:
    1
    @nthu9280 thank you !!!
    I installed the new driver, reinstalled nvidia-docker, rebooted et this is it...
    Approx 440H/s with my GTX 1060

    A big thanks also to @Patrick who allowed me to play with docker and mining.
     
    #27
    Patrick likes this.
  8. Klee

    Klee Well-Known Member

    Joined:
    Jun 2, 2016
    Messages:
    879
    Likes Received:
    264
    Ok since I am unable to get XMR-Nvidia working in Ubuntu 17.04 i'm giving this a go.

    It took some Googling to get nvidia-docker to install and now its "
    latest: Pulling from servethehome/monero_gpu_nv_xmrpooldotnet" and downloading about a gig's worth of files......

    To be continued.
     
    #28
  9. Klee

    Klee Well-Known Member

    Joined:
    Jun 2, 2016
    Messages:
    879
    Likes Received:
    264
    And it errored out....

    "Status: Downloaded newer image for servethehome/monero_gpu_nv_xmrpooldotnet:latest
    docker: Error response from daemon: create nvidia_driver_375.66: VolumeDriver.Create: internal error, check logs for details."

    I AM runnning nvidia driver 375.66 and I can't seem to find the docker log and i'm tired and i'm going to bed after I reboot into windows 10 and and mine some monero with this pc.

    Will mess with it tomorrow night.
     
    #29
  10. nthu9280

    nthu9280 Active Member

    Joined:
    Feb 3, 2016
    Messages:
    661
    Likes Received:
    136
    @Klee
    Let me see what version of the driver I have. I know it's 38?.??. Docker & Nvidia-docker work fine. Running ETH docker and seem to work fine. Ranges upto 22MH/s with default clocks. I did put power limit of 50% (78w) on my Asus 1060 6G strix OC card.

    Don't have lot of exp with Linux and made the rookie mistake of letting ubuntu default volume sizes. Need to adjust that with proper sizes.

    I also have issues with with GUI login. Can putty or toggle to alt+F1 and login.

    Sent from my Nexus 6 using Tapatalk
     
    #30
  11. Klee

    Klee Well-Known Member

    Joined:
    Jun 2, 2016
    Messages:
    879
    Likes Received:
    264
    Well it seems if I install driver version 384.69 via a ppa, I would rather do that than Nvidia's .run file since I have had bad luck with that in the past, it wants to uninstall Cuda 8. So it looks like I will have to reinstall Cuda 8 after installing 384.69 and force it not to downgrade back to 375.66.

    Maybe this weekend......
     
    #31
  12. Piers DD

    Piers DD New Member

    Joined:
    Aug 29, 2017
    Messages:
    6
    Likes Received:
    0
    Any idea why my container is quitting with the following error;

    [2017-09-26 12:09:20] 1 miner threads started, using 'cryptonight' algorithm.
    [2017-09-26 12:09:20] GPU #0: GeForce GTX 1080 Ti (28 SMX), using 40 blocks of 8 threads
    [2017-09-26 12:09:20] Starting Stratum on stratum+tcp://xmr.pool.minergate.com:45560
    [2017-09-26 12:09:20] GPU #0: Warning: block count 40 is not a multiple of SMX count 28.
    [2017-09-26 12:09:20] GPU #0: FATAL: failed to allocate device memory for long state
    *** ccminer-cryptonight for nVidia GPUs by tsiv ***

    TIA,
    Piers
     
    #32
  13. Jeggs101

    Jeggs101 Well-Known Member

    Joined:
    Dec 29, 2010
    Messages:
    1,288
    Likes Received:
    173
    I've got this running and never see that @Piers DD
     
    #33
  14. Piers DD

    Piers DD New Member

    Joined:
    Aug 29, 2017
    Messages:
    6
    Likes Received:
    0
    Which GPU are you using? I think the Ti has an additional 8 SMX/SMM (streaming multi-processors) clusters.
     
    #34
  15. Patrick

    Patrick Administrator
    Staff Member

    Joined:
    Dec 21, 2010
    Messages:
    10,426
    Likes Received:
    3,535
    Hey @Piers DD I do not think it is an issue with the GTX 1080 Ti. I have had this running on the 8x 1080 Ti and 10x 1080 Ti systems.

    Perhaps it is a permissions issue?
     
    #35
  16. timrohde

    timrohde New Member

    Joined:
    Nov 7, 2017
    Messages:
    1
    Likes Received:
    0
    I get the same error about "long state" on my 1050 ti. Is it possible that the miner attempts to use 100% of the GPU and bumps up against the OS using some portion of it? If so, is there a way to start the container with some limits set on GPU usage?

    Thanks!
     
    #36
  17. benm

    benm New Member

    Joined:
    Nov 7, 2017
    Messages:
    4
    Likes Received:
    1
    I'd like to GPU mine on the supportxmr.com pool, but based on what I'm seeing, the GPU mining containers listed on the Docker STH profile are all customized for specific pools, none of which are supportxmr.

    Is there an image like the generic xmrig CPU miner, but for GPU mining? If not, can one of the existing images be adapted for use with other pools?

    Thanks.
     
    #37
  18. Ronni

    Ronni New Member

    Joined:
    Oct 1, 2013
    Messages:
    11
    Likes Received:
    2
    Hi @Piers DD

    did you resolve the issues with 'GPU #0: FATAL: failed to allocate device memory for long state'? I get this in windows and in Ubuntu (with the docker image) and any help would be appreciated

    the output I am seeing in docker
    [2017-12-10 11:47:11] Using JSON-RPC 2.0
    [2017-12-10 11:47:11] 1 miner threads started, using 'cryptonight' algorithm.
    [2017-12-10 11:47:11] Starting Stratum on stratum+tcp://mine.moneropool.com:3333
    [2017-12-10 11:47:11] GPU #0: GeForce GTX 1060 6GB (10 SMX), using 40 blocks of 8 threads
    [2017-12-10 11:47:11] GPU #0: FATAL: failed to allocate device memory for long state

    thanks
     
    #38
    impact79 likes this.
  19. impact79

    impact79 New Member

    Joined:
    Dec 12, 2017
    Messages:
    1
    Likes Received:
    0
    Hi, i have the same problem with my GTX 750 on Ubuntu 16.04:


    [2017-12-12 16:06:41] 1 miner threads started, using 'cryptonight' algorithm.
    [2017-12-12 16:06:41] GPU #0: GeForce GTX 750 (4 SMX), using 40 blocks of 8 threads
    [2017-12-12 16:06:41] Pool set diff to 1063
    [2017-12-12 16:06:41] Stratum detected new block
    [2017-12-12 16:06:41] GPU #0: FATAL: failed to allocate device memory for long state

    Any news on this ?
    Would it be helpful to post the whole log ?
     
    #39
  20. Piers DD

    Piers DD New Member

    Joined:
    Aug 29, 2017
    Messages:
    6
    Likes Received:
    0
    No, I presumed that very few are pushing their 1080Ti in this way.
    Am looking at 1060 and other options now
     
    #40
Similar Threads: Monero mining
Forum Title Date
Cryptocurrency Mining and Markets What is the STH Monero mining pool address? Nov 29, 2017
Cryptocurrency Mining and Markets STH xmrig Monero Mining Docker Image Oct 14, 2017
Cryptocurrency Mining and Markets Good thing I stopped mining Monero Sep 26, 2017
Cryptocurrency Mining and Markets AMD EPYC 7301 Monero XMR Mining Speed Sep 15, 2017
Cryptocurrency Mining and Markets Mining other altcoins that are not as popular as Monero, Zcash , Eth ect. Jun 21, 2017

Share This Page