ergoplatform / Autolykos-GPU-miner

CUDA-based GPU miner for Ergo (Autolykos algorithm)
40 stars 20 forks source link

Mining HR stat for each GPU #42

Open rumatoest opened 5 years ago

rumatoest commented 5 years ago

Hi. I've found that miner does not output HR statistic for each GPU Such stat is really useful. It would be very nice if your miner would periodically print aggregated stat like others miners do

 ETH: GPU0 22.019 Mh/s, GPU1 26.731 Mh/s, GPU2 26.741 Mh/s, GPU3 26.739 Mh/s
rsmmnt commented 5 years ago

It actually should print hashrate, but not in that form, it just logs hashrate for single GPUs from time to time, like this, with GPU number

2019-06-10 06:21:39,890 INFO [GPU 0 miner] GPU 0 hashrate 24.5267 MH/s

rumatoest commented 5 years ago

After more that 5 minutes of mining I'm receiving only messages like this

2019-06-10 20:25:38,201 INFO [main thread] Average curling time 0.7355 ms                                        
2019-06-10 20:25:38,203 INFO [main thread] Current block candidate: {
  "MSG" : "8638EE226A4DFF229EA4C4CB1DB9EF2094E69518C5A0EC3999449DE2DBDE35E1",
  "B" : 115792089237316195423570985008687907852837564279074904382605163141518161494337,
  "PK" : "033402F061D16498E84C7F291B79071F4D008660B2C2E27F294B86AAFBE07C1429"
} 

No information about average HR is available.

rsmmnt commented 5 years ago

Can you check that if GPUs are loaded with work at that time (via nvidia-smi) and your node is synchronized (if you check height via API vs block explorer it matches)?

Does that happen after miner finds a solution?

I had a problem with node a couple days ago when the chain was stuck and didn't grow at all (resync helped). In that case candidate block doesn't change, and if a miner thread finds a solution it doesn't start mining again, cause it expects new candidate to be published by node...

rumatoest commented 5 years ago

Well I've re-checked it. I can see stat for each GPU but it is not really usable. Per GPU HR displays in random order and there is not possible to get total rig HR by parsing logs.

Summary one line stat similar to Claymore's miners would really useful.

rsmmnt commented 5 years ago

Try it now, I made hashrate one-linish .

rumatoest commented 5 years ago

One line is much better, but it have to be also summary line like "Total Hashrate: 10MH/s

And I've also found some interesting feature. Now it prints all hasharates as ZERO

2019-06-22 12:41:39,350 INFO [main thread] Average hashrates: GPU0 0 MH/s GPU1 0 MH/s GPU2 0 MH/s GPU3 0 MH/s 
2019-06-22 12:42:00,472 INFO [main thread] Average curling time 2.4725 ms
2019-06-22 12:42:00,472 INFO [main thread] Current block candidate: {
  "MSG" : "A3BD930CFCAB934915F68D4C8E0389E5A789ACF3E0CDF81FBB987956374154E6",
  "B" : 115792089237316195423570985008687907852837564279074904382605163141518161494337,
  "PK" : "02B86B21B0E361C87E9C675B297CA6CB2D3F32CD68F6DD51E60814B1711214A603"
}
2019-06-22 12:42:00,472 INFO [main thread] Average hashrates: GPU0 0 MH/s GPU1 0 MH/s GPU2 0 MH/s GPU3 0 MH/s 
2019-06-22 12:42:21,187 INFO [main thread] Average curling time 2.2825 ms
2019-06-22 12:42:21,187 INFO [main thread] Current block candidate: {
  "MSG" : "A3BD930CFCAB934915F68D4C8E0389E5A789ACF3E0CDF81FBB987956374154E6",
  "B" : 115792089237316195423570985008687907852837564279074904382605163141518161494337,
  "PK" : "02B86B21B0E361C87E9C675B297CA6CB2D3F32CD68F6DD51E60814B1711214A603"
}
2019-06-22 12:42:21,187 INFO [main thread] Average hashrates: GPU0 0 MH/s GPU1 0 MH/s GPU2 0 MH/s GPU3 0 MH/s