Bitcoin Forum
April 19, 2024, 12:08:08 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 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 ... 814 »
  Print  
Author Topic: [1500 TH] p2pool: Decentralized, DoS-resistant, Hop-Proof pool  (Read 2591613 times)
PatMan
Hero Member
*****
Offline Offline

Activity: 924
Merit: 1000


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


View Profile WWW
March 28, 2013, 02:46:16 PM
 #4741

Thanks Subo.

Not bad for a "FUD spreading noob who obviously doesn't understand mining bitcoin" eh?  Wink


You're only a "FUD spreading noob" when you talk about things you *don't* understand about mining bitcoin.

Unnecessary, uncalled for & counter productive. Especially coming from a person of your undoubted mathematical knowledge & reputation.

Constructive criticism is most welcome regarding this problem, derogatory comments are not. It helps nobody & nothing.

I think you took that the wrong way.

Edit: try reading it as 'One is only a "FUD spreading noob" when one talks about things one *doesn't* understand about mining bitcoin.'

Organ,

Text can very easily be taken the wrong way if it is not carefully phrased, and it helps to use the smileys also. If you meant no malice then fair play to you.

You know my stance on this situation with stratum & p2pool more than most people, we've had discussions about it before. I have taken far too much undeserved flack over the months since it was introduced, not just because I stood my ground because I believed I was right, but also because others refused to even contemplate that there was even a problem with it - preferring to ridicule & deny anything was wrong rather than investigate what me and others suggested a long time ago. This only resulted in damage to p2pool, my favourite pool. I won't deny the fact that I feel slightly vindicated with what we now know, but what is important is that it gets fixed. Pronto.
There are a few people in this pool who are too quick to jump on others at the slightest hint of questioning anything, dismissing them as not being of sufficient intellect - even suggesting they go elsewhere to do their mining, that for me flies in the face of p2p. The whole idea of p2p is communal sharing, effort & problem solving - that's the main reason why I chose this pool. Even "experts" can be wrong, the same as the rest of us mere mortals, but accepting to be wrong seems a little too hard for some people. That's a shame.

Anyways, rant over. Can we fix it and move on now?  Cheesy

Peace  Grin

"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/
1713528488
Hero Member
*
Offline Offline

Posts: 1713528488

View Profile Personal Message (Offline)

Ignore
1713528488
Reply with quote  #2

1713528488
Report to moderator
1713528488
Hero Member
*
Offline Offline

Posts: 1713528488

View Profile Personal Message (Offline)

Ignore
1713528488
Reply with quote  #2

1713528488
Report to moderator
1713528488
Hero Member
*
Offline Offline

Posts: 1713528488

View Profile Personal Message (Offline)

Ignore
1713528488
Reply with quote  #2

1713528488
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713528488
Hero Member
*
Offline Offline

Posts: 1713528488

View Profile Personal Message (Offline)

Ignore
1713528488
Reply with quote  #2

1713528488
Report to moderator
1713528488
Hero Member
*
Offline Offline

Posts: 1713528488

View Profile Personal Message (Offline)

Ignore
1713528488
Reply with quote  #2

1713528488
Report to moderator
gyverlb
Hero Member
*****
Offline Offline

Activity: 896
Merit: 1000



View Profile
March 28, 2013, 03:19:52 PM
 #4742

If people really have a problem with p2pool and stratum they should start opening tickets on github with details about their setup (OS, python, twisted, p2pool and miner versions, hardware used, hashrate involved, stratum or getwork, load, steps to reproduce the problem).

Meanwhile the silent majority mines with p2pool and stratum without problems since the beginning. We don't have problems: how can you expect us to help if you don't give the information needed to do so? I would like to help diagnose the problem but I certainly won't dig into previous posts to guess what could be the problem with the setups involved.

Here's one setup working as expected (mine) to make it clear what might be useful to pinpoint the source of a problem:
  • OS: Gentoo stable, python 2.7.3 (stable), twisted-11.1.0 unmasked (11.0 is missing a way to close connections properly which leads to memory leaks),
  • Hardware: Core2Duo E8400 3GHz with 6GB RAM, bitcoind/litecoind/p2pool on SSD, other software used on the server but with low loads.
  • P2Pool: git master branch
  • mining devices: Cairnsmore1 and Icarus, 5870 and 5970 graphic cards for a total of ~9GH/s when mining BTC and ~5MH/s when mining LTC with GPUs,
  • software: MPBM master branch for FPGAs, cgminer 2.11.3 for GPUs,
  • configuration: MPBM using getwork with BTC p2pool, cgminer using stratum with both BTC p2pool and LTC p2pool,
  • load: there's little CPU usage from p2pool and cgminer (<5%), RAM is usually <250MB for LTC p2pool and <500MB for BTC p2pool. cgminer RAM usage is ~30MB. There's negligible amount of IO wait time (always <1%): p2pool isn't waiting for disk reads/writes.

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
mdude77
Legendary
*
Offline Offline

