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

Super Slow DAG Generation AMD 20.30 #2066

Open jgonzis opened 3 years ago

jgonzis commented 3 years ago

I make som cllog to find where it was staying time... cl 18:08:30 cl-0 Creating DAG buffer, size: 3.90 GB, free: 4.09 GB cl 18:08:30 cl-0 Creating light cache buffer, size: 62.37 MB cl 18:08:30 cl-0 Loading kernels cl 18:08:30 cl-0 Creating buffer for header. cl 18:08:30 cl-0 Creating mining buffer cl 18:08:30 cl-0 Clear cl 18:08:30 cl-0 emplace_back cl 18:08:30 cl-0 Dag1 cl 18:08:30 cl-0 Dag2 cl 18:08:30 cl-0 Dag3 cl 18:08:30 cl-0 Dag4 cl 18:08:30 cl-0 PreFor 65,404,886chunk 1,280,000LocalWorksize 128 cl 18:08:30 cl-0 Start 0 cl 18:08:30 cl-0 ND 0 cl 18:08:30 cl-0 Finish 0 m 18:08:31 ethminer 0:00 A0 0.00 h - cl0 0.00 i 18:08:32 ethminer Job: 2560de2e… europe.ethash-hub.miningpoolhub.com [18.195.252.71:20535] i 18:08:33 ethminer Job: 5293dcec… europe.ethash-hub.miningpoolhub.com [18.195.252.71:20535] i 18:08:33 ethminer Job: 094032f7… europe.ethash-hub.miningpoolhub.com [18.195.252.71:20535] i 18:08:35 ethminer Job: 7b81596a… europe.ethash-hub.miningpoolhub.com [18.195.252.71:20535] m 18:08:36 ethminer 0:00 A0 0.00 h - cl0 0.00 i 18:08:36 ethminer Job: c6a77801… europe.ethash-hub.miningpoolhub.com [18.195.252.71:20535] i 18:08:38 ethminer Job: e6100133… europe.ethash-hub.miningpoolhub.com [18.195.252.71:20535] m 18:08:41 ethminer 0:00 A0 0.00 h - cl0 0.00 i 18:08:41 ethminer Job: 02f8dc4c… europe.ethash-hub.miningpoolhub.com [18.195.252.71:20535] i 18:08:42 ethminer Job: 891c4d5e… europe.ethash-hub.miningpoolhub.com [18.195.252.71:20535] i 18:08:42 ethminer Job: 2b7509af… europe.ethash-hub.miningpoolhub.com [18.195.252.71:20535] m 18:08:46 ethminer 0:00 A0 0.00 h - cl0 0.00 i 18:08:46 ethminer Job: a1184009… europe.ethash-hub.miningpoolhub.com [18.195.252.71:20535] i 18:08:48 ethminer Job: b671e8d2… europe.ethash-hub.miningpoolhub.com [18.195.252.71:20535] m 18:08:51 ethminer 0:00 A0 0.00 h - cl0 0.00 i 18:08:51 ethminer Job: a86d40c9… europe.ethash-hub.miningpoolhub.com [18.195.252.71:20535] i 18:08:54 ethminer Job: 22d93cea… europe.ethash-hub.miningpoolhub.com [18.195.252.71:20535] i 18:08:55 ethminer Job: f61cae12… europe.ethash-hub.miningpoolhub.com [18.195.252.71:20535] i 18:08:55 ethminer Job: 12e4dc0d… europe.ethash-hub.miningpoolhub.com [18.195.252.71:20535] m 18:08:56 ethminer 0:00 A0 0.00 h - cl0 0.00 cl 18:08:57 cl-0 Start 1,280,000 cl 18:08:57 cl-0 ND 1,280,000 cl 18:08:57 cl-0 Finish 1,280,000 i 18:08:58 ethminer Job: 5e7bb8f9… europe.ethash-hub.miningpoolhub.com [18.195.252.71:20535] m 18:09:01 ethminer 0:00 A0 0.00 h - cl0 0.00 i 18:09:01 ethminer Job: 38934119… europe.ethash-hub.miningpoolhub.com [18.195.252.71:20535] i 18:09:02 ethminer Job: c3da0c11… europe.ethash-hub.miningpoolhub.com [18.195.252.71:20535] i 18:09:02 ethminer Job: a038d551… europe.ethash-hub.miningpoolhub.com [18.195.252.71:20535] i 18:09:02 ethminer Job: 53417689… europe.ethash-hub.miningpoolhub.com [18.195.252.71:20535] i 18:09:05 ethminer Job: 75c7cc69… europe.ethash-hub.miningpoolhub.com [18.195.252.71:20535] m 18:09:06 ethminer 0:00 A0 0.00 h - cl0 0.00 i 18:09:08 ethminer Job: 194f0c16… europe.ethash-hub.miningpoolhub.com [18.195.252.71:20535]

