Bitcoin Forum
June 22, 2024, 04:47:25 AM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Mining software (miners) / Re: Pool mining and miner requesting new work, although it still should have some on: June 22, 2011, 05:32:51 PM
Ah okay. Thank you very much for clearing things up for me. I think i have a better understanding of what's going on, now. But i think there is an additional reason, why the client fetches new data. This is because my CPU miner, which is ofc. very slow, requests new work every somewhat 60 seconds and i doubt, that it can go through all nonces in this short time.

Another thing i've noticed btw.:
My version of proclbm (included with guiminer) is not updating it's internal timer, when getting new data through a long poll. It will fetch new work every X seconds, no matter if it got new work through a long poll a second ago. I didn't notice this behaviour in DiabloMiner, so i think it's not meant to be this way.
This supports my theory, that there has to be another or additional reason for the client to fetch new work, me thinks.

But, in the end, a lot of getworks are not bad for me, but for the pools, because they get more requests, right? I don't think i should have to care about that too much any further, should I? Smiley
2  Bitcoin / Mining software (miners) / Re: Flexible mining proxy on: June 19, 2011, 12:53:25 PM
Every time the client requests new work from the proxy, so every 40-50 seconds, this will happen:

The proxy asks the first pool in his priority list for new work. If that pool does not respond within X seconds, the proxy goes on and asks the next pool in his priority list.
This will repeat until a pool does respond and delivers new work which the proxy can relay to the client, or the end of the prioriry list is reached.
3  Bitcoin / Mining software (miners) / Re: Flexible mining proxy on: June 19, 2011, 12:29:35 PM
EDIT: Once a pool goes down, does it auto switch as a fail over and then switch back once it's back up?
EDIT: How do you test if the pool is down? Mine seems to be constantly cycling through the pools even though they seem to be ok.
If a pool does not respond within a given time, which is about 3 seconds, the proxy will continue with the next pool in the priority list.
4  Bitcoin / Mining software (miners) / Pool mining and miner requesting new work, although it still should have some on: June 19, 2011, 12:26:27 PM
Okay. I've been running a miner for somewhat a week now and recently have set up the flexible mining proxy, found on this forum. As i had some problems with that and wanted to understand, what's going on behind the curtain, i extended the codebase by some logging and a console window. By doing that and observing the output of the communication client<->proxy, i noticed a strange behaviour of the mining clients, that i do not understand:

The worker logs in to the proxy, new work is requested and forwarded to the client. The client starts processing.
So now, after 45-50 seconds the client logs in again and requests new work again, no matter if it has returned a result for the work it has previously requested or not.
It can happen multiple times in a row, that it re-requests new work, without returning something.
On the other hand it can happen, that the client is able to provide, say, 2-3 solutions within that said 45-50 second time frame.
So everything from 0-X results may get returned by the client between those calls to fetch new work - i supposed this is bases solely on luck.
Thing is, if it will not return something, the ratio requested:returned will go down, which, sounds bad and as a side-effect, it got me banned on BitcoinPool.com.
I tried a lot to figure out, why there is this re-request every 45-50 seconds and how to change it.

I even tried to implement a very basic throttle, that will keep track of the number of work units the client is currently working on and which blocks all further requests, until solutions for the these units are returned by the client. The throttling did not work as expected: the miner went somewhat crazy by not getting new work. The miner even ran out of work and stalled, when it was working on a work unit and for some reason kind of discarded it, without returning a solution for it, which would have freed up the slot for a new request.

tl;dr
The client requests new work every ~45-50 seconds, no matter if it has returned a result for the previous work or not. This decreases request:returned ratio.
Why is that happening? Can this be prevented? Is there a good explanation about the techniques behind all this around? All i could find was some basic blah blah. :|
( A side question would be: what exactly does the client get from the pool? If mining solo, i work on a whole block, but what am i mining on when mining for a pool, exactly? Smiley )

Here's a sample of my log:

