Bitcoin Forum
November 16, 2024, 10:37:45 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 [407] 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 ... 814 »
  Print  
Author Topic: [1500 TH] p2pool: Decentralized, DoS-resistant, Hop-Proof pool  (Read 2591900 times)
PatMan
Hero Member
*****
Offline Offline

Activity: 924
Merit: 1000


Watch out for the "Neg-Rep-Dogie-Police".....


View Profile WWW
March 28, 2014, 11:50:07 AM
 #8121

Hey how long are the p2pool shares valid for?

3 days I think  Smiley

"When one person is deluded it is called insanity - when many people are deluded it is called religion" - Robert M. Pirsig.  I don't want your coins, I want change.
Amazon UK BTC payment service - https://bitcointalk.org/index.php?topic=301229.0 - with FREE delivery!
http://www.ae911truth.org/ - http://rethink911.org/ - http://rememberbuilding7.org/
roy7
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250


View Profile
March 28, 2014, 02:49:25 PM
Last edit: March 28, 2014, 04:14:13 PM by roy7
 #8122

To elaborate on my illogical response...

things that don't make sense to me:

- You adjust your pseudo share size to adjust the share difficulty on the pool.  That means you get less shares, which means you keep less payout.  Why do that?  Wouldn't you be better off pointing 10% of your hashrate to the pool and the other 90% somewhere else?

