Pages:
Author

Topic: An (even more) optimized version of cpuminer (pooler's cpuminer, CPU-only) - page 34. (Read 1958613 times)

sr. member
Activity: 259
Merit: 250
Thanks pooler.  That's helpful, but I'm still having timeouts.  I think it's something client side.  But, I'm having issues verifying that at the moment.  I'm going to work on it some more later. But, it's helpful to know it's working for you and not broke.
sr. member
Activity: 259
Merit: 250
Has anybody tested --proxy?  I've got a dynamic socks proxy setup (ssh -ND yadayada)... tested it as working with Firefox and stratum-mining-proxy.  But when I point minerd at it with --proxy socks5://blahblah it times out:
I've just tested it with three different SOCKS proxies (a public proxy, Tor and SSH) and it seems to be working fine. Have you made sure that in the argument to the --url/-o option the protocol prefix matches the type of server (Stratum or HTTP)?

Crap... I think that's it.  Let me check. :p
hero member
Activity: 849
Merit: 507
Has anybody tested --proxy?  I've got a dynamic socks proxy setup (ssh -ND yadayada)... tested it as working with Firefox and stratum-mining-proxy.  But when I point minerd at it with --proxy socks5://blahblah it times out:
I've just tested it with three different SOCKS proxies (a public proxy, Tor and SSH) and it seems to be working fine. Have you made sure that in the argument to the --url/-o option the protocol prefix matches the type of server (Stratum or HTTP)?
sr. member
Activity: 259
Merit: 250
Pooler... or anybody who might know.

Has anybody tested --proxy?  I've got a dynamic socks proxy setup (ssh -ND yadayada)... tested it as working with Firefox and stratum-mining-proxy.  But when I point minerd at it with --proxy socks5://blahblah it times out:

Code:
[root@localhost ~]# ./minerd -o poolnamehere:3332 -u user.x -p 12345 -x socks5://socksIPhere:1080 -D
[2013-12-09 10:40:55] Binding thread 0 to cpu 0
[2013-12-09 10:40:55] Binding thread 1 to cpu 1
[2013-12-09 10:40:55] Binding thread 2 to cpu 2
[2013-12-09 10:40:55] 4 miner threads started, using 'scrypt' algorithm.
[2013-12-09 10:40:55] Binding thread 3 to cpu 3
[2013-12-09 10:41:06] HTTP request failed:
[2013-12-09 10:41:06] json_rpc_call failed, retry after 30 seconds

Again pointing Firefox at the same proxy allows access to the outside world.  Here is ssh debug output... seems like it's not liking something:

Code:
debug1: channel 1: new [dynamic-tcpip]
debug2: channel 1: pre_dynamic: have 0
debug2: channel 1: pre_dynamic: have 3
debug2: channel 1: decode socks5
debug2: channel 1: socks5 auth done
debug2: channel 1: pre_dynamic: need more
debug2: channel 1: pre_dynamic: have 0
debug2: channel 1: read<=0 rfd 5 len 0
debug2: channel 1: not open
debug2: channel 1: zombie
debug2: channel 1: garbage collecting
debug1: channel 1: free: dynamic-tcpip, nchannels 2


Any ideas?
jr. member
Activity: 56
Merit: 1
How do I know its running. Its showing block found etc etc. However, in my account Under Worker The Status shows as (X). Can anyone help me please.
full member
Activity: 172
Merit: 100
quickest cross blockchain transactions
Fun little piece of software! I'm getting about 100 kh/s on my 4770k. That's nearly a third of what my 7850 is doing.
hero member
Activity: 798
Merit: 1000
Ok so this is the third day I've been trying to get this running. No luck. I am using Ubuntu 13.10 and I've been using a lot of tuts from here to try to install it. No luck. Last one I've used was from this thread https://bitcointalksearch.org/topic/yacoin-cpuminer-released-very-soon-pools-will-be-availaible-for-this-coin-200147 it gave me errors at ./autogen.sh telling me it doesn't exist. Is there some complete tutorial on how to install it. I can configure it later for different pools that is easy.

Why don't you just download the binaries from the first post for Linux.  There's a 32bit and 64bit one.  I have the 64bit running on my Lubuntu and Xubuntu workstations now from those binaries.
Because only line script is available to me. True it would be a lot easier that way if I could just use the binaries, but I can't. Can't believe there no tut that works around here.

Wait, so you're trying to run cpuminer on an Ubuntu server/station that you don't have permissions to wget and execute binaries but you do have permissions to compile?  Not quite seeing why you can't use wget to download the binaries from the shell.
sr. member
Activity: 406
Merit: 250
Ok so this is the third day I've been trying to get this running. No luck. I am using Ubuntu 13.10 and I've been using a lot of tuts from here to try to install it. No luck. Last one I've used was from this thread https://bitcointalksearch.org/topic/yacoin-cpuminer-released-very-soon-pools-will-be-availaible-for-this-coin-200147 it gave me errors at ./autogen.sh telling me it doesn't exist. Is there some complete tutorial on how to install it. I can configure it later for different pools that is easy.

Why don't you just download the binaries from the first post for Linux.  There's a 32bit and 64bit one.  I have the 64bit running on my Lubuntu and Xubuntu workstations now from those binaries.
Because only line script is available to me. True it would be a lot easier that way if I could just use the binaries, but I can't. Can't believe there no tut that works around here.
hero member
Activity: 798
Merit: 1000
Ok so this is the third day I've been trying to get this running. No luck. I am using Ubuntu 13.10 and I've been using a lot of tuts from here to try to install it. No luck. Last one I've used was from this thread https://bitcointalksearch.org/topic/yacoin-cpuminer-released-very-soon-pools-will-be-availaible-for-this-coin-200147 it gave me errors at ./autogen.sh telling me it doesn't exist. Is there some complete tutorial on how to install it. I can configure it later for different pools that is easy.

Why don't you just download the binaries from the first post for Linux.  There's a 32bit and 64bit one.  I have the 64bit running on my Lubuntu and Xubuntu workstations now from those binaries.
sr. member
Activity: 406
Merit: 250
Ok so this is the third day I've been trying to get this running. No luck. I am using Ubuntu 13.10 and I've been using a lot of tuts from here to try to install it. No luck. Last one I've used was from this thread https://bitcointalksearch.org/topic/yacoin-cpuminer-released-very-soon-pools-will-be-availaible-for-this-coin-200147 it gave me errors at ./autogen.sh telling me it doesn't exist. Is there some complete tutorial on how to install it. I can configure it later for different pools that is easy.
hero member
Activity: 849
Merit: 507
Code:
$ ./minerd -a quark -o stratum+tcp://qrk.coinmine.pl:6010 -u matthewh3.1 -p x
Try `minerd --help' for more information.
Wrong thread. This miner only supports algorithms SHA-256d and scrypt.
legendary
Activity: 1372
Merit: 1003
Code:
$ ./minerd -a quark -o stratum+tcp://qrk.coinmine.pl:6010 -u matthewh3.1 -p x
Try `minerd --help' for more information.

Anyone know what the correct argument is that I need to put?
hero member
Activity: 849
Merit: 507
All my internet traffic needs to go through a proxy server. I have no problem mining BTC using any miner that lets me specific a proxy i.e cgminer...bfgminer.

I'm now try to mine LTC via scrypt + CPU + cpuminer. This is was I use.

minerd --url=stratum+tcp://global.wemineltc.com:3333 --proxy=http://proxy:8080 -u xxx -p xxx

Stratum connection failed: Failed connect to global.wemineltc.com:3333; No error
You can't use Stratum with a HTTP proxy because Stratum does not operate over HTTP, but you can use a SOCKS4/5 proxy.
newbie
Activity: 19
Merit: 0
Guys I seem to be having some problem using CPUminer behind a firewall.

All my internet traffic needs to go through a proxy server. I have no problem mining BTC using any miner that lets me specific a proxy i.e cgminer...bfgminer.

I'm now try to mine LTC via scrypt + CPU + cpuminer. This is was I use.

minerd --url=stratum+tcp://global.wemineltc.com:3333 --proxy=http://proxy:8080 -u xxx -p xxx

Stratum connection failed: Failed connect to global.wemineltc.com:3333; No error

 Embarrassed

I'm also looking at going through stratum proxy but I don't think it supports a proxy server? Any help from you guys will be greatly appreciated!!

newbie
Activity: 34
Merit: 0
2.) Is there anyway to have it run in the background, I have a million spreadsheets open at once and I keep closing the minimized window by accident.

