jtgrassie / monero-pool

A Monero mining pool server written in C
BSD 3-Clause "New" or "Revised" License
345 stars 125 forks source link

75-100% timed out shares when surpassing 50 MH/s #52

Closed SpaceCreamed closed 3 years ago

SpaceCreamed commented 3 years ago

Thanks for your previous replies. I run a rather large farm for RandomX and have noticed that the pool will start timing out a large portion of my shares once I surpass 50 MH/s or so. (I run 91 MH/s). It seems to work best when sitting between 20-30 MH/s. Any ideas?

jtgrassie commented 3 years ago

Firstly, the hashrate thrown at a pool has no bearing whatsoever. It's all about the amount of connections.

Secondly, if you have lots of connections to the pool, there are system specific things you have to change. For example, Ubuntu (and others) typically set the limit of open files to 1024, thus if you don't change these limits, you're only going to be able to serve about 1k worker connections. This is because each socket connection is an open file and stratum miners open persistent TCP connections.

Lastly, in future, please include specific details such log/error output, connection count etc.