Bitcoin Forum
December 13, 2024, 01:53:01 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 [270] 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 ... 814 »
  Print  
Author Topic: [1500 TH] p2pool: Decentralized, DoS-resistant, Hop-Proof pool  (Read 2591950 times)
K1773R
Legendary
*
Offline Offline

Activity: 1792
Merit: 1008


/dev/null


View Profile
May 17, 2013, 09:28:29 PM
 #5381

I'm having an issue with p2pool and my router. It's not a show-stopper but I was wondering if someone might have an idea what's going on or be able to work with me to work out what is going on.

Basically, anytime I turn on QOS, I appear to stop doing any useful work. cgminer trundles along, fans spin, heat generated, Unfortunately, it appears that that's all wasted. the debug output of p2pool says that it's punishing shares for being stale. On the pools graph page, the incoming part of peers and the p2p in on traffic rate drop to zero. For whatever reason, it looks like peers are no longer supplying me with useful information (?)

I've even set things so that p2pool and bitcoind are QOSed to the highest speed category just in case they were getting squashed that way but it still gives the same result.

I can leave QOS off for now but I'd like to get this working properly. I'm using Tomato so the configuration is fairly straightforward and easy. I'll post some pictures in a little bit for illustration. I can perform packet captures and other good stuff but I'm not up on the p2pool networking.

the only thing i've ever used in windows that i've found did a proper job of managing bandwidth was netlimiter
the only thing that did almost a proper job is "format c: -y"

[GPG Public Key]
BTC/DVC/TRC/FRC: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
zvs
Legendary
*
Offline Offline

Activity: 1680
Merit: 1000


https://web.archive.org/web/*/nogleg.com


View Profile WWW
May 17, 2013, 10:26:24 PM
 #5382

I'm having an issue with p2pool and my router. It's not a show-stopper but I was wondering if someone might have an idea what's going on or be able to work with me to work out what is going on.

Basically, anytime I turn on QOS, I appear to stop doing any useful work. cgminer trundles along, fans spin, heat generated, Unfortunately, it appears that that's all wasted. the debug output of p2pool says that it's punishing shares for being stale. On the pools graph page, the incoming part of peers and the p2p in on traffic rate drop to zero. For whatever reason, it looks like peers are no longer supplying me with useful information (?)

I've even set things so that p2pool and bitcoind are QOSed to the highest speed category just in case they were getting squashed that way but it still gives the same result.

I can leave QOS off for now but I'd like to get this working properly. I'm using Tomato so the configuration is fairly straightforward and easy. I'll post some pictures in a little bit for illustration. I can perform packet captures and other good stuff but I'm not up on the p2pool networking.

the only thing i've ever used in windows that i've found did a proper job of managing bandwidth was netlimiter
the only thing that did almost a proper job is "format c: -y"

what, netlimiter?

why, because it installs some driver that you can disable on startup?

i don't get the big deal with it
Richy_T
Legendary
*
Offline Offline

Activity: 2646
Merit: 2349


1RichyTrEwPYjZSeAYxeiFBNnKC9UjC5k


View Profile
May 17, 2013, 11:41:44 PM
 #5383

In case anyone isn't familiar with Tomato, it is a specialized Linux distribution that runs on certain hardware routers.

Other connections appear to occur with no issues (unless I goof the configuration) and if I look in the details, I can see connections between external hosts and my own on the bitcoind and p2pool ports. I can't think it would be anything about Python that would be causing the issue. Hard to see what about QOS would be an issue since it's basically just prioritizing packets. But there must be more to it.

1RichyTrEwPYjZSeAYxeiFBNnKC9UjC5k
K1773R
Legendary
*
Offline Offline

Activity: 1792
Merit: 1008


/dev/null


View Profile
May 18, 2013, 12:12:26 AM
 #5384

I'm having an issue with p2pool and my router. It's not a show-stopper but I was wondering if someone might have an idea what's going on or be able to work with me to work out what is going on.

Basically, anytime I turn on QOS, I appear to stop doing any useful work. cgminer trundles along, fans spin, heat generated, Unfortunately, it appears that that's all wasted. the debug output of p2pool says that it's punishing shares for being stale. On the pools graph page, the incoming part of peers and the p2p in on traffic rate drop to zero. For whatever reason, it looks like peers are no longer supplying me with useful information (?)

I've even set things so that p2pool and bitcoind are QOSed to the highest speed category just in case they were getting squashed that way but it still gives the same result.

I can leave QOS off for now but I'd like to get this working properly. I'm using Tomato so the configuration is fairly straightforward and easy. I'll post some pictures in a little bit for illustration. I can perform packet captures and other good stuff but I'm not up on the p2pool networking.