Activity: 1540
Merit: 1001



View Profile
March 28, 2013, 03:32:55 PM
 #4743


I've been running p2pool on stratum for about a week with cgminer.  I noticed the hash rate just isn't as high as it should be.  Not significantly lower (2.4gh instead of 2.6), but still lower.  Based on what was revealed about Avalon and stratum, I thought I'd try disabling stratum in cgminer.  Guess what, my hash rate is back where it should be.  Note that I don't have the hash rate degradation on a "conventional" pool with stratum.

Unfortunately while I can only salivate about the idea of having an Avalon, there does seem to be evidence that stratum isn't functioning up to par on p2pool.

M

THANK YOU! This is a legitimate starting point. This is something that can actually be looked into, do you mind filing an issue:
https://github.com/forrestv/p2pool/issues?state=open
(I think forrestv does some triage on this forum as well)

I may have spoken too soon.  Using my pool monitor, I have logs every minute of current hash rate, and I'm seeing it fluctuate all over the place both post and pre stratum.  I'm not sure with my low hash rate and the normal cyclic pattern of hash rates that I can definitely say I get a higher rate with LP than I do stratum.

The guy with the Avalon though should open an issue, if he hasn't already.

M

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

Activity: 896
Merit: 1000



View Profile
March 28, 2013, 03:40:38 PM
 #4744


I've been running p2pool on stratum for about a week with cgminer.  I noticed the hash rate just isn't as high as it should be.  Not significantly lower (2.4gh instead of 2.6), but still lower.  Based on what was revealed about Avalon and stratum, I thought I'd try disabling stratum in cgminer.  Guess what, my hash rate is back where it should be.  Note that I don't have the hash rate degradation on a "conventional" pool with stratum.

Unfortunately while I can only salivate about the idea of having an Avalon, there does seem to be evidence that stratum isn't functioning up to par on p2pool.

M

THANK YOU! This is a legitimate starting point. This is something that can actually be looked into, do you mind filing an issue:
https://github.com/forrestv/p2pool/issues?state=open
(I think forrestv does some triage on this forum as well)

I may have spoken too soon.  Using my pool monitor, I have logs every minute of current hash rate, and I'm seeing it fluctuate all over the place both post and pre stratum.  I'm not sure with my low hash rate and the normal cyclic pattern of hash rates that I can definitely say I get a higher rate with LP than I do stratum.

The guy with the Avalon though should open an issue, if he hasn't already.

M
For all hashrates, the only way to have accurate measurement is over a large number of shares submitted. For low hashrates, 1000 1-diff shares should give you a good idea. Activate logs in your miner if you can and find out how much time it takes to submit 1-diff shares (which should be what p2pool asks for with low hashrates). Compare the time it took between getwork and stratum, the difference should be ~1% or less if there was no perturbation (loss of Internet connection for example).

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
brox
Member
**
Offline Offline

Activity: 71
Merit: 10



View Profile
March 29, 2013, 10:37:26 AM
 #4745

Could someone point me a way to installing p2pool on a raspberry pi (256 Model)?

Is that even possible or something i shouldn't do?
I managed to set it up on 512M model, but CPU load is 100%, so the whole thing is useless.
Gonna profile python code, find bottlenecks and rewrite them in C... when I will have some time

Save dolphins! Donate to 1BTC4brox2pd14QubXGsXwarp9zV9tc8CZ
Mine Bitcoins in the cloud at cex.io
maqifrnswa
Sr. Member
****
Offline Offline

Activity: 454
Merit: 250


View Profile
March 29, 2013, 01:36:57 PM
Last edit: March 29, 2013, 02:06:32 PM by maqifrnswa
 #4746

Ok, continuing trying to find bugs:


2 bugs found, one regarding only avalons using avalon-branch cgminer problems with p2pool stratum, one regarding maximum difficulty:


