moopless / stratum-mining-litecoin

This fork is no longer maintained. Please use https://github.com/ahmedbodi/stratum-mining
Other
38 stars 35 forks source link

Slow work after 10-15 minutes of running #82

Closed astalavister closed 10 years ago

astalavister commented 10 years ago

Some strange thing happened. WIth about 120-150 mh pool, stratum start working very slow after some time. i.e blocknotify script running for about 5-15 seconds. As this pool of fastcoin blockchain, with 12seconds target, its very bad :( After restarting it work perfect for next 10-20 minutes and slows again. Pool on fast server, with SSD and a lot of ram, processor loaded for 5-10% when stratum doesn't work with needed speed. Logs doesnt help much. There are no any errors. Sometimes there are continious records like that

2013-12-26 12:46:28,367 INFO interfaces # Block 00000000c947c94abc2a1fa77998b6c99f734644ac74987c7a6a4f195f7d8024 ACCEPTED 2013-12-26 12:46:28,368 INFO DBInterface # Updating Found Block Share Record 2013-12-26 12:46:28,368 INFO DBInterface # Inserting 10 Share Records 2013-12-26 12:46:28,439 INFO DBInterface # Inserting 10 Share Records 2013-12-26 12:46:28,916 INFO DBInterface # Inserting 10 Share Records a lot of that, sometimes 50-100, .........

With no any actual shares log between "Inserting" lines.

beluca commented 10 years ago

in conf DB_LOADER_REC_MAX = x

For what i see "x" is at 10, you should put that a lot higer, try 500 or 1000 or 2000

astalavister commented 10 years ago

Unfortunately that not helped much, Changed my server to to another fork (ahmed....) and all just fine now. Think there some ulimit -n restriction fired on max opened files, but this server doesnt write it into logs.