the only thing i've ever used in windows that i've found did a proper job of managing bandwidth was netlimiter
the only thing that did almost a proper job is "format c: -y"

what, netlimiter?

why, because it installs some driver that you can disable on startup?

i don't get the big deal with it
i said on win only "format c: -y" does work almost proper Wink

[GPG Public Key]
BTC/DVC/TRC/FRC: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
gyverlb
Hero Member
*****
Offline Offline

Activity: 896
Merit: 1000



View Profile
May 18, 2013, 12:40:29 AM
 #5385

In case anyone isn't familiar with Tomato, it is a specialized Linux distribution that runs on certain hardware routers.

Other connections appear to occur with no issues (unless I goof the configuration) and if I look in the details, I can see connections between external hosts and my own on the bitcoind and p2pool ports. I can't think it would be anything about Python that would be causing the issue. Hard to see what about QOS would be an issue since it's basically just prioritizing packets. But there must be more to it.

Depends how Tomato handles QoS. You can block some traffic if you give higher priority and allow another to saturate your link. QoS isn't simple at all (you must define many compromises to make it work), if your tools make you think it is simple they probably do it wrong.

P2pool tuning guide
Trade BTC for €/$ at bitcoin.de (referral), it's cheaper and faster (acts as escrow and lets the buyers do bank transfers).
Tip: 17bdPfKXXvr7zETKRkPG14dEjfgBt5k2dd
zvs
Legendary
*
Offline Offline

Activity: 1680
Merit: 1000


https://web.archive.org/web/*/nogleg.com


View Profile WWW
May 18, 2013, 05:04:59 AM
 #5386

I'm having an issue with p2pool and my router. It's not a show-stopper but I was wondering if someone might have an idea what's going on or be able to work with me to work out what is going on.

Basically, anytime I turn on QOS, I appear to stop doing any useful work. cgminer trundles along, fans spin, heat generated, Unfortunately, it appears that that's all wasted. the debug output of p2pool says that it's punishing shares for being stale. On the pools graph page, the incoming part of peers and the p2p in on traffic rate drop to zero. For whatever reason, it looks like peers are no longer supplying me with useful information (?)

I've even set things so that p2pool and bitcoind are QOSed to the highest speed category just in case they were getting squashed that way but it still gives the same result.

I can leave QOS off for now but I'd like to get this working properly. I'm using Tomato so the configuration is fairly straightforward and easy. I'll post some pictures in a little bit for illustration. I can perform packet captures and other good stuff but I'm not up on the p2pool networking.

the only thing i've ever used in windows that i've found did a proper job of managing bandwidth was netlimiter
the only thing that did almost a proper job is "format c: -y"

what, netlimiter?

why, because it installs some driver that you can disable on startup?

i don't get the big deal with it
i said on win only "format c: -y" does work almost proper Wink

oh, lots of netlimiter haters out there

but this is true
Xenotron
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
May 18, 2013, 07:14:08 AM
 #5387

Is there any way to avoid high CPU load by bitcoin-qt? Also latency skyrocketing to 14s...
Tried 11.4 and it seems there is a memory leak. Now started 11.2 - will see.
azw409
Member
**
Offline Offline

Activity: 73
Merit: 10


View Profile
May 18, 2013, 08:57:28 AM
 #5388

The latency appears to be in bitcoin-qt because if I restart p2pool, the latency is still high > 10s on restart whereas if I restart both bitcoin-qt and p2pool the latency returns to around 0.5s.

So I'm not sure that using an earlier version of p2pool will have any bearing on this.

azw409
Member
**
Offline Offline

Activity: 73
Merit: 10


View Profile
May 18, 2013, 09:02:05 AM
 #5389

Maybe the issue with latency is nothing to do with the software but extremely large blocks :-

https://bitcointalk.org/index.php?topic=207790.0

Xenotron
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
May 18, 2013, 09:18:30 AM
 #5390

Maybe the issue with latency is nothing to do with the software but extremely large blocks :-

https://bitcointalk.org/index.php?topic=207790.0
Nope. I have started to use blockmaxsize=5000 to see what will be changed. And so far there is no big difference.
bitcoin-qt continues to increase RAM consumption even when new block is found.
I can see on Graphs that when Bitcoin-qt releases occupied RAM then latency drops to its usual values.
Prattler
Full Member
***
Offline Offline

Activity: 192
Merit: 100


View Profile
May 18, 2013, 09:50:09 AM
Last edit: May 18, 2013, 11:27:07 AM by Prattler
 #5391

I can confirm the high getblocktemplate latency is bitcoind related.

