Title: Extremely high bitcoind getblocktemplate latency Post by: lenny_ on May 17, 2013, 01:08:45 AM Hi guys,
I have priority issue with bitcoind latency and p2pool running with it. p2pool link: lenny.dnsd.me:9332 I have dedicated hardware for running bitcoind 24/7 node and p2pool with it. That's small server based on AMD APU A10 + SSD, was working nicely for months, till yesterday. My bitcoind node is literally flooded by hoax transactions, like this: https://blockchain.info/tx/7227c9d392166fdcd917f39da2def36bcf69b437d90e349d73a48952c0fbdd69 https://blockchain.info/tx/292d1d7ff7ece8eb67b4bf3c2f523736679c616fce8216bf37ac23edec6e0e03 1 single transaction, nice miner fee included (1.46 USD actually), but it have over two thousands outputs and 100 KB in size! It's like a fishhook, whoever will take it, will loose seconds of latency. Bitcoind latency is at ~ 4s right now, for months it was at 0.3s. About 18 hours ago my latency went extremely high up to 7s and till then, network is under attack of these hoax transactions. Exactly same problem has been reported by my collegues at forum.bitcoin.pl. They showed be their stats and same latency issues (bitcoind latency at 3s or worse, like in my case). Latency that high makes mining on my local p2pool node unprofitable. My bitcoin.conf: Code: (...) How to filter these transactions? :o Title: Re: Extremely high bitcoind getblocktemplate latency Post by: zvs on May 17, 2013, 02:59:09 AM Hi guys, I have priority issue with bitcoind latency and p2pool running with it. p2pool link: lenny.dnsd.me:9332 I have dedicated hardware for running bitcoind 24/7 node and p2pool with it. That's small server based on AMD APU A10 + SSD, was working nicely for months, till yesterday. My bitcoind node is literally flooded by hoax transactions, like this: https://blockchain.info/tx/7227c9d392166fdcd917f39da2def36bcf69b437d90e349d73a48952c0fbdd69 https://blockchain.info/tx/292d1d7ff7ece8eb67b4bf3c2f523736679c616fce8216bf37ac23edec6e0e03 1 single transaction, nice miner fee included (1.46 USD actually), but it have over two thousands outputs and 100 KB in size! It's like a fishhook, whoever will take it, will loose seconds of latency. Bitcoind latency is at ~ 4s right now, for months it was at 0.3s. About 18 hours ago my latency went extremely high up to 7s and till then, network is under attack of these hoax transactions. Exactly same problem has been reported by my collegues at forum.bitcoin.pl. They showed be their stats and same latency issues (bitcoind latency at 3s or worse, like in my case). Latency that high makes mining on my local p2pool node unprofitable. My bitcoin.conf: Code: (...) How to filter these transactions? :o blockmaxsize 500kb would limit transaction max size to 50kb, wouldnt it? so those transactions wouldnt even be included in your block? nm, it'd limit it to 100kb. so those 100kb transactions i see would be included you could lower your maxblocksize to something lower =p Title: Re: Extremely high bitcoind getblocktemplate latency Post by: Syke on May 17, 2013, 05:42:23 AM Wow, that is one very bad transaction.
Title: Re: Extremely high bitcoind getblocktemplate latency Post by: Syke on May 17, 2013, 04:32:48 PM Code: blockmaxsize=250000 I'm going to try this. I can't allow those monster transactions. Title: Re: Extremely high bitcoind getblocktemplate latency Post by: Mike Hearn on May 17, 2013, 05:02:50 PM A quick hack would be to adjust this line:
static const unsigned int MAX_STANDARD_TX_SIZE = MAX_BLOCK_SIZE_GEN/5; and increase the 5 to something bigger, like 15. This is less harmful than reducing the max block size. However, the real fix is to profile bitcoind and find out where it's spending all its time. It shouldn't take multiple seconds to format a block, that implies poor algorithmic complexity in some part of CreateBlock (which wouldn't surprise me at all and someone probably already knows where the issues are). It'd be much better to find out what's going on there and just fix it. Title: Re: Extremely high bitcoind getblocktemplate latency Post by: wtogami on May 17, 2013, 08:00:46 PM Use bitcoin-0.8.2-rc1. The dust protection will reject transactions like those you linked.
Title: Re: Extremely high bitcoind getblocktemplate latency Post by: Syke on May 18, 2013, 05:53:16 AM Use bitcoin-0.8.2-rc1. The dust protection will reject transactions like those you linked. 8.2rc1 helps a little, but whatever transactions are still floating around are causing significant performance issues to gtblocktemplate. Title: Re: Extremely high bitcoind getblocktemplate latency Post by: furball on May 18, 2013, 11:13:02 AM Check out the p2pool thread (https://bitcointalk.org/index.php?topic=18313.0) for a great solution to this from user Prattler...worked for me.
Title: Re: Extremely high bitcoind getblocktemplate latency Post by: Syke on May 18, 2013, 10:43:33 PM Check out the p2pool thread (https://bitcointalk.org/index.php?topic=18313.0) for a great solution to this from user Prattler...worked for me. Yes, the settings suggested solved my performance issues. Quote blockmaxsize=250000 # default: 250000 blockprioritysize=27000 # default: 27000 mintxfee=0.0002 # default: 0.0001 minrelaytxfee=0.0002 # default: 0.0001 Title: Re: Extremely high bitcoind getblocktemplate latency Post by: lenny_ on May 20, 2013, 05:26:59 AM I compiled Bitcoin version v0.8.2rc1-2-gf7f9403-beta and changed settings in bitcoin.conf to these above. Will see how it goes.
Title: Re: Extremely high bitcoind getblocktemplate latency Post by: Subo1977 on May 20, 2013, 09:35:56 AM Check out the p2pool thread (https://bitcointalk.org/index.php?topic=18313.0) for a great solution to this from user Prattler...worked for me. Yes, the settings suggested solved my performance issues. Quote blockmaxsize=250000 # default: 250000 blockprioritysize=27000 # default: 27000 mintxfee=0.0002 # default: 0.0001 minrelaytxfee=0.0002 # default: 0.0001 Title: Re: Extremely high bitcoind getblocktemplate latency Post by: Prattler on May 20, 2013, 09:42:53 AM Code: blockmaxsize=250000 # default: 250000 You are incorrect. Money amounts need to be as floats in BTC. Code: if (mapArgs.count("-minrelaytxfee")) ParseMoney parses strings, but only accepts float representations in BTC, like "0.0005". "50000" will get parsed as 50000 BTC. See https://github.com/bitcoin/bitcoin/blob/master/src/util.cpp#L417 (https://github.com/bitcoin/bitcoin/blob/master/src/util.cpp#L417). Will edit if someone corrects me. Title: Re: Extremely high bitcoind getblocktemplate latency Post by: lenny_ on May 27, 2013, 05:43:16 PM Code: Linux 3.2.0-4-amd64 x86_64 GNU/Linux p2pool Bitcoind GetBlockTemplate Latency from last 24hours: Code: 0.241s Title: Re: Extremely high bitcoind getblocktemplate latency Post by: Pieter Wuille on May 27, 2013, 10:40:43 PM 0.8.2rc2 and above have a patch that makes getblocktemplate significantly faster (I've seen a factor 10 in some cases).
Title: Re: Extremely high bitcoind getblocktemplate latency Post by: lenny_ on May 28, 2013, 12:10:32 PM 0.8.2rc2 and above have a patch that makes getblocktemplate significantly faster (I've seen a factor 10 in some cases). That's true, like it was in my case. From couple of seconds it went down to 0.21s (24h avg), with default settings. |