The bug that has been reported regarding avalons, stratum, and p2pool is:
https://bitcointalk.org/index.php?topic=18313.msg1683442#msg1683442
"Avalon Cgminer without fix protocol connects on stratum but resends all work over and over. There's something wrong with the way it reads the stratum response. Someone, Jeff I think, said it has a problem with double byte responses that p2pool makes. On getwork, it just hammers the server and the DOA rate is >25%. Using a very high diff 3000-4000 helps a tiny bit. The highest p2pool would let me go is 6535. Any higher number just comes back as 6535.

Even soloing to a bitcoind alone will crash. It's too much. Hence the need to run a buffer like eloipool between it."

The workaround is:
https://bitcointalk.org/index.php?topic=18313.msg1690401#msg1690401
"So far the only thing that works is using fix-protocol and getwork with a very high diff. I've been using /4000+16. That seems the best balance. +32 is all late. You have to remember the "miners" are only 300mhash each. It will bring a 3930k running Ubuntu with 32gb of ram to its knees. It pegs 4 processors trying to keep up and eventually crashes as it runs out of memory. I also is 25-35% DOA. You loose 1/3 of your hashrate."

How it is getting fixed:
https://bitcointalk.org/index.php?topic=18313.msg1684865#msg1684865
Unfortunately, it appears that until avalan-branch cgminer merges into main-line cgminer it will be difficult to support. Maybe discussing this with Xiangfu ahead of time could be helpful. It might also be helpful to get forrestv/cgminer team avalons if someone cares about support for them.




Bug #2, maximum difficulty:
https://bitcointalk.org/index.php?topic=18313.msg1684832#msg1684832
using the username+difficulty -u flag, Aseras reported only being able to reach a maximum difficulty of 6535. I can repeat this, the maximum difficulty I can reach is 999 with both stratum and LP. This has been reported here:
https://github.com/forrestv/p2pool/issues/87
Aseras
Hero Member
*****
Offline Offline

Activity: 658
Merit: 500


View Profile
March 29, 2013, 02:28:18 PM
 #4747


I've been running p2pool on stratum for about a week with cgminer.  I noticed the hash rate just isn't as high as it should be.  Not significantly lower (2.4gh instead of 2.6), but still lower.  Based on what was revealed about Avalon and stratum, I thought I'd try disabling stratum in cgminer.  Guess what, my hash rate is back where it should be.  Note that I don't have the hash rate degradation on a "conventional" pool with stratum.

Unfortunately while I can only salivate about the idea of having an Avalon, there does seem to be evidence that stratum isn't functioning up to par on p2pool.

M

THANK YOU! This is a legitimate starting point. This is something that can actually be looked into, do you mind filing an issue:
https://github.com/forrestv/p2pool/issues?state=open
(I think forrestv does some triage on this forum as well)

I've been talking with Forrest via PM. basically it's come down to, we just need to get an avalon into a developers hands. ckolivas has offered to try and work remotely. Forrest has hinted he may be interested and has a batch 2 order he's waiting on.
PatMan
Hero Member
*****
Offline Offline

Activity: 924
Merit: 1000


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


View Profile WWW
March 29, 2013, 07:07:46 PM
 #4748

Good for you,

Did Forrest mention anything about checking the whole stratum code in p2pool?

"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/
kano
Legendary
*
Offline Offline

Activity: 4466
Merit: 1798


Linux since 1997 RedHat 4


View Profile
March 30, 2013, 08:56:31 AM
 #4749

...
How it is getting fixed:
https://bitcointalk.org/index.php?topic=18313.msg1684865#msg1684865
Unfortunately, it appears that until avalan-branch cgminer merges into main-line cgminer it will be difficult to support. Maybe discussing this with Xiangfu ahead of time could be helpful. It might also be helpful to get forrestv/cgminer team avalons if someone cares about support for them.
...
Just get an Avalon for ckolivas and cgminer will be hashing Avalon on all working pools as quickly as possible.
I don't want an Avalon as I have made clear for quite a while now.
So no, it's not get "cgminer team" an Avalon, it's get "ckolivas" an Avalon.

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
maqifrnswa
Sr. Member
****
Offline Offline

Activity: 454
Merit: 250


View Profile
March 30, 2013, 03:17:33 PM
 #4750

Good for you,

Did Forrest mention anything about checking the whole stratum code in p2pool?

If you know of a problem, you can report it here:
https://github.com/forrestv/p2pool/issues?state=open

This will help you understand how you can help most efficiently:
http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

you can also find the devs on #p2pool on freenode.net irc if you'd like to discuss something specific with them.