shell "C:\Users\YOU\yourconfig.bat", vbHide

Step by step for dummies.  Thought based on some reading probably not a good idea to mine on my latptop anyway.  Still handy for the couple desktops we have in the office.

Here you can: http://thomasvanhoutte.be/blog/2013/12/04/hide-cpugpu-miner-window/

Also, there is an explanation on how to run your miner (in the background) on system start-up.

Enjoy!
legendary
Activity: 1792
Merit: 1008
/dev/null
Solo mining for the first time here.

When pool mining the cmd window shows my cpu info and reprints it when pool finds block.

Solo mining prints info just once (no blocks yet i get it) but how do i know its not just frozen?

It just says bind thread 8 times  (0-7) thats it. No mh reading or anything.

Is my little comp dead in the water or is this how cpuminer works while solo mining?
yes this is normal, check your CPU usage Wink
solomining with CPUs wont get you any blocks on the bigger coins.
sr. member
Activity: 588
Merit: 251
Solo mining for the first time here.

When pool mining the cmd window shows my cpu info and reprints it when pool finds block.

Solo mining prints info just once (no blocks yet i get it) but how do i know its not just frozen?

It just says bind thread 8 times  (0-7) thats it. No mh reading or anything.

Is my little comp dead in the water or is this how cpuminer works while solo mining?
hero member
Activity: 849
Merit: 507
i noticed long ago in the miner_thread() function the scantime setting does not do anything
unless Stratum and Longpolling is NOT found.. i can prove this easily and show lines of source doe etc

