fireice-uk / xmr-stak

Free Monero RandomX Miner and unified CryptoNight miner
GNU General Public License v3.0
4.05k stars 1.79k forks source link

Mining to NiceHash: Job not found, Invalid nonce #835

Closed borzaka closed 6 years ago

borzaka commented 6 years ago

After mining ~16 hours, this is my result:

RESULT REPORT
Difficulty       : 400015
Good results     : 1142 / 1178 (96.9 %)
Avg result time  : 48.5 sec
Pool-side hashes : 366263402

Top 10 best results found:
|  0 |       2804897726 |  1 |        241975830 |
|  2 |        230217641 |  3 |        210438747 |
|  4 |        186649657 |  5 |        167523502 |
|  6 |        102330571 |  7 |         81265676 |
|  8 |         46654453 |  9 |         42651696 |

Error details:
| Count | Error text                       | Last seen           |
|    27 | Job not found.                   | 2018-01-08 13:20:05 |
|     9 | Invalid nonce; is miner not comp | 2018-01-08 12:57:09 |

My config

config.txt:

"pool_list" :
[
    {"pool_address" : "stratum+tcp://cryptonight.eu.nicehash.com:3355", "wallet_address" : "3B3r1yBE8ub2kaewHAieLbfL1hfv6bNGj1.vegaworker", "pool_password" : "x", "use_nicehash" : true, "use_tls" : false, "tls_fingerprint" : "", "pool_weight" : 3 },
    {"pool_address" : "stratum+tcp://cryptonight.usa.nicehash.com:3355", "wallet_address" : "3B3r1yBE8ub2kaewHAieLbfL1hfv6bNGj1.vegaworker", "pool_password" : "x", "use_nicehash" : true, "use_tls" : false, "tls_fingerprint" : "", "pool_weight" : 2 },
    {"pool_address" : "stratum+tcp://cryptonight.br.nicehash.com:3355", "wallet_address" : "3B3r1yBE8ub2kaewHAieLbfL1hfv6bNGj1.vegaworker", "pool_password" : "x", "use_nicehash" : true, "use_tls" : false, "tls_fingerprint" : "", "pool_weight" : 1 },
],

amd.txt

"gpu_threads_conf" : [ 
    { "index" : 0, "intensity" : 1932, "worksize" : 8, "affine_to_cpu" : 1, "strided_index" : true },
    { "index" : 0, "intensity" : 1932, "worksize" : 8, "affine_to_cpu" : 1, "strided_index" : true },
    { "index" : 1, "intensity" : 1932, "worksize" : 8, "affine_to_cpu" : 1, "strided_index" : true },
    { "index" : 1, "intensity" : 1932, "worksize" : 8, "affine_to_cpu" : 1, "strided_index" : true },
    { "index" : 2, "intensity" : 1800, "worksize" : 8, "affine_to_cpu" : 1, "strided_index" : true },
    { "index" : 2, "intensity" : 1800, "worksize" : 8, "affine_to_cpu" : 1, "strided_index" : true },
],

cpu.txt

"cpu_threads_conf" :
[
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 2 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 4 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 6 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 8 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 10 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 12 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 14 },
],

Basic information

borzaka commented 6 years ago

@fireice-uk Please don't :)

I try to give as many information I can, and I hope it helps.

Another report after ~28 hours.

RESULT REPORT
Difficulty       : 400015
Good results     : 2005 / 2068 (97.0 %)
Avg result time  : 46.0 sec
Pool-side hashes : 152906698

Top 10 best results found:
|  0 |        414940385 |  1 |        259847514 |
|  2 |        246063839 |  3 |        239841035 |
|  4 |        118868302 |  5 |         91313547 |
|  6 |         81895170 |  7 |         53190579 |
|  8 |         39688135 |  9 |         38225717 |

Error details:
| Count | Error text                       | Last seen           |
|    53 | Job not found.                   | 2018-03-06 23:13:21 |
|    10 | Invalid nonce; is miner not comp | 2018-03-06 19:27:38 |

(Dev branch compiled on 01.30.)

With ~6600 H/s

vans163 commented 6 years ago

@CircusDad It occurs everytime a new block arrives, what your seeing as hard evidence from comment #835 is when an actual share was found, AND got rejected as stale. Don't forget you still lose all that hashing time mining stale block, its just if you did not find a share, it is never reported on the console printout. So you don't have hard evidence from the miner logs. Perhaps don't rely on logs and try using dtrace for your evidence (assuming your on linux).

Tl;Dr; The lost hashing time on a stale block is ONLY logged if an actual stale share is found (which depending on difficulty and hashrate could be every 100-100000 times). So multiply what your seeing by 100-1000000 times.

@fireice-uk Since (block 11' diff + total_chain_diff) > (block 11 diff + total_chain_diff) chain with block 11' is longer and the rest of the network reorgs accordingly.

Yea.. your stale share just caused an orphan block for some pool somewhere, now its just an asshole move to mine stale shares. Your causing orphan blocks for legit pools that are small and community driven. Also it does not help the network, that stale share could very likely have been the next valid block, had you done the PoW on the new blocktemplate.

JerichoJones commented 6 years ago

I need more popcorn.

fireice-uk commented 6 years ago

Your causing orphan blocks for legit pools that are small and community driven.

:'( I will let you donate your hashrate to a mom&pop pool like nicehash then.

On a more serious note, do you know a saying "Better to remain silent and be thought a fool than speak and remove all doubt."

Sorry, I just can't say it with a straight face, "mom&pop community owned pool". LOL. Thanks for brightening up my evening m8.

CircusDad commented 6 years ago

I stand corrected. Being reported as a "Job not found" means that the miner found the hash of proper difficulty (share) during that one second and thus had the whole share rejected. Per @borzaka's stats, it probably took him about 46 seconds on average to find that hash and it will probably be another 46 seconds before he finds another.

He only spent 1 second finishing his last assignment but, depending how you do the 'sunk cost' probability math, he lost not 1 second of mining credit but rather ~46 seconds of mining credit (his average share time)

To use @borzaka latest results,

That is a bit more significant then I stated before .

I happen to agree with @fireice-uk that a pool should credit for all assigned work that is performed. But I do think that since we know that nicehash doesn't, perhaps it is worth a "FastJobSwitch" feature that automatically becomes active as part of what it means when "nicehash" is set to true.

JerichoJones commented 6 years ago

IOW, Nicehash blows.

fireice-uk commented 6 years ago

@CircusDad

But I do think that since we know that nicehash doesn't, perhaps it is worth a "FastJobSwitch" feature that automatically becomes active as part of what it means when "nicehash" is set to true.

I would have two objections to that:

My prediction is that nicehash will drop support for Monero anyway, so this whole debate may be moot.