For the sake of p2pool, please stop publicly posting that there are problems with stratum, p2pool, and standard mining software without any data (logs, error messages, debug output). I'm not saying there are no problems, just that no one has reproduced what you are saying is a problem and shared it with developers. Therefore, no one can look into fixing it. If you share your evidence, then maybe we can fix it.
PatMan
Hero Member
*****
Offline Offline

Activity: 924
Merit: 1000


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


View Profile WWW
March 30, 2013, 05:11:00 PM
 #4751

Good for you,

Did Forrest mention anything about checking the whole stratum code in p2pool?

If you know of a problem, you can report it here:
https://github.com/forrestv/p2pool/issues?state=open

This will help you understand how you can help most efficiently:
http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

you can also find the devs on #p2pool on freenode.net irc if you'd like to discuss something specific with them.

For the sake of p2pool, please stop publicly posting that there are problems with stratum, p2pool, and standard mining software without any data (logs, error messages, debug output). I'm not saying there are no problems, just that no one has reproduced what you are saying is a problem and shared it with developers. Therefore, no one can look into fixing it. If you share your evidence, then maybe we can fix it.

What??

That was not a post stating anything - it was a follow up question to a previous discussion. Read the previous threads. The only one shouting about problems is you - get off my freaking case.

And please refrain from sending me any more creepy apologetic pm's - it's not required & I'm really not interested. Move along.

"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/
Aseras
Hero Member
*****
Offline Offline

Activity: 658
Merit: 500


View Profile
March 30, 2013, 08:17:27 PM
 #4752

Just get an Avalon for ckolivas and cgminer will be hashing Avalon on all working pools as quickly as possible.
I don't want an Avalon as I have made clear for quite a while now.
So no, it's not get "cgminer team" an Avalon, it's get "ckolivas" an Avalon.

This is happening next week. If plans go well.

And Kano, take what you can get. Just because you have beef with the avalon team, don't screw with everyone else. If anything we need people like you to get the avalons to operate like they should. Instead, we have this half assed build of cgminer because they wanted it all in house. Better to just cut them out and move on.

Bitcoin is going to ASIC. BFL may be close, or one post away from bankruptcy. There's no one else. Might as well get your hands on what's out there.
-ck
Legendary
*
Offline Offline

Activity: 4088
Merit: 1630


Ruu \o/


View Profile WWW
March 30, 2013, 10:34:47 PM
 #4753

Just get an Avalon for ckolivas and cgminer will be hashing Avalon on all working pools as quickly as possible.
I don't want an Avalon as I have made clear for quite a while now.
So no, it's not get "cgminer team" an Avalon, it's get "ckolivas" an Avalon.
This is happening next week. If plans go well.
I should reiterate this is happening due to the generous offer from Aseras himself to provide me remote access to his units. Since p2pool is part of Aseras' concerns, I will try and address anything I can from the cgminer end but I think that will only achieve so much. Xiangfu has said that they should send me an actual unit, but he doesn't have that power himself, and thinks he should try and convince them.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
stevegee58
Legendary
*
Offline Offline

Activity: 916
Merit: 1003



View Profile
April 01, 2013, 01:29:26 AM
 #4754

Is there a site like p2pool.info for LTC?

You are in a maze of twisty little passages, all alike.
kano
Legendary
*
Offline Offline

Activity: 4466
Merit: 1798


Linux since 1997 RedHat 4


View Profile
April 01, 2013, 09:09:27 AM
 #4755

Just get an Avalon for ckolivas and cgminer will be hashing Avalon on all working pools as quickly as possible.
I don't want an Avalon as I have made clear for quite a while now.
So no, it's not get "cgminer team" an Avalon, it's get "ckolivas" an Avalon.

This is happening next week. If plans go well.

And Kano, take what you can get. Just because you have beef with the avalon team, don't screw with everyone else. If anything we need people like you to get the avalons to operate like they should. Instead, we have this half assed build of cgminer because they wanted it all in house. Better to just cut them out and move on.

Bitcoin is going to ASIC. BFL may be close, or one post away from bankruptcy. There's no one else. Might as well get your hands on what's out there.
Sorry, I'm quite serious that I do not wish to be involved in any way with GitSyncom or the companies he is a lowly employee of.
If I had an Avalon I would be supporting them and I will not do that.