SO this leads me to believe a lot of people out there are led to believe --scantime may be doing something when in fact it can't

Is this by design ?

i have made my own mod(s) on this mod of yours and fixed it so to speak. (i made a mod of cudaminer and quarkminer that are based on your miner)

so do you know what i am saying or should post the exact parts of the code ?
Brief note on the -s/--scantime option
I have seen people suggest various values for this option in order to reduce stales when mining in pools.
The funny thing is that, to my knowledge, all Litecoin pools have long polling permanently enabled (which is good), and when long polling is enabled the scantime parameter is completely ignored.
For this reason, the use of this parameter only makes sense when you are mining solo.
Is having a lower scantime better when solo mining?
If you are solo mining you may want to set it to a lower value than the default (5 seconds), provided that the *coin daemon is running locally. That can lower the probability of your solutions getting rejected.
If you are mining at a pool, the option is completely ignored by the miner, as better solutions (long polling or Stratum) will then be available.
legendary
Activity: 1540
Merit: 1011
FUD Philanthropist™
i noticed long ago in the miner_thread() function the scantime setting does not do anything
unless Stratum and Longpolling is NOT found.. i can prove this easily and show lines of source doe etc

SO this leads me to believe a lot of people out there are led to believe --scantime may be doing something when in fact it can't

Is this by design ?

i have made my own mod(s) on this mod of yours and fixed it so to speak. (i made a mod of cudaminer and quarkminer that are based on your miner)

so do you know what i am saying or should post the exact parts of the code ?
hero member
Activity: 849
Merit: 507
source force say : specific :  "pthreadGC2.dll" (for 32-bit programs) or "pthreadGC2_64.dll" (for 64-bit programs)
Not sure what you are referring to. The filename is just a name. As they say, a rose by any other name would smell as sweet.

Anyway, I have briefly tested the 64-bit package with wine64, and as expected it doesn't work if I remove pthreadGC2.dll or if I replace it with the one from the 32-bit package. That pretty much proves that the file is 64-bit, to me. I'm not a Windows expert, but I do know that function calling conventions are different for 32-bit and 64-bit programs, so I very much doubt that a 64-bit program can use 32-bit libraries.
Pages:
Jump to: