notgiven688 / webminerpool

Complete sources for a monero webminer.
262 stars 174 forks source link

25% hashrate drop since fork #89

Closed risoncer closed 5 years ago

risoncer commented 6 years ago

Excellent work with the miner, but since the fork on oct 18th the hashrate dropped by about 25%. Can it be fixed? Perhaps for a bounty? Thanks!

notgiven688 commented 6 years ago

I wish it was that easy. As far as I can see Coinhive also has that problem -> I guess there are a few more people working on their project and they did not find a solution.

For me it looks like the new instructions added to v2 do cost additional computing time, CPUs and GPUs utilized by the usual desktop miners overcome the problem by out-of-order execution -> same hash rate but more power consumption.

At the moment we have a 20% overall (Monero network) hashrate drop compared to pre-fork.

I have limited time to work on improving the algorithm at the moment. We could start a bounty. I am willing to add something from the general donation fund. I could create a Monero address and we collect XMR there. If nobody claims the bounty after a certain time everyone gets paid back (or even better: I run away with the XMR :) )

Feedback welcome!

PiTi2k5 commented 6 years ago

There are less options for optimize cn2 for the moment. But the good thing is: Monero Network has an hashdrop = lower overall difficulty = more rewards for less mining hashrate, so right now you has a higher reward with cn2. Bounties are a good thing for new ideas, features and improvements.

risoncer commented 6 years ago

@PiTi2k5 , I am profiting from the miner and donating hashrate to @notgiven688, so a bounty to get the previous hashrate to maximize profit is also a good thing.

I understand that due to changes to the algorithm it might be impossible, but if anyone can do it I'd be willing to add to the bounty around 4 XMR.

PiTi2k5 commented 6 years ago

No one can get the previous hashrate through webmining. Native miners has the same problem, CNv2 has increased compute requirements (15-20% hashrate drops/decrease - you see it on monero network hashrate). Emscripten/webassambly needs a performance boost, because they can only run on 60/65% of an native program.

slayerulan commented 6 years ago

I will add +4.5 XMR to bounty if anyone successfully fixes that problem

Btw https://developers.google.com/web/updates/2018/10/wasm-threads it has worth to take a look

notgiven688 commented 6 years ago

@slayerulan @risoncer Should I open/manage a fund address? ~ 10 XMR will definitely be an incentive for wasm developers. Think about a time-span and some rules. If the bounty is not claimed you get paid back.