They ignored the GPL license for cgminer for a long time until they released the source and made up excuses that were unrelated to cgminer as to why they didn't release the code at first.
GitSyncom also directly stated that he thought my suggestions that hardware was required by me to properly support it was just an excuse to get "free hardware" and also that when I pointed this out to him last year his thoughts on that were:
https://bitcointalk.org/index.php?topic=142083.msg1513358#msg1513358
"I'll reject you on sheer principle fucking level."

I don't mind helping Xiangfu or CKolivas with the implementation, but I will be leaving any non USB specific code directly up to them (as they of course are well able to deal with it)

I'm not motivated by money above my own conscience and since I cannot with a good conscience accept an Avalon, the monetary gain is irrelevant.
I have been offered 2 already and turned them both down. One you will see in one of the Avalon threads and the other in PM.

I'm not sure if you consider this to be yet another offer - but either way - I'm not interested in it.

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
Aseras
Hero Member
*****
Offline Offline

Activity: 658
Merit: 500


View Profile
April 01, 2013, 03:48:54 PM
 #4756

Sorry, I'm quite serious that I do not wish to be involved in any way with GitSyncom or the companies he is a lowly employee of.
If I had an Avalon I would be supporting them and I will not do that.

They ignored the GPL license for cgminer for a long time until they released the source and made up excuses that were unrelated to cgminer as to why they didn't release the code at first.
GitSyncom also directly stated that he thought my suggestions that hardware was required by me to properly support it was just an excuse to get "free hardware" and also that when I pointed this out to him last year his thoughts on that were:
https://bitcointalk.org/index.php?topic=142083.msg1513358#msg1513358
"I'll reject you on sheer principle fucking level."

I don't mind helping Xiangfu or CKolivas with the implementation, but I will be leaving any non USB specific code directly up to them (as they of course are well able to deal with it)

I'm not motivated by money above my own conscience and since I cannot with a good conscience accept an Avalon, the monetary gain is irrelevant.
I have been offered 2 already and turned them both down. One you will see in one of the Avalon threads and the other in PM.

I'm not sure if you consider this to be yet another offer - but either way - I'm not interested in it.

I totally understand I watched the whole thing develop. bitsyncom was a total dick about it all. xiangfu is ok, but hes very quiet and doesn't talk much, and what he does say is quite hard to follow sometimes.

that said, i do wish you might reconsider and help US out.

ckolivas has been working all day on my units. he had a crash course in l2tp under ubuntu last night Cheesy Anyways, hes in now, and mining away while he tries out new things. they are making ~9BTC per day, so by the end of the week @ > $100/BTC he should make out, and hopefully we'll have a much better improved cgminer on avalon for it soon.
maqifrnswa
Sr. Member
****
Offline Offline

Activity: 454
Merit: 250


View Profile
April 01, 2013, 07:09:17 PM
Last edit: April 01, 2013, 07:34:06 PM by maqifrnswa
 #4757

...
The highest p2pool would let me go is 6535. Any higher number just comes back as 6535.
...
Better get that fixed fast ...
I think it is in getwork.py:
Code:
'target': pack.IntType(256).pack(self.share_target).encode('hex'),


Regarding minimum difficulty:
rav3n_pl has helped point me to what's going on in worker.py
Code:
        if desired_pseudoshare_target is None:
            target = 2**256-1
            if len(self.recent_shares_ts_work) == 50:
                hash_rate = sum(work for ts, work in self.recent_shares_ts_work[1:])//(self.recent_shares_ts_work[-1][0] - self.recent_shares_ts_work[0][0])
                if hash_rate:
                    target = min(target, int(2**256/hash_rate))
        else:
            target = desired_pseudoshare_target
        target = max(target, share_info['bits'].target)

The last line shows that if the desired_pseudoshare_target (that is the diff that is served to your miner and it is taken from the username+desired_pseudoshare_target log in to the server) is harder (higher difficulty or lower target) than the current p2pool network difficulty (share_info['bits'].target), the target served as work to your miner will be the current p2pool network difficulty.

rav3n_pl had the point that unless you plug something into the p2pool network that hashes at > 1000% of the current network hashrate, you will submit shares to your local p2pool instance at a rate of < 1 share per second. Most servers should be able to handle that somewhat easily.

So the difficulty "bug" does not appear to be one, unless someone else has something to add.

And thank you @Aseras for donating you machine to help get avalon working on p2pool.