1. Upgrade bitcoind to the latest possible version (https://bitcointalk.org/index.php?topic=201124.0)

2. With p2pool we are real miners and make our own blocks, so edit the important settings in your bitcoin.conf!
Code:
blockmaxsize=250000 # default: 250000

blockprioritysize=27000 # default: 27000

mintxfee=0.0002 # default: 0.0001

minrelaytxfee=0.0002 # default: 0.0001
Setting mintxfee and minrelaytxfee higher than default will increase your getblocktemplate latency. It's a matter of opinion, but I think those defaults are too low for the network, so, by increasing them a bit, you are also benefiting the network. I would personally recommend setting both to 0.0005.

Edit: what happens is that lots of free and low fee transactions accumulate on the mempool, which increases getblocktemplate latency, due to an algorithmic flaw of bitcoind's getblocktemplate. It might not matter for most pools, but p2pool is more dependant on this. Setting mintxfee/minrelaytxfee above default 0.0001 reduces the accumulation of mempool garbage. Restarting bitcoind also clears the mempool and helps for a short time.
mdude77
Legendary
*
Offline Offline

Activity: 1540
Merit: 1001



View Profile
May 18, 2013, 10:13:24 AM
Last edit: May 18, 2013, 10:28:28 AM by mdude77
 #5392

I can confirm the high getblocktemplate latency is bitcoind related.

1. Upgrade bitcoind to the latest possible version (https://bitcointalk.org/index.php?topic=201124.0)

2. With p2pool we are real miners and make our own blocks, so edit the important settings in your bitcoin.conf!
Code:
blockmaxsize=250000 # default: 250000

blockprioritysize=27000 # default: 27000

mintxfee=0.0002 # default: 0.0001

minrelaytxfee=0.0002 # default: 0.0001
Setting mintxfee and minrelaytxfee higher than default will increase your getblocktemplate latency. It's a matter of opinion, but I think those defaults are too low for the network, so, by increasing them a bit, you are also benefiting the network. I would personally recommend setting both to 0.0005.

Until bitcoind gets optimized, getblocktemplate just gets too slow with the default minrelaytxfee=0.0001.

Maybe this is hardware or environment related?  I'm still using default settings and latest p2pool.  My stale rate is always 10-15% less than the pool's rate.  Yes, according to p2pool my bitcoind latency is at 10s.  So what?

M

EDIT: I restarted bitcoind, it did significantly reduce getblocktemplate latency.  Don't see a big deal here, have to restart things regularly anyhow.  Just had to restart cgminer because it went funny on me.  Presumably hit the AMD driver time limit.

I mine at Kano's Pool because it pays the best and is completely transparent!  Come join me!
furball
Full Member
***
Offline Offline

Activity: 172
Merit: 100



View Profile
May 18, 2013, 11:06:48 AM
 #5393

I can confirm the high getblocktemplate latency is bitcoind related.

1. Upgrade bitcoind to the latest possible version (https://bitcointalk.org/index.php?topic=201124.0)

2. With p2pool we are real miners and make our own blocks, so edit the important settings in your bitcoin.conf!
Code:
blockmaxsize=250000 # default: 250000

blockprioritysize=27000 # default: 27000

mintxfee=0.0002 # default: 0.0001

minrelaytxfee=0.0002 # default: 0.0001
Setting mintxfee and minrelaytxfee higher than default will increase your getblocktemplate latency. It's a matter of opinion, but I think those defaults are too low for the network, so, by increasing them a bit, you are also benefiting the network. I would personally recommend setting both to 0.0005.

Until bitcoind gets optimized, getblocktemplate just gets too slow with the default minrelaytxfee=0.0001.

Maybe this is hardware or environment related?  I'm still using default settings and latest p2pool.  My stale rate is always 10-15% less than the pool's rate.  Yes, according to p2pool my bitcoind latency is at 10s.  So what?

M

EDIT: I restarted bitcoind, it did significantly reduce getblocktemplate latency.  Don't see a big deal here, have to restart things regularly anyhow.  Just had to restart cgminer because it went funny on me.  Presumably hit the AMD driver time limit.


I've been running with the blockmaxsize and mintxfee setting per above for the last 12 hours and it didn't seem to help. I just added in the blockprioritysize and minrelaytxfee settings and it looks to have made a huge difference.

Went from 5s latency to sub 1s.

Thanks so much Prattler...awesome post!
daemondazz
Sr. Member
****
Offline Offline

Activity: 448
Merit: 250



View Profile
May 19, 2013, 12:14:48 AM
 #5394

None of the above changes have made any difference for my node - I'm currently running at 11s Get Work latency. With a 10s block time, I can't help but think I'm never going to actually solve a share.

Restarting bitcoind drops the latency back down, but it climbs back up to >10s in about half hour. I'm now restarting once per hour from cron to attempt to get some period where I might be able to get some valid work.

This is with version 0.8.1-precise2 from http://ppa.launchpad.net/bitcoin/bitcoin/ubuntu.

Any other ideas?

Computers, Amateur Radio, Electronics, Aviation - 1dazzrAbMqNu6cUwh2dtYckNygG7jKs8S
mdude77
Legendary
*
Offline Offline

Activity: 1540
Merit: 1001



View Profile
May 19, 2013, 12:18:27 AM
 #5395

None of the above changes have made any difference for my node - I'm currently running at 11s Get Work latency. With a 10s block time, I can't help but think I'm never going to actually solve a share.

Restarting bitcoind drops the latency back down, but it climbs back up to >10s in about half hour. I'm now restarting once per hour from cron to attempt to get some period where I might be able to get some valid work.

This is with version 0.8.1-precise2 from http://ppa.launchpad.net/bitcoin/bitcoin/ubuntu.

Any other ideas?

I'm at 1s latency now.  It was about 8-10 hours ago that I restarted it.  Must behave differently on linux than it does windows.  Or it's hardware related?  What horsepower do you have under the hood?  using an i7 on an SSD with 12gb of ram here.

M

I mine at Kano's Pool because it pays the best and is completely transparent!  Come join me!
TurdHurdur
Full Member
***
Offline Offline

Activity: 216
Merit: 100


View Profile
May 19, 2013, 12:35:38 AM
Last edit: May 19, 2013, 06:38:29 AM by TurdHurdur
 #5396

None of the above changes have made any difference for my node - I'm currently running at 11s Get Work latency. With a 10s block time, I can't help but think I'm never going to actually solve a share.

Restarting bitcoind drops the latency back down, but it climbs back up to >10s in about half hour. I'm now restarting once per hour from cron to attempt to get some period where I might be able to get some valid work.

This is with version 0.8.1-precise2 from http://ppa.launchpad.net/bitcoin/bitcoin/ubuntu.

Any other ideas?

Code:
mintxfee=20000

...in bitcoin.conf worked pretty good for me, still get some fee'd transactions in and latency is under .1 seconds.

Edit: it ceased being effective, unfortunate...
gyverlb
Hero Member
*****
Offline Offline

Activity: 896
Merit: 1000



View Profile
May 19, 2013, 02:39:13 AM
 #5397

Here's the settings I'm currently trying (too soon to be sure it works).
This removes any room reserved for high priority transaction (using old inputs).

Code:
blockminsize=0
blockprioritysize=0
mintxfee=0.001

mintxfee might have to be raised to avoid the current set of problematic transactions (I'm not sure how much they paid by kB).

P2pool tuning guide
Trade BTC for €/$ at bitcoin.de (referral), it's cheaper and faster (acts as escrow and lets the buyers do bank transfers).
Tip: 17bdPfKXXvr7zETKRkPG14dEjfgBt5k2dd
zvs
Legendary
*
Offline Offline

Activity: 1680
Merit: 1000


https://web.archive.org/web/*/nogleg.com


View Profile WWW
May 19, 2013, 06:49:13 AM
Last edit: May 19, 2013, 06:59:58 AM by zvs
 #5398

blockminsize=0
blockprioritysize=0
blockmaxsize=5000     (you could reduce this to probably 2000 or 3000 and still pick up the odd super high transaction fee transfer.  *1200 or below will always miss it, as it'll just have the 1 transaction from block)
minrelaytxfee=0.0005    (i assume that one works, i make the change in the source, which would be nMinRelayTxFee = 50000)

the post about increasing the relay fees = higher latency is wrong

ofc, if all blocks came from p2pool then we'd have issues if everyone had ^^^ those settings

i guess 'mintxfee' would be the creation tx fee, which you probably wont want to change unless you want to increase fees on your own transactions.  i assume most pools run with the default setting of 0.0001

last edit, i think;

set maxblocksize to 1000.  if you still have latency issues, then the issue lies somewhere other than with bitcoind and p2pool
daemondazz
Sr. Member
****
Offline Offline

Activity: 448
Merit: 250



View Profile
May 19, 2013, 07:20:02 AM
 #5399

I'm at 1s latency now.  It was about 8-10 hours ago that I restarted it.  Must behave differently on linux than it does windows.  Or it's hardware related?  What horsepower do you have under the hood?  using an i7 on an SSD with 12gb of ram here.

I'm running on a HP Blade, quad core Xeon on SAS drives, so computing power shouldn't be an issue Smiley

Not sure what else to try...

Computers, Amateur Radio, Electronics, Aviation - 1dazzrAbMqNu6cUwh2dtYckNygG7jKs8S
azw409
Member
**
Offline Offline

Activity: 73
Merit: 10


View Profile
May 19, 2013, 07:47:30 AM
 #5400

This current round is taking a long time :-(
Pages: « 1 ... 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 [270] 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 ... 814 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!