My stale is 7.2%,it seems too high,why?
Does p2pool support longpool?
p2pool does support longpolls.
orphans in p2pool aren't the same as other pools. They aren't lost work they are simply a limit of the sharechain only being able to make 1 share become the next share.
The key thing to remember is that shares are worthless. They have absolutely no real value. Shares are just used as a work tracking mechanism that can't be cheated.
p2pool has a high orphan rate because the network finds one share every 10 seconds (vs 600 sec for Bitcoin). When two nodes submit a share at roughly the same time only 1 can become the next share in the chain and the other is orphaned.
Blocks are subject to p2pool internal orphans because they don't go into the sharechain, the node finding it broadcasts it directly to Bitcoin network (and relays it to all p2pool nodes).That isn't to say orphans don't matter at all. For p2pool oprhan rate what matters is your stale vs network stale. If they are similar then you will earn at same rate .
An example may help.
Say you generate 10 shares per hour and the network generates 1000. Both you and the network average have an orphan rate of 10%.
Work completed:
You 10, network: 1000, 10 / 1000 = you contributed 1% of work
Shares orphaned:
You 1, network 100, 1/100 = your orphans are 1% of all shares orphaned
Work recorded in sharechain:
You 9, network 900, 9/900 = your share of reward is 1%
You provided 1% of the total work and got 1% of the reward.
dead on arrival is more comparable to a conventional pool's "stale rate". It is work that your p2pool node determined was invalid by the time it was received. In a similar fashion a conventional pool marks shares as stale if they are invalid by the time received by the pool.
You should strive to keep that number as low as possible to increase your profits and to make p2pool more efficient.
To lower your DOA in cgminer you may want to try the following settings:
threads per GPU: 1
queue: 1
intensity: 1 lower than w/ conventional pools (i.e. for 5970 I use I:9 on normal pools and I:8 on p2pool)
TL/DR version:
1) p2pool stales aren't comparable to other pools because they include internal share orphans.
2) As long as your stale rate is comparable to the p2pool avg you will earn the same amount
3) DOA are more comparable to stale rate in other pools.
4) To lower DOA rate use "faster" cgminer settings (less threads, smaller queue, lower intensity)