EDIT: I realize that Aseras may also have been talking about the maximum difficulty returned to the p2pool network (which should have no connection to server load).
From data.py, get_transaction:
Code:
bits = bitcoin_data.FloatingInteger.from_target_upper_bound(math.clip(desired_target, (pre_target3//10, pre_target3)))
So you will return to the network the easier (lower difficulty) of the desired target from "username/desired_target" or 10 times the current p2pool network difficulty.

That's why you were getting 6535: the network difficulty was 653.5 and it wouldn't let you set a target greater than 10x harder.
Aseras
Hero Member
*****
Offline Offline

Activity: 658
Merit: 500


View Profile
April 01, 2013, 09:12:12 PM
 #4758

...
The highest p2pool would let me go is 6535. Any higher number just comes back as 6535.
...
Better get that fixed fast ...
I think it is in getwork.py:
Code:
'target': pack.IntType(256).pack(self.share_target).encode('hex'),


Regarding minimum difficulty:
rav3n_pl has helped point me to what's going on in worker.py
Code:
        if desired_pseudoshare_target is None:
            target = 2**256-1
            if len(self.recent_shares_ts_work) == 50:
                hash_rate = sum(work for ts, work in self.recent_shares_ts_work[1:])//(self.recent_shares_ts_work[-1][0] - self.recent_shares_ts_work[0][0])
                if hash_rate:
                    target = min(target, int(2**256/hash_rate))
        else:
            target = desired_pseudoshare_target
        target = max(target, share_info['bits'].target)

The last line shows that if the desired_pseudoshare_target (that is the diff that is served to your miner and it is taken from the username+desired_pseudoshare_target log in to the server) is harder (higher difficulty or lower target) than the current p2pool network difficulty (share_info['bits'].target), the target served as work to your miner will be the current p2pool network difficulty.

rav3n_pl had the point that unless you plug something into the p2pool network that hashes at > 1000% of the current network hashrate, you will submit shares to your local p2pool instance at a rate of < 1 share per second. Most servers should be able to handle that somewhat easily.

So the difficulty "bug" does not appear to be one, unless someone else has something to add.

And thank you @Aseras for donating you machine to help get avalon working on p2pool.


EDIT: I realize that Aseras may also have been talking about the maximum difficulty returned to the p2pool network (which should have no connection to server load).
From data.py, get_transaction:
Code:
bits = bitcoin_data.FloatingInteger.from_target_upper_bound(math.clip(desired_target, (pre_target3//10, pre_target3)))
So you will return to the network the easier (lower difficulty) of the desired target from "username/desired_target" or 10 times the current p2pool network difficulty.

That's why you were getting 6535: the network difficulty was 653.5 and it wouldn't let you set a target greater than 10x harder.

Yes I think you've found the "problem" The issue is, the asics NEED a higher difficulty, or they are going to kill the smaller miners in p2pool.

I also think as difficulty greatly increases, we are going to need a longer long-poll time as well. maybe 20 or 30 seconds.
jgarzik
Legendary
*
Offline Offline

Activity: 1596
Merit: 1091


View Profile
April 02, 2013, 02:14:06 AM
 #4759

Yes I think you've found the "problem" The issue is, the asics NEED a higher difficulty, or they are going to kill the smaller miners in p2pool.

Yes, this was established the day the first Avalon arrived Smiley

Quote
I also think as difficulty greatly increases, we are going to need a longer long-poll time as well. maybe 20 or 30 seconds.

On IRC, an ASIC-only p2pool share chain idea was floated, with a higher difficulty by default and a longer time between shares.


Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
wtogami
Sr. Member
****
Offline Offline

Activity: 263
Merit: 250



View Profile
April 02, 2013, 02:52:18 AM
 #4760

Yes I think you've found the "problem" The issue is, the asics NEED a higher difficulty, or they are going to kill the smaller miners in p2pool.

Yes, this was established the day the first Avalon arrived Smiley

Quote
I also think as difficulty greatly increases, we are going to need a longer long-poll time as well. maybe 20 or 30 seconds.

On IRC, an ASIC-only p2pool share chain idea was floated, with a higher difficulty by default and a longer time between shares.

It sounds like forrestv is instead in favor of alternate means to extend the effective work interval through merging of parallel chains.  Various theoretical designs were discussed.

If you appreciate my work please consider making a small donation.
BTC:  1LkYiL3RaouKXTUhGcE84XLece31JjnLc3      LTC:  LYtrtYZsVSn5ymhPepcJMo4HnBeeXXVKW9
GPG: AEC1884398647C47413C1C3FB1179EB7347DC10D
Pages: « 1 ... 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 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 ... 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!