Shevek
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 19, 2011, 08:53:35 AM Last edit: July 19, 2011, 09:07:26 AM by Shevek |
|
Major update version 1.3.0:
I'll test it as soon as possible, to see if stales are really drop down. In a nutshell, apart from bugfixes, this version now implements smart failover support of virtually unlimited pools. It selectively probes each server for what it supports and adjusts accordingly how to manage poor network conditions. If a server supports x-roll-ntime it will use local generation of work for up to 5 minutes (half a block's duration) and then if it is still unable to connect it will then switch pools. If a server does not support local generation, it will wait for up to a minute and then switch pools. Once a switch has occurred it will try to switch longpolls to the appropriate server as well. To use multiple pools, simply pass multiple urls and credentials. eg: ./cgminer -o http://url1:port -u user1 -p pass1 -o http://url2:port -u user2 -p pass2 ... [note: url must come before username/password now] I think the right way to implement failover and multiserver is the one adopted by poclbm and hashkill: several servers are placed in compact format user:pass@server:port (or user:pass:server:port) without flags; the first one is meant to be the favourite and the program will test it from time to time after its shutdown. Moreover, hashkill allows input a text file with one server per line. P.S. Edited for cosmetic changes
|
Proposals for improving bitcoin are like asses: everybody has one 1SheveKuPHpzpLqSvPSavik9wnC51voBa
|
|
|
RedLine888
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 19, 2011, 08:55:34 AM |
|
Can anyone give a step-by-step instruction on how to properly configure this miner on Windows
THANX
|
|
|
|
xcooling
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 145
Merit: 10
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 19, 2011, 08:55:50 AM |
|
+1 or via an xml/ini/cfg file I think the right way to implement failover and multiserver is the one adopted by and : several servers are placed in compact format user:pass@server:port (or user:pass:server:port) without flags; the first one is meant to be the favourite and the program will test it from time to time after its shutdown. Moreover, hashkill allows input a text file with one server per line.
|
|
|
|
xcooling
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 145
Merit: 10
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 19, 2011, 08:58:19 AM |
|
Can anyone give a step-by-step instruction on how to properly configure this miner on Windows
THANX
create a .bat file in the cgminer directory with the commands start_cgminer.bat del /F /Q *.bin cgminer.exe -o http://servername.com:8332 -u username -p password -I 9 -t 0
|
|
|
|
EskimoBob
Legendary
Offline
Activity: 910
Merit: 1000
Quality Printing Services by Federal Reserve Bank
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 19, 2011, 09:11:58 AM |
|
I use cgminer version 1.2.8 and I am getting: ... [2011-07-18 18:00:30] HTTP request failed: Empty reply from server ... And those repeat every 60 seconds
Thank you for the new version of this excellent miner. Looks like previously reported problem has disappeared and I have gained about +21% of hashing power compared to poclbm-mod (that was faster than all the rest) (Linux D2 2.6.38-gentoo-r6, ati-stream-sdk 2.3) Me so happy!
|
While reading what I wrote, use the most friendliest and relaxing voice in your head. BTW, Things in BTC bubble universes are getting ugly....
|
|
|
RedLine888
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 19, 2011, 09:26:24 AM |
|
Can anyone give a step-by-step instruction on how to properly configure this miner on Windows
THANX
create a .bat file in the cgminer directory with the commands start_cgminer.bat del /F /Q *.bin cgminer.exe -o http://servername.com:8332 -u username -p password -I 9 -t 0
del /F /Q *.bin what does this mean? The miner quits itself w\o any errors in 10 secs
|
|
|
|
xcooling
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 145
Merit: 10
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 19, 2011, 09:31:56 AM |
|
It removes the old database (.bin) file that cgminer creates.
|
|
|
|
RedLine888
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 19, 2011, 09:36:39 AM |
|
What are thw F and Q arguments?
The miner quits after approximately ten secs.
Windows says that programm has stopped running.
What sould I do?
|
|
|
|
xcooling
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 145
Merit: 10
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 19, 2011, 09:40:57 AM |
|
/F /Q
F = force (ie. do not prompt user for delete permission) Q = quiet (ie. do not notify user of delete)
sent u a pm with my start command
|
|
|
|
-ck (OP)
Legendary
Offline
Activity: 4228
Merit: 1644
Ruu \o/
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 19, 2011, 09:44:09 AM |
|
You shouldn't need to delete the .bin files on each startup unless you change the SDK you are using.
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
RedLine888
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 19, 2011, 09:45:00 AM |
|
THANX! Mine there also!
Copied your flags, input my data but the problem is still here.
Windows quits the miner in 10 secs saying that it has stopped working(((((((((((
|
|
|
|
xcooling
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 145
Merit: 10
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 19, 2011, 09:47:24 AM Last edit: July 19, 2011, 09:57:33 AM by xcooling |
|
reboot and try. and i assume it crashes with my exact start command ?
|
|
|
|
|
xcooling
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 145
Merit: 10
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 19, 2011, 11:04:45 AM |
|
how does one specify phatk110714.cl or poclbm110717.cl ?
|
|
|
|
-ck (OP)
Legendary
Offline
Activity: 4228
Merit: 1644
Ruu \o/
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 19, 2011, 11:07:39 AM |
|
how does one specify phatk110714.cl or poclbm110717.cl ?
One does not. The poclbm kernel is far far behind the phatk kernel in speed and any hardware that can run the phatk kernel is given it. The poclbm kernel is reserved for nvidia cards and ATI 4x cards only. The phatk kernel, even without bitalign patching, crashes on these lesser mining cards.
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
xcooling
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 145
Merit: 10
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 19, 2011, 11:16:07 AM |
|
yeah, thats why i was asking ;-P I assume the json cfg supports multiple pools ? { "_comment1" : "Any long-format command line argument ", "_comment2" : "may be used in this JSON configuration file",
"url" : "http://127.0.0.1:8332", "user" : "rpcuser", "pass" : "rpcpass",
"url" : "http://127.0.0.1:8334", "user" : "rpcuser2", "pass" : "rpcpass2",
"algo" : "sse2_64", "threads" : "4",
"quiet" : true }
|
|
|
|
-ck (OP)
Legendary
Offline
Activity: 4228
Merit: 1644
Ruu \o/
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 19, 2011, 11:23:34 AM |
|
I'm not sure if the config file works. Probably not yet. I spent an awful lot of time getting this feature working and then wanted to release it because the demand for it was high. I was hoping people would test it and then I could worry about the interface...
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
|
-ck (OP)
Legendary
Offline
Activity: 4228
Merit: 1644
Ruu \o/
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 19, 2011, 01:52:08 PM |
|
Updated git tree: - The order of urls/user/pass is not critical any more so long as you give it the same number of urls and credentials - json config file is now working again. json does not allow the same entry to be used twice so for the time being, to get two or more pools working you need to create a config file for each and pass multiple -c to cgminer. I'm considering options for how to tackle this, but likely using a urlX counter in the parameters will be the solution I go with. Or move to a different format entirely.
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
smurfix
Newbie
Offline
Activity: 23
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 19, 2011, 02:04:00 PM |
|
Hi, for JSON a sensible multi-host config would look like this: { … connections: [ {url: " http://foo.example.org:8332", username: "bar", password: "baz"}, {url: " http://bar.example.org:8332", username: "baz", password: "quux"} ], … } I don't like the one-string " http://bar:baz@foo.example.org:8332" style. (a) it's ugly and human-unfriendly (b) you'll almost certainly get parsing that thing wrong (passwords with spaces in them, anyone?) (c) this way you can use additional options, like different timeouts or "ignore this host's longpoll offer, it's broken" options, per connection.
|
|
|
|
|