Title: BTC Guild has 4% efficiency/stales/fee problem? Post by: cosurgi on October 18, 2011, 05:48:53 PM Hi,
I did some analysis of pool efficiency for: Tycho, BTCGuild, slush and luke-jr, and I have found a problem with BTCGuild. I think I need your help to verify this, to be sure that I make no mistake here. Here is what I did: download all rounds history for each pool:
Code: 5 0 * * * /root/bin/getTycho 2>&1 > /dev/null , where getTycho script is Code: wget -O /backup/btc/deepbit-`date +"%Y-%m-%d"`.log 'http://deepbit.net/stats.php'
I did setup cron about half a year ago, to be able to verify pool stats some day. And I didn't setup it for BTCGuild because they provide all_blocks.php webpage with full history. Now it's only them that appear to be problematic in those calculations. I suppose that other pool owners could also provide their history to verify my crontab downloading. Next thing, the calculations for each pool are following: i - round number, j - difficulty index (all rounds with the same difficulty have the same j) ): 1. calculate average pool's luck as sum_by_i(round_i_shares)/sum_by_i(round_i_difficulty), expected number is 1.0 2. calculate standard deviation as sqrt( sum_by_i(difficulty_i*difficulty_i) ) / sum_by_i(difficulty_i)=sqrt(sum_by_j(number_of_rounds_with_difficulty_j * difficulty_j*difficulty_j))/sum_by_j(number_of_rounds_with_difficulty_j * difficulty_j), value depends on number of rounds You can verify all my calculations by downloading this openoffice spreadsheet: https://sites.google.com/site/cosurgi/check-pools.ods To summarize here are all results:
luke has biggest error uncertainty because he has only 770 rounds. But his luck still fits in standard deviation. Title: Re: BTC Guild has 4% efficiency/stales/fee problem? Post by: slush on October 18, 2011, 06:22:43 PM (As I'm one of operators, I won't comment results, however I'm subscribing this thread)
Title: Re: BTC Guild has 4% efficiency/stales/fee problem? Post by: cosurgi on October 18, 2011, 06:27:11 PM To get difficulty of blocks, when pool didn't provide block number but hash I was using http://blockexplorer.com/ like that:
http://blockexplorer.com/block/00000000000008bf00635be7fba910747e69b383db828ddcdd7ec2b41975764d There you can see "Difficulty". I downloaded all blocks from blockexplorer for each pool, with a short script, then filtered them on "Difficulty" with grep, sorted it by hash and pasted into spreadsheet. Then I sorted pool stats by hash. And compared if those hashes are equal. You can exactly see this in tycho's case, Because I wrote extra column for hash comparison, which writes "OK" when they match. For others I didn't need to do this, because there were fewer blocks. In tycho there were 12000 :) Title: Re: BTC Guild has 4% efficiency/stales/fee problem? Post by: kano on October 18, 2011, 10:23:41 PM Just a minor point, when difficulty changes, it means the pool rounds may have 2 difficulties, not just one.
The longer the pool rounds, the more likely. You'd have to break it down at the per block level (easiest) or break those rounds that cross the difficulty change or calculate a difficulty for those rounds (worst idea of the three :) ) Title: Re: BTC Guild has 4% efficiency/stales/fee problem? Post by: cosurgi on October 19, 2011, 02:57:04 PM Just a minor point, when difficulty changes, it means the pool rounds may have 2 difficulties, not just one. currently I was using the difficulty of generated block. And this difficulty is in denominator so it makes the resulting fraction `shares/diff` to be smaller when difficulty goes up (which was the case most of the time). So this approach makes the pools a little more lucky than in reality. But total effect on pool luck is very small, like 0.001 or something like that. It's easy to check - get that openoffice spreadsheet, change difficulties of those blocks and see what is the result.The longer the pool rounds, the more likely. You'd have to break it down at the per block level (easiest) or break those rounds that cross the difficulty change or calculate a difficulty for those rounds (worst idea of the three :) ) Maybe somebody can calculate for arsbitcoin too? I have them archived also, but didn't have time yet to calculate. Title: Re: BTC Guild has 4% efficiency/stales/fee problem? Post by: DeathAndTaxes on October 19, 2011, 11:15:40 PM Interesting. At first glance having bad luck 3x standard deviation looks pretty bad. I will reserve final judgement until I look at the workflow but statistically peaking there is only a 1/2000 chance of a pool being that unlucky. :o
OP you got a donation address? I hope this is something you intended to do periodically. Title: Re: BTC Guild has 4% efficiency/stales/fee problem? Post by: shads on October 20, 2011, 06:08:51 AM -ve luck could be caused by a pool accepting shares that shouldn't have been. e.g. duplicates or if there is a delay between new block on the network and the pool detecting it and marking all new shares issued before that time as stale.
conversely +ve luck could be caused by pool rejecting shares that are valid (but still potentially submitting to bitcoin network). e.g. pools share cache has expired the work so the share is counted as unknown. Or blkmond detecting a new block before bitcoind is ready to serve work from the new block so longpolls go out with 'new' work from previous block but when they come back as a share it's rejected as stale due to prevblockhash not matching. Title: Re: BTC Guild has 4% efficiency/stales/fee problem? Post by: Vladimir on October 20, 2011, 08:32:58 PM
Surprise, surprise! see my sig. Title: Re: BTC Guild has 4% efficiency/stales/fee problem? Post by: Nachtwind on October 20, 2011, 09:46:19 PM
Surprise, surprise! see my sig. Title: Re: BTC Guild has 4% efficiency/stales/fee problem? Post by: Vladimir on October 20, 2011, 11:39:52 PM
Surprise, surprise! see my sig. yep, and still it somehow matches the above closely enough and no credible information about this "miscalculation" have ever been posted or brought to my attention. Title: Re: BTC Guild has 4% efficiency/stales/fee problem? Post by: kano on October 21, 2011, 12:17:03 AM
Surprise, surprise! see my sig. yep, and still it somehow matches the above closely enough and no credible information about this "miscalculation" have ever been posted or brought to my attention. Try facts rather than complaining about random numbers being random :P P.S. the pool in your sig has shut down. Title: Re: BTC Guild has 4% efficiency/stales/fee problem? Post by: Vladimir on October 21, 2011, 12:34:04 AM
Surprise, surprise! see my sig. yep, and still it somehow matches the above closely enough and no credible information about this "miscalculation" have ever been posted or brought to my attention. Re scamming, your words not mine. I never said that. Switch to PPS proves nothing. Go get some logic classes. Too bad MMC pool is down. Nobody is perfect it seems. Title: Re: BTC Guild has 4% efficiency/stales/fee problem? Post by: kano on October 21, 2011, 01:17:10 AM
Surprise, surprise! see my sig. yep, and still it somehow matches the above closely enough and no credible information about this "miscalculation" have ever been posted or brought to my attention. Re scamming, your words not mine. I never said that. Switch to PPS proves nothing. Go get some logic classes. Too bad MMC pool is down. Nobody is perfect it seems. And you post about this regularly and BTC Guild is your target of the 4% accusation ... So ... unless English isn't well known by you and thus we can excuse the lack of understanding ... that means the same thing as scamming to anyone but an idiot. Title: Re: BTC Guild has 4% efficiency/stales/fee problem? Post by: Vladimir on October 21, 2011, 01:36:42 AM Dear Kano,
It is impossible to have a coherent discussion with someone who is unable to build up a logical argument. There is no logical link leading from whatever I ever said using my imperfect English to your claim that I allegedly said "BTC Guild is cheating someone". BTC Guild cheating someone may or may not be the case, I have not seen any 100% proof of either. After you take some logic classes go read up on Stockholm Syndrome. Meanwhile, welcome to my ignore list. |