Pseudo share size has nothing to do with share difficulty on the pool or payouts. Those are the little Accept X/Y your miner prints every few seconds or so. It just lets the pool know you are alive and plot graphs, etc. To actually get paid you need to submit a share where the difficulty is higher than the minimum share difficulty for the pool (or higher than your share difficulty target if it's higher than the minimum).

To get more or less pseudo shares you use +. For instance, if you run a local node you could spam it with tiny shares by adding +1 to your payment address. Has no effect on income.

To get more or less real shares you use /. Any /DIFF set below the network minimum is ignored, and your target diff to get on share chain is the minimum. Any /DIFF higher than the network minimum means you'll get on the share chain less often, but the shares are more valuable (your target share difficulty is the value stored to calculate your payout, all shares on share chain do not have equal value, maybe this is your confusion?). The maximum target diff you can set is 30x the network minimum. If you set it higher, it'll adjust every time the minimum target adjusts.

- Unless sharesize matters when you adjust your pseudo share size.  If sharesize does matter, then how can it not affect the share difficulty if 6 small shares an hour or one large share every hour has the same result?

In a normal PPLNS pool, the payment window is all of the shares of work submitted (what p2pool calls pseudo shares), and there is only one type of share. All work submitted is logged and is in the payment window for a certain amount of work N. N is usually some multiple of the coin's difficulty.

In p2pool, the shares a normal pool would count are ignored and only shares of a certain difficulty target are counted. This is because there's no central database to record all of the info. We're decentralized and nodes can't trust each other. So the payment database, instead of being MySQL or similar, becomes a bitcoin style block chain, we call it the share chain. The share chain contents are the PPLNS payment database for p2pool. It has a specific target speed just like bitcoin. The share chain target is 30 seconds. The minimum difficulty to get a share onto the share chain is adjusted similar to bitcoin's difficulty algorithm, so the share chain grows by one share (block) every 30 seconds.

So the minimum difficulty for shares to get on the share chain is soley a factor of time. How long is it taking to add shares to the share chain? Just like bitcoin itself, the diff adjusts so the target rate is hit. The contents of the shares on the share chain don't matter.

(Side note: It's endlessly confusing that "share" might be a pseudo share, a real paying share that is recorded on share chain, or a "block" on the p2pool sharechain.)

So your question above, if you are talking about pseudo shares, it doesn't matter.

The issue is that the share chain has a finite number of "shares" (blocks) available. When it's full the older ones are expired. Even if the luck has been bad pool hash rate has dropped to where we aren't finding N work before the share chain length maximum is hit, opposed to the PPLNS window on a normal pool would still be counting those shares. This is a separate issue/concern of mine.

To even get on the share chain at all, you need to find a share (in your client) with a difficulty that is higher than your target share difficulty. I'll give an example below.

- If the time between shares affects share difficulty, that means it's based entirely on luck!  If the pool hashrate remains constant, and luck goes sour and people start getting less shares, does the share difficulty suddenly decrease?  Likewise, if luck increases, does share difficulty increase?

Yes, and this is exactly how bitcoin works as well. Difficulty is set based on actual shares found. Real hash rate doesn't matter, it's only the observed hash rate from actual found blocks that changes the difficulty target.

So why bother with /DIFF and using a higher one than you need to? Take a small coin with a p2pool share chain target of 1 minute, and two miners:

If Miner A has speed S and miner B has speed 99*S and are both mining on the p2pool node with the same difficulty targets (for simplicity ignore there being a vardiff, say both miners use /1, and the minimum share diff is a tiny number like on a scrypt coin) then A will find 1 out of every 100 shares and B will find 99 out of every 100 shares in some period of time. We want to find one share per minute for the share chain, so the minimum network difficulty will adjust so that shares come in once a minute. Thus, miner A finds 1 share every 100 minutes and miner B finds 99 shares every 100 minutes. As the p2pool network speed (or just miner B's speed) grows, miner A's rate of finding shares will get slower and slower. These shares all have a value of "1" for our example.

If a paying block is found when we have these 100 shares in the share chain:
Miner A is paid 1 * 1 / 100 of the block reward = 1%
Miner B is paid 99 * 1 / 100 of the block reward = 99%

(The math is # of shares * value of shares / total share chain value, assuming each of a miner's shares have same value, it's actually a sum of each individual share value in practice.)

Now let's say miner B feels bad for miner A and wants to help reduce his variance on when he gets paid. So whereas miner A might be mining diff 1 shares, miner B is going to change over to ADDR/99 to mine diff 99 shares. There is a 30x cap, so p2pool will actually make /30 the maximum it will use.

Now, in a specific period of time, miner A will find S shares  and miner B will find 3.3*S shares (since his diff target is 30 times higher vs his 99x faster speed). With the network difficulty from up above, A is still finding 1 share every 100 minutes but now B is only finding 3.3 shares every 100 minutes instead of slightly less than 1 per minute. This means the share chain is way too slow. Network minimum difficulty will drop until both miners combined average 1 share per minute. Once adjusted, in this 100 minutes of much lower minimum difficulty, miner A will find about 23.25 shares for every 76.75 shares miner B finds (please pretend we can have fractional shares to make the math clean).

The advantage is that miner A now finds shares on the share chain every 4.3 minutes (100/23.25) instead of one every 100 minutes. You can see that's a massive drop in his wait time. Miner B only goes up to about 1.3 minutes per paying share. What happens to the payouts?

The total value of shares on the share chain are 23.25 * 1 + 76.75 * 30 = 2325.75

Miner A is paid 23.25 * 1 / 2325.75 of the block reward = 1%
Miner B is paid 76.75 * 30 / 2325.75 of the block reward = 99%

So the end result is that Miner B can increase his time per share from 1.01 minutes to 1.3 minutes in order to let Miner A drop his time per share from about 100 minutes to 4.3 minutes. The miners still make the same average income over time.

You can imagine how big this effect becomes between a large mining farm and a single 180GH Antminer S1 miner.

TLDR: Sorry.
mdude77
Legendary
*
Offline Offline

Activity: 1540
Merit: 1001



View Profile
March 29, 2014, 12:50:39 AM
 #8123

You can imagine how big this effect becomes between a large mining farm and a single 180GH Antminer S1 miner.

TLDR: Sorry.

Thanks for the detailed explanation.  I knew most of it already.  The part I definitely didn't know what that share size on the alt chain does matter.  That was one of the conclusions I'd reached when thinking about how changing your pseudo share size could help things.

M

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

Activity: 630
Merit: 501


View Profile
March 29, 2014, 03:07:48 AM
 #8124

Is anyone having issues with Bitcoind/Bitcoin-QT v0.9.0?

I updated my P2Pool to v0.9.0 and I am getting an error now after restarting the server that it's lost connection with Bitcoind. Yet up until this point, I upgraded it a day after v0.9.0 came out its been running fine and transactions have been flowing.

 

mdude77
Legendary
*
Offline Offline

Activity: 1540
Merit: 1001



View Profile
March 29, 2014, 04:46:29 AM
 #8125

Is anyone having issues with Bitcoind/Bitcoin-QT v0.9.0?

I updated my P2Pool to v0.9.0 and I am getting an error now after restarting the server that it's lost connection with Bitcoind. Yet up until this point, I upgraded it a day after v0.9.0 came out its been running fine and transactions have been flowing.

working fine here.

M

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

Activity: 4
Merit: 0


View Profile
March 29, 2014, 10:33:07 AM
 #8126

Is anyone having issues with Bitcoind/Bitcoin-QT v0.9.0?

I updated my P2Pool to v0.9.0 and I am getting an error now after restarting the server that it's lost connection with Bitcoind. Yet up until this point, I upgraded it a day after v0.9.0 came out its been running fine and transactions have been flowing.


It's working fine. I only notice that bitcoind getblock latency grows from 300ms to 800 - 900 ms.
Carlton Banks
Legendary
*
Offline Offline

Activity: 3430
Merit: 3080



View Profile
March 29, 2014, 04:33:35 PM
 #8127

Is anyone having issues with Bitcoind/Bitcoin-QT v0.9.0?

I updated my P2Pool to v0.9.0 and I am getting an error now after restarting the server that it's lost connection with Bitcoind. Yet up until this point, I upgraded it a day after v0.9.0 came out its been running fine and transactions have been flowing.


It's working fine. I only notice that bitcoind getblock latency grows from 300ms to 800 - 900 ms.

default -minblocksize has been altered to 750,000, if you override that you'll maybe get your lower latency back

Vires in numeris
roy7
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250


View Profile
March 31, 2014, 11:46:02 PM
 #8128

I've gone ahead and set up a public node for BTC to go along with my other couple coins.

http://us-east.royalminingco.com:9332/static/

The fee is .5% to pool and .5% donation to forrestv. This node has my patches related to helping small miners get less variance, and uses the interface which shows average "time to share" per-miner so you can see what's going on. Pseudo share vardiff is also set reasonably per miner so no ADDR+ tweaks are needed just for graph purposes. Next I want to fold in iongchun's miner-specific stats page, and add some extra charts/history/info to that.

It isn't like the world needs more public p2pool nodes, but I wanted to have at least one that I knew was using the changes I worked on for the alt coin pools. Smiley
smooth
Legendary
*
Offline Offline

Activity: 2968
Merit: 1198



View Profile
April 01, 2014, 04:33:40 AM
 #8129

I've gone ahead and set up a public node for BTC to go along with my other couple coins.

http://us-east.royalminingco.com:9332/static/

The fee is .5% to pool and .5% donation to forrestv. This node has my patches related to helping small miners get less variance, and uses the interface which shows average "time to share" per-miner so you can see what's going on. Pseudo share vardiff is also set reasonably per miner so no ADDR+ tweaks are needed just for graph purposes. Next I want to fold in iongchun's miner-specific stats page, and add some extra charts/history/info to that.

It isn't like the world needs more public p2pool nodes, but I wanted to have at least one that I knew was using the changes I worked on for the alt coin pools. Smiley

More public node are a very good thing. People get less local latency and are able to compete better with dedicated nodes, lowering the barrier to entry, so more p2pool participants.

Nice to see p2pool steadily growing in hash rate and network share BTW. We are back down to about one day per block, after getting close to two days per block a few weeks ago.
roy7
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250


View Profile
April 01, 2014, 05:11:28 AM
 #8130

I've gotta say an average share time of 5h40m hours compared to 1d8h block times (at the time I post) is better than I expected. At 6 shares per block found, and a SPREAD of 3, I'd average 18 shares at any given time once I've been mining for a few days. That'll drop if the pool hash rate grows, but atm, ~18 average blocks seems like plenty to make sure I'm paid on every block and my payments don't vary wildly. I'll need to actually see it in action first hand a few weeks, but personally I don't feel that is unacceptable variance at all.

It'll be nice if/when I can get some sort of miner-specific graph page up to plot this stuff over time and let you see visually at a glance your projected and real share values.
smooth
Legendary
*
Offline Offline

Activity: 2968
Merit: 1198



View Profile
April 01, 2014, 05:19:33 AM
 #8131

I've gotta say an average share time of 5h40m hours compared to 1d8h block times (at the time I post) is better than I expected. At 6 shares per block found, and a SPREAD of 3, I'd average 18 shares at any given time once I've been mining for a few days. That'll drop if the pool hash rate grows, but atm, ~18 average blocks seems like plenty to make sure I'm paid on every block and my payments don't vary wildly. I'll need to actually see it in action first hand a few weeks, but personally I don't feel that is unacceptable variance at all.

It'll be nice if/when I can get some sort of miner-specific graph page up to plot this stuff over time and let you see visually at a glance your projected and real share values.

The absolutely biggest issue we have with variance is the block time. We've had four-day periods with NO blocks. That's just terrible for everyone. Thankfully our hash rate is growing faster than the network, so at the moment at least, this is becoming a slightly smaller problem, and hopefully this trend continues. Given that the new ASIC miners work so well with p2pool it seems like we have a real shot to survive. It was looking questionable for a while. People just would not tolerate rounds lasting a week or two, which is where we were headed.


CaptEmulation
Full Member
***
Offline Offline

Activity: 134
Merit: 100


View Profile
April 01, 2014, 02:28:09 PM
 #8132

I have a dedicated VPS node running bitcoind and p2pool and getting 5.8% DOA on local rate on 150Gh/s.  Everything running smooth and am now awaiting my first p2pool block.

jedimstr
Hero Member
*****
Offline Offline

Activity: 798
Merit: 1000



View Profile
April 01, 2014, 03:25:02 PM
 #8133

I've gone ahead and set up a public node for BTC to go along with my other couple coins.

http://us-east.royalminingco.com:9332/static/

The fee is .5% to pool and .5% donation to forrestv. This node has my patches related to helping small miners get less variance, and uses the interface which shows average "time to share" per-miner so you can see what's going on. Pseudo share vardiff is also set reasonably per miner so no ADDR+ tweaks are needed just for graph purposes. Next I want to fold in iongchun's miner-specific stats page, and add some extra charts/history/info to that.

It isn't like the world needs more public p2pool nodes, but I wanted to have at least one that I knew was using the changes I worked on for the alt coin pools. Smiley

What's the possibility of merging your tweaks, especially for the smaller miners, back up into forrestv's master branch?

roy7
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250


View Profile
April 01, 2014, 04:06:19 PM
 #8134

What's the possibility of merging your tweaks, especially for the smaller miners, back up into forrestv's master branch?

I've sent in pull requests already and also for iongchun's auto-worker-diff branch which lets you have nice control over pseudo share difficulty. (This was better than my own little hack for pseudo shares so I dropped mine and use his myself.) iongchun also added an alt coin related fix for DIFF 0 work so I removed my pull request for that, since auto-worker-diff is all inclusive. My share difficulty change (branch vardiffbyaddress) was adopted by vertcoin p2pool repo when we did the hard fork long ago, so it's actually live network wide for them.

I still have more changes to the vardiff algorithm I want to test and such so my node will always run whatever experiment I'm doing at the time.

For the worker 'time to share' type stuff, I put in pull requests to p2pool for the minerstats branch and to p2pool-node-status as well.
mdude77
Legendary
*
Offline Offline

Activity: 1540
Merit: 1001



View Profile
April 01, 2014, 04:28:59 PM
 #8135

Would someone here be able to opine on this please?

https://bitcointalk.org/index.php?topic=552923.msg6017167#msg6017167

M

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

Activity: 454
Merit: 252


View Profile
April 01, 2014, 05:28:17 PM
 #8136

Would someone here be able to opine on this please?

https://bitcointalk.org/index.php?topic=552923.msg6017167#msg6017167

M
i replied over there
CartmanSPC
Legendary
*
Offline Offline

Activity: 1270
Merit: 1000



View Profile
April 01, 2014, 06:14:45 PM
 #8137

iongchun also added an alt coin related fix for DIFF 0 work so I removed my pull request for that, since auto-worker-diff is all inclusive.

Do you have a link to this? I am still using this patch as it seems to be working well: https://github.com/CartmanSPC/p2pool/commit/17ac31aec971237984f7dac457b5eec14e75ffdc

IYFTech
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500


WANTED: Active dev to fix & re-write p2pool in C


View Profile
April 01, 2014, 06:33:58 PM
 #8138

Is anyone having issues with Bitcoind/Bitcoin-QT v0.9.0?

I updated my P2Pool to v0.9.0 and I am getting an error now after restarting the server that it's lost connection with Bitcoind. Yet up until this point, I upgraded it a day after v0.9.0 came out its been running fine and transactions have been flowing.

 



I had problems - high latency, cpu peaks & connection errors like you - I gave up on it & went back to 0.8.6  Wink

-- Smiley  Thank you for smoking  Smiley --  If you paid VAT to dogie for items you should read this thread:  https://bitcointalk.org/index.php?topic=1018906.0
Polyatomic
Sr. Member
****
Offline Offline

Activity: 257
Merit: 250


View Profile
April 01, 2014, 06:51:59 PM
 #8139

I have a dedicated VPS node running bitcoind and p2pool and getting 5.8% DOA on local rate on 150Gh/s.  Everything running smooth and am now awaiting my first p2pool block.

Thats the spirit man , I'm sending you positive vibes.
mdude77
Legendary
*
Offline Offline

Activity: 1540
Merit: 1001



View Profile
April 01, 2014, 06:53:30 PM
 #8140

I have a dedicated VPS node running bitcoind and p2pool and getting 5.8% DOA on local rate on 150Gh/s.  Everything running smooth and am now awaiting my first p2pool block.

what company are you using and how much is it?  I was considering the same thing and I couldn't find anything that had enough disk space for the entire btc chain w/o paying a bit more.

M

I mine at Kano's Pool because it pays the best and is completely transparent!  Come join me!
Pages: « 1 ... 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 [407] 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 ... 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!