ethereum-mining / ethminer

Ethereum miner with OpenCL, CUDA and stratum support
GNU General Public License v3.0
5.96k stars 2.28k forks source link

Unable to mine with two cards - only the first works #2246

Open frdbonif opened 3 years ago

frdbonif commented 3 years ago

Ethminer Version: 0.19.0-17+commit.ce52c740

OS: Ubuntu 20.04.2

amdgpu-pro Version: 20.50-1234664

Start command: ethminer -R --cl-devices 0 1 -L 1 -P stratum1+ssl://WALLET.WORKER@eu1.ethermine.org:5555

Simple Log output: Mar 31 21:51:18 xxx.x.xx.x ethminer[4051]: m 21:51:18 ethminer 0:47 A35 49.52 Mh - cl0 49.52, cl1 0.00

Verbose Log output (from start until first card begins mining): i 22:00:59 ethminer Configured pool eu1.ethermine.org:5555 i 22:00:59 ethminer Selected pool eu1.ethermine.org:5555 i 22:00:59 ethminer >> {"id":1,"method":"eth_submitLogin","params":["0x2b8450c056a11464c6f467777c2d9a400419d80e","X"],"worker":"miner01"} i 22:00:59 ethminer << {"id":1,"jsonrpc":"2.0","result":true} i 22:00:59 ethminer Stratum mode : Eth-Proxy compatible i 22:00:59 ethminer Established connection to eu1.ethermine.org [[2606:4700:90:0:bda0:4092:8f4f:4658]:5555] i 22:00:59 ethminer Spinning up miners... cl 22:00:59 cl-0 Using Device : 03:00.0 gfx1010 OpenCL 2.0 Memory : 7.98 GB (8573157376 B) i 22:00:59 cl-0 Adjusting CL work multiplier for 20 CUs. Adjusted work multiplier: 36,409 cl 22:00:59 cl-1 Using Device : 08:00.0 gfx1010 OpenCL 2.0 Memory : 7.98 GB (8573157376 B) i 22:00:59 ethminer >> {"id":5,"method":"eth_getWork","params":[]} i 22:00:59 cl-1 Adjusting CL work multiplier for 20 CUs. Adjusted work multiplier: 36,409 i 22:00:59 ethminer << {"id":0,"jsonrpc":"2.0","result":["0x04c94b6dbeff4b40af8a10462e98eac94a2ffe72b8b97a0427fd63d8717e5ba2","0xb0161380b6e01f8a1ac0353bc347244c565876717eb98b0403fd2391bb5b9a13","0x0000000112e0be826d694b2e62d01511f12a6061fbaec8bc02357593e70e52ba","0xb963e2"]} i 22:00:59 ethminer Epoch : 404 Difficulty : 4.00 Gh i 22:00:59 ethminer Job: 04c94b6d… block 12149730 eu1.ethermine.org [[2606:4700:90:0:bda0:4092:8f4f:4658]:5555] cl 22:01:02 cl-0 Generating split DAG + Light (total): 4.16 GB i 22:01:02 ethminer << {"id":0,"jsonrpc":"2.0","result":["0x4561a5a40300e300b5b6a1586d687d5038b0b56fbbfa48b6ad8796a49d73b93f","0xb0161380b6e01f8a1ac0353bc347244c565876717eb98b0403fd2391bb5b9a13","0x0000000112e0be826d694b2e62d01511f12a6061fbaec8bc02357593e70e52ba","0xb963e2"]} i 22:01:02 ethminer Job: 4561a5a4… block 12149730 eu1.ethermine.org [[2606:4700:90:0:bda0:4092:8f4f:4658]:5555] cl 22:01:02 cl-0 OpenCL kernel cl 22:01:02 cl-0 Loading binary kernel /home/fred/ethminer/build/ethminer/kernels/ethash_gfx1010_lws128_exit.bin X 22:01:02 cl-0 Failed to load binary kernel: /home/fred/ethminer/build/ethminer/kernels/ethash_gfx1010_lws128_exit.bin X 22:01:02 cl-0 Falling back to OpenCL kernel... cl 22:01:02 cl-0 Creating DAG buffer, size: 4.16 GB, free: 3.83 GB cl 22:01:02 cl-0 Creating light cache buffer, size: 66.50 MB cl 22:01:02 cl-0 Loading kernels cl 22:01:02 cl-0 Creating buffer for header. cl 22:01:02 cl-0 Creating mining buffer i 22:01:03 ethminer << {"id":0,"jsonrpc":"2.0","result":["0x60ff4d8af1de730cd2653d96e2401d0cf3246467faf0f294c0f401a69202fdf6","0xb0161380b6e01f8a1ac0353bc347244c565876717eb98b0403fd2391bb5b9a13","0x0000000112e0be826d694b2e62d01511f12a6061fbaec8bc02357593e70e52ba","0xb963e3"]} i 22:01:03 ethminer Job: 60ff4d8a… block 12149731 eu1.ethermine.org [[2606:4700:90:0:bda0:4092:8f4f:4658]:5555] i 22:01:03 ethminer << {"id":0,"jsonrpc":"2.0","result":["0xfef89ad6e38816235a0c95a396de033a83b73575416ebee5488d843387bff96e","0xb0161380b6e01f8a1ac0353bc347244c565876717eb98b0403fd2391bb5b9a13","0x0000000112e0be826d694b2e62d01511f12a6061fbaec8bc02357593e70e52ba","0xb963e3"]} i 22:01:03 ethminer Job: fef89ad6… block 12149731 eu1.ethermine.org [[2606:4700:90:0:bda0:4092:8f4f:4658]:5555] m 22:01:04 ethminer 0:00 A0 0.00 h - cl0 0.00 A0, cl1 0.00 A0 i 22:01:04 ethminer << {"id":0,"jsonrpc":"2.0","result":["0x1f2d1f17e4bcba8c9e1706439ba59398795f660f61b178c9b79d0292538f6231","0xb0161380b6e01f8a1ac0353bc347244c565876717eb98b0403fd2391bb5b9a13","0x0000000112e0be826d694b2e62d01511f12a6061fbaec8bc02357593e70e52ba","0xb963e3"]} i 22:01:04 ethminer Job: 1f2d1f17… block 12149731 eu1.ethermine.org [[2606:4700:90:0:bda0:4092:8f4f:4658]:5555] cl 22:01:08 cl-0 4.16 GB of DAG data generated in 5,859 ms. cl 22:01:08 cl-1 Generating split DAG + Light (total): 4.16 GB i 22:01:08 ethminer << {"id":0,"jsonrpc":"2.0","result":["0xf712fbc8ad1a289010f18e5214850bf88b3157622d751b05fa4c4f21746dadfb","0xb0161380b6e01f8a1ac0353bc347244c565876717eb98b0403fd2391bb5b9a13","0x0000000112e0be826d694b2e62d01511f12a6061fbaec8bc02357593e70e52ba","0xb963e3"]} i 22:01:08 ethminer Job: f712fbc8… block 12149731 eu1.ethermine.org [[2606:4700:90:0:bda0:4092:8f4f:4658]:5555] m 22:01:09 ethminer 0:00 A0 0.00 h - cl0 0.00 A0, cl1 0.00 A0 i 22:01:10 ethminer << {"id":0,"jsonrpc":"2.0","result":["0xc49a122eec68ef23312d2066e8d76cf67e201cd40f748866ad55ea63a02ac70d","0xb0161380b6e01f8a1ac0353bc347244c565876717eb98b0403fd2391bb5b9a13","0x0000000112e0be826d694b2e62d01511f12a6061fbaec8bc02357593e70e52ba","0xb963e4"]} i 22:01:10 ethminer Job: c49a122e… block 12149732 eu1.ethermine.org [[2606:4700:90:0:bda0:4092:8f4f:4658]:5555] i 22:01:10 ethminer << {"id":0,"jsonrpc":"2.0","result":["0x95cb2a40551833fee2e1d0fb8c69d8346a93b4cf733f40917548532548f3f555","0xb0161380b6e01f8a1ac0353bc347244c565876717eb98b0403fd2391bb5b9a13","0x0000000112e0be826d694b2e62d01511f12a6061fbaec8bc02357593e70e52ba","0xb963e4"]} i 22:01:10 ethminer Job: 95cb2a40… block 12149732 eu1.ethermine.org [[2606:4700:90:0:bda0:4092:8f4f:4658]:5555] m 22:01:14 ethminer 0:00 A0 49.35 Mh - cl0 49.35 A0, cl1 0.00 A0

I am using two RX5700XT's, until today I was running one with no problems but sourced and installed a second card today. I've had a search around for solutions but many of them are from around 2015 and offer solutions that don't exist any more like command line arguments that are not valid on my version.

Ethminer also hangs when I try to stop it. I know that Ethminer isn't completely up to date so I suspect an incompatibility with software versions somewhere. If anyone has any suggestions, they'd be greatly appreciated.

Thanks.

SergeantSerk commented 3 years ago

m 22:01:14 ethminer 0:00 A0 49.35 Mh - cl0 49.35 A0, cl1 0.00 A0

Does ethminer not proceed from here onwards? I note that ethminer hangs when you try to stop it so I am unsure if this is all the logs since I see cl 22:01:08 cl-1 Generating split DAG + Light (total): 4.16 GB but I don't see cl-1's DAG data being generated.

frdbonif commented 3 years ago

Thanks, there is nothing in the logs that suggest the DAG has finished generating. I've now discovered that the process crashed after about 90 minutes but I haven't explored those logs yet.

ivanmlerner commented 3 years ago

I am having the same issue with two RX5500XT

frdbonif commented 3 years ago

I am having the same issue with two RX5500XT

I've made the switch to MMPOS, a Linux based mining OS, after I tried to see if teamredminer could utilise both cards and it exhibited the same problem. Under MMPOS, Ethminer works perfectly with two cards. I'd rather be using vanilla Ubuntu but MMPOS is free for up to six workers and my priority was mining at full capacity as quickly as possible - this hardware cost me a lot of money and I need it to be earning as much as possible.

While not a solution to the original problem, it shows that the issue isn't with Ethminer but something on my setup - whether that is drivers or configuration.

ivanmlerner commented 3 years ago

I managed to get it to work by disabling IOMMU in bios.