I found that is taking time with this function call: m_queue[0].finish(); in line 966 of CLMiner.cpp

It happen in both 5700 modified to 5700XT, in the 5700 XT are mining perfectly… that didn't happen before with drivers 19.30

BoriZka67 commented 3 years ago

Hi. Which kernels do you use for the 5700?

jgonzi commented 3 years ago

Hi. Which kernels do you use for the 5700?

I use the OpenCL standard, there aren't premade kernels for 5700. I suppose it has to be something also with drivers but it only happen in 20.30 and not in 19.30...

BoriZka67 commented 3 years ago

How much Mh does 5700 and 5700xt give You? I think I need to compile the kernel, because other programs give me stable 55Mh

jgonzi commented 3 years ago

How much Mh does 5700 and 5700xt give You? I think I need to compile the kernel, because other programs give me stable 55Mh

The 5700XT 51Mhs the 5700 modded 0Mhs, they don't work with 20.30 or 20.40

BoriZka67 commented 3 years ago

А что модифицировали? у меня 5700ХТ и 5700 дают примерно одинаковый результат. Драйвера последние от 22.09.2020. Хочу вернуться на ethminer, но пока не соберут ядро под эти видеокарты приходится сидеть на TRM((( (у меня для сборки ядра нет ни опыта, ни люнукса)

evilbulgarian commented 3 years ago

Related to #2079 now I am seeing .08 for my 4GB RX570. Any ideas what is happening?

ethminer 0.19.0-11+commit.d5f3a972 Build: linux/release/gnu

i 17:08:37 ethminer Configured pool us2.ethermine.org:5555 i 17:08:37 ethminer Selected pool us2.ethermine.org:5555 i 17:08:37 ethminer Negotiation of EthereumStratum/2.0.0 failed. Trying another ... i 17:08:38 ethminer Stratum mode : EthereumStratum/1.0.0 (NiceHash) i 17:08:38 ethminer Established connection to us2.ethermine.org [172.65.226.101:5555] i 17:08:38 ethminer Spinning up miners... cl 17:08:38 cl-0 Using Device : 01:00.0 gfx803 OpenCL 1.2 Memory : 4.00 GB (4294967296 B) cu 17:08:38 cuda-1 Using Pci Id : 03:00.0 GeForce GTX 1070 (Compute 6.1) Memory : 7.83 GB i 17:08:38 cl-0 Adjusting CL work multiplier for 32 CUs. Adjusted work multiplier: 58,255 cu 17:08:38 cuda-2 Using Pci Id : 04:00.0 GeForce GTX 1070 (Compute 6.1) Memory : 7.83 GB i 17:08:38 ethminer Extranonce set to 8c51 i 17:08:38 ethminer Authorized worker 0xFf1eB0a5883896975648856F91c47D99d4F00D47.richbitch i 17:08:38 ethminer Epoch : 384 Difficulty : 4.29 Gh i 17:08:38 ethminer Job: 12c6b685… us2.ethermine.org [172.65.226.101:5555] cl 17:08:40 cl-0 Generating split DAG + Light (total): 4.00 GB i 17:08:41 ethminer Job: 2cecbd43… us2.ethermine.org [172.65.226.101:5555] cu 17:08:41 cuda-2 Generating DAG + Light(on GPU) : 4.06 GB cu 17:08:41 cuda-1 Generating DAG + Light(on GPU) : 4.06 GB cl 17:08:41 cl-0 OpenCL kernel cl 17:08:41 cl-0 Loading binary kernel /home/vladi/ethminer/build/ethminer/kernels/ethash_gfx803_lws128_exit.bin X 17:08:41 cl-0 Failed to load binary kernel: /home/vladi/ethminer/build/ethminer/kernels/ethash_gfx803_lws128_exit.bin X 17:08:41 cl-0 Falling back to OpenCL kernel... cl 17:08:41 cl-0 Creating DAG buffer, size: 4.00 GB, free: 4.88 KB cl 17:08:42 cl-0 Creating light cache buffer, size: 64.00 MB cl 17:08:42 cl-0 Loading kernels cl 17:08:42 cl-0 Creating buffer for header. cl 17:08:42 cl-0 Creating mining buffer m 17:08:42 ethminer 0:00 A0 0.00 h - cl0 0.00, cu1 0.00, cu2 0.00 i 17:08:44 ethminer Job: c81ad9ae… us2.ethermine.org [172.65.226.101:5555] i 17:08:44 ethminer Job: 22d9ffa6… us2.ethermine.org [172.65.226.101:5555] i 17:08:47 ethminer Job: 88c5dd85… us2.ethermine.org [172.65.226.101:5555] m 17:08:47 ethminer 0:00 A0 0.00 h - cl0 0.00, cu1 0.00, cu2 0.00 i 17:08:50 ethminer Job: 656d687c… us2.ethermine.org [172.65.226.101:5555] i 17:08:52 ethminer Job: aa58eec2… us2.ethermine.org [172.65.226.101:5555] i 17:08:52 ethminer Job: a28a0ec2… us2.ethermine.org [172.65.226.101:5555] m 17:08:52 ethminer 0:00 A0 0.00 h - cl0 0.00, cu1 0.00, cu2 0.00 cu 17:08:55 cuda-2 Generated DAG + Light in 14,477 ms. 3.76 GB left. cu 17:08:55 cuda-1 Generated DAG + Light in 14,589 ms. 3.76 GB left. i 17:08:56 ethminer Job: ed4c8879… us2.ethermine.org [172.65.226.101:5555] i 17:08:56 ethminer Job: 7c3449b2… us2.ethermine.org [172.65.226.101:5555] m 17:08:57 ethminer 0:00 A0 240.18 Kh - cl0 0.00, cu1 119.71, cu2 120.48 i 17:08:59 ethminer Job: f3a6c27a… us2.ethermine.org [172.65.226.101:5555] m 17:09:02 ethminer 0:00 A0 53.54 Mh - cl0 0.00, cu1 26.81, cu2 26.73 cl 17:09:02 cl-0 4.00 GB of DAG data generated in 21,926 ms. i 17:09:05 ethminer Job: 732ab5c8… us2.ethermine.org [172.65.226.101:5555] i 17:09:07 ethminer Job: 7f82ff72… us2.ethermine.org [172.65.226.101:5555] m 17:09:07 ethminer 0:00 A0 53.51 Mh - cl0 0.00, cu1 26.77, cu2 26.74 i 17:09:08 ethminer Job: 57f5d698… us2.ethermine.org [172.65.226.101:5555] i 17:09:10 ethminer Job: 48701f77… us2.ethermine.org [172.65.226.101:5555] i 17:09:10 ethminer Job: 313ae181… us2.ethermine.org [172.65.226.101:5555] m 17:09:12 ethminer 0:00 A0 53.63 Mh - cl0 0.08, cu1 26.82, cu2 26.74 i 17:09:14 ethminer Job: d69fc067… us2.ethermine.org [172.65.226.101:5555] m 17:09:17 ethminer 0:00 A0 53.63 Mh - cl0 0.08, cu1 26.81, cu2 26.73 i 17:09:18 ethminer Job: 3348fc45… us2.ethermine.org [172.65.226.101:5555] i 17:09:22 ethminer Job: 99e451a1… us2.ethermine.org [172.65.226.101:5555] m 17:09:22 ethminer 0:00 A0 53.64 Mh - cl0 0.08, cu1 26.82, cu2 26.74 i 17:09:26 ethminer Job: e8cd17b9… us2.ethermine.org [172.65.226.101:5555] m 17:09:27 ethminer 0:00 A0 53.63 Mh - cl0 0.08, cu1 26.82, cu2 26.74 i 17:09:30 ethminer Job: c4321002… us2.ethermine.org [172.65.226.101:5555] m 17:09:32 ethminer 0:00 A0 53.63 Mh - cl0 0.08, cu1 26.82, cu2 26.74