[ 19.06.2011 13:56:10 ] [3] Polling BitcoinPool
[ 19.06.2011 13:56:11 ] [3] BitcoinPool responded.
[ 19.06.2011 13:56:11 ] [3] Processing work for BitcoinPool (09fb56385d5851ce7533d20134635832)
-------------------------------------------------------------------------
[ 19.06.2011 13:56:33 ] [3] Worker returned work for BitcoinPool (09fb56385d5851ce7533d20134635832)
[ 19.06.2011 13:56:33 ] [3] Sending work to BitcoinPool ......success!
[ 19.06.2011 13:56:34 ] [3] Work unit is:valid
-------------------------------------------------------------------------
[ 19.06.2011 13:56:55 ] [3] Worker returned work for BitcoinPool (09fb56385d5851ce7533d20134635832)
[ 19.06.2011 13:56:55 ] [3] Sending work to BitcoinPool ......success!
[ 19.06.2011 13:56:56 ] [3] Work unit is:valid
-------------------------------------------------------------------------
[ 19.06.2011 13:57:01 ] [3] Polling BitcoinPool
[ 19.06.2011 13:57:02 ] [3] BitcoinPool responded.
[ 19.06.2011 13:57:02 ] [3] Processing work for BitcoinPool (09bde84558a701a39f07224b3bc9c83c)
-------------------------------------------------------------------------
[ 19.06.2011 13:57:53 ] [3] Polling BitcoinPool
[ 19.06.2011 13:57:54 ] [3] BitcoinPool responded.
[ 19.06.2011 13:57:54 ] [3] Processing work for BitcoinPool (5e779c1f2a8227810ccc1785f5835cd5)
-------------------------------------------------------------------------

Here you can see the first work request.  Soon two solutions are found and returned for that work. After 51 seconds, new work is requested. After another 52 seconds, again, new work is requested and no result has been found in the meanwhile., efficiency goes down. *rinse-repeat*

Thank you for reading and for clearing things up for me! Smiley
krom
5  Bitcoin / Mining software (miners) / Re: Flexible mining proxy on: June 14, 2011, 11:46:42 PM
All working "quite" well with 1 miner and 1 pool.

Some things i've noticed:
  • I have a lot of "Listener for "Proxy": 15/06/2011 00:23:30, Unexpected error:" lines on GUIMiner's console, using poclbm and the proxy.
  • Long polls seem to get through sometimes, but not all the time - i get a lot more of these when connecting to the pool directly, but maybe this was random.
  • Fall back to other pools does not work for me, nor will the miner work on any other pool than the first one i created, even if i disable that pool overall or remove it from the worker's list.
  • A second worker i added is able to get work (only from the first pool i defined as well), but the returned shares never show up anywhere - not on the dashboard nor the pool's stats page. "Last accepted submission" is "Never" for that worker all the time as well.

I'll dig into the problem further, but have no time to do so yet.
Besides that: Good work and keep it up! When i'll have more than some fractions of BC, i'll donate to you. Smiley

Update:
Long poll seem to be okay.
Problem 3 was solved by adding 'http://' to the pool's url. Won't work without.
6  Bitcoin / Pools / Re: Please test: New Experimental Pool "Eligius" (~250 GH/s) on: June 13, 2011, 05:56:05 PM
Maybe this is a stupid question, but where can i look up the total sum of shares i've processed for the current block?
On my personal stats i can see a 3h and 15min average, but where are the totals? And can i look up the stales and rejected blocks somewhere as well?
Besides that, keep up the good work! Smiley

Edit:
On a side note, i get tons of RPC errors today ("Problems communicating with bitcoin RPC", "upstream RPC error") when mining with your pool. I have BTCGuild running on low priority as a backup and this is running quite smoothly.
7  Other / Beginners & Help / Re: Why should I, a vendor, accept bitcoins? on: June 13, 2011, 05:46:11 PM
OPs question is what i'm asking myself for a couple of days now and i've found no reasonable explanation yet, besides "BC is teh future!". Smiley

Exchange rate is fluctuating extremely and is too easily influenced by lots of factors right now, which makes it a pure gamble to accept bitcoins for goods that you've payed real money for, imho.

Bitcoin exchange rate needs to be somewhat stable, before i'd personaly would accept them as a payment option. You never know what they will be worth the next hour/day.
Playing around with the money on the exchanges is something for banksters, not merchants. At the end, as a merchant, you've payed real money for the goods you sell and you have real bills to pay.

What am i missing? Smiley


The price has been volitile as of late do to the massive influx of new users, like yourself, who only recently discovered Bitcoin.  Only some of those new users are going to be concerned about buying a few bitcoin now, but enough that with a market as thin as Bitcoin is at present, that's enough to move it quite a bit.  There are vendors who accept Bitcoin, however, by using a price update script that takes the 24 hour weighted average price from bitcoinwatch.com and changing their prices automaticly one or more times per day.  Those who are concerned about the voltility of bitcoins can then sell those same coins on MtGox automaticly at that same price almost immediately by using their MtGox business account to produce their bitcoin addresses.  Most vendors have started out in Bitcoin by selling all or part of their received bitcoin immediately in this fashion, but most move to the point of accumulation of Bitcoins.

Thanks for your explanation. If you are able to adjust prices regulary and (quickly) convert them to real cash automagically, this should work. I didn't think about that (and i should have *blush*).
8  Other / Beginners & Help / Re: Why should I, a vendor, accept bitcoins? on: June 13, 2011, 05:17:34 PM
OPs question is what i'm asking myself for a couple of days now and i've found no reasonable explanation yet, besides "BC is teh future!". Smiley

Exchange rate is fluctuating extremely and is too easily influenced by lots of factors right now, which makes it a pure gamble to accept bitcoins for goods that you've payed real money for, imho.

Bitcoin exchange rate needs to be somewhat stable, before i'd personaly would accept them as a payment option. You never know what they will be worth the next hour/day.
Playing around with the money on the exchanges is something for banksters, not merchants. At the end, as a merchant, you've payed real money for the goods you sell and you have real bills to pay.

What am i missing? Smiley

9  Other / Beginners & Help / Re: BTC Transaction fee of 0.01 for a 0.02 Send? on: June 13, 2011, 04:57:27 PM
Maybe this helps a bit:
https://en.bitcoin.it/wiki/Transaction_fees

But: According to that, it shouldn't have charged you a transaction fee, since the transaction is above 0.01 bc:
Quote
0.01 BTC fee if sending any transaction less than 0.01 BTC. This is to help prevent DoS attacks against the network.

On the wiki there's another part when you will be charged a fee, based on the kb size of the transaction - but i still don't get that part, so can't explain.
10  Other / Beginners & Help / Re: Eelectrity: How much do you need to pay per KW/H on: June 13, 2011, 04:33:06 PM
0.2225 € per kWh in germany. (roughly 0.15 USD)

Could have been much cheaper with nucular power (0.08 € at least), but i opted for green electricity and on top i do pay an additional 0.0125 € per kWh to support development of solar/water/wind power plants even further. Makes it a little bit hard to get profits out of bitcoin, but i'm not going to support a third tschernobyl/fukushima. Smiley

edit: fixed decimal points
11  Other / CPU/GPU Bitcoin mining hardware / Re: Official DiabloMiner GPU Miner Thread (now with Long Poll and BFI_INT support) on: June 11, 2011, 10:51:44 AM
I'm a bit late to the party but i like magic, and it would be awesome if the landlord would actually pay me to live here (fixed rent baby Wink

I have a Vista 64 work/game rig with a Intel Core 2 e8500 and a HD4870 X2, which lists in GPU Caps OpenCL as two RV770's and a Core2 (thats 3 devices, mining will be fun; it's know for being a hot bitch). I updated my ancient drivers today with newest Catalyst 11.5 and OpenCL 2.4. After all the basic mistakes i now seemed to have DiabloMiner running:

C:\BitCoin\DiabloMiner>DiabloMiner-Windows.exe -u login -p secret -w 64
[11-6-11 11:53:59] Started
[11-6-11 11:53:59] Connecting to: http://127.0.0.1:8332/
[11-6-11 11:53:59] Using AMD Accelerated Parallel Processing OpenCL 1.1 AMD-APP-SDK-v2.4 (595.10)
[11-6-11 11:54:00] Added ATI RV770 (#1) (10 CU, local work size of 64)

but then.. nothing.. the wiki says: A few lines of output will scroll by, followed by "waiting..." or error messages, but this just sits there.

I look into GPU Caps and it says GPU load 2%, Catalyst panel tells me temp stays cool.

I tried fiddling with options but i dont' really understand what's going on. Anyone got suggestions or some angle of attack? (Besides installing linux that is.)

There's a problem with the most recent version of Bitcoin (0.3.22-beta), which results in the problem you describe. Use bitcoin 0.3.21-beta (link) and it should work.

@DiabloD3:
Maybe you should put that info on the first post as long as the problem persists. Although it's not a problem with your miner, ppl might think that.


edit: maybe i should add that i do use Win7 64bit and a HD 4870, accompanied by a AMD X2 @3Ghz. No clue if this problem exists in other OS versions / constellations.
12  Other / CPU/GPU Bitcoin mining hardware / Re: Official DiabloMiner GPU Miner Thread (now with Long Poll and BFI_INT support) on: June 10, 2011, 06:39:48 PM
I had the same problem when setting up the miner. There seems to be a problem with the most recent version of bitcoin (0.3.22-beta). Try version 0.3.21-beta and it should work - given that the rest of your setup is okay.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!