Bitcoin Forum
December 09, 2016, 06:11:10 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 [30] 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 »
  Print  
Author Topic: An (even more) optimized version of cpuminer (pooler's cpuminer, CPU-only)  (Read 1530395 times)
qzx881112
Jr. Member
*
Offline Offline

Activity: 41



View Profile
June 22, 2013, 02:31:03 AM
 #581

hi pooler,

is this miner optimized for SSE 4.1?

thanks

1481263870
Hero Member
*
Offline Offline

Posts: 1481263870

View Profile Personal Message (Offline)

Ignore
1481263870
Reply with quote  #2

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

Posts: 1481263870

View Profile Personal Message (Offline)

Ignore
1481263870
Reply with quote  #2

1481263870
Report to moderator
1481263870
Hero Member
*
Offline Offline

Posts: 1481263870

View Profile Personal Message (Offline)

Ignore
1481263870
Reply with quote  #2

1481263870
Report to moderator
pooler
Hero Member
*****
Offline Offline

Activity: 644


View Profile
June 22, 2013, 02:25:36 PM
 #582

is this miner optimized for SSE 4.1?
The algorithm implementations don't use any SSE4 instruction. I just didn't find much use for them.

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
PSL
Member
**
Offline Offline

Activity: 113


View Profile
June 24, 2013, 07:28:04 AM
 #583

I run cpuminer at ARM CPU and it crashes when I try to mine MNC from local p2pool. I tried other scrypt coins on the same ARM machine (Toshiba AC100 running Ubuntu 12.10) with similar configurations and those are OK. cpuminer crashes only when I try to mine MNC from local p2pool. I tried the same configuration at AMD64 and i386 but those work fine. MNC crashes at ARM are 100% repeatable.

Technical details:
Code:
$ minerd -V
cpuminer 2.3.1
libcurl/7.27.0 OpenSSL/1.0.1c zlib/1.2.7 libidn/1.25 librtmp/2.3

$ uname -a
Linux ac100u 3.1.10-6-ac100 #9-Ubuntu SMP Wed Oct 3 16:27:06 UTC 2012 armv7l armv7l armv7l GNU/Linux

$ cat /proc/cpuinfo
Processor       : ARMv7 Processor rev 0 (v7l)
processor       : 0
BogoMIPS        : 1987.37

processor       : 1
BogoMIPS        : 1987.37

Features        : swp half thumb fastmult vfp edsp thumbee vfpv3 vfpv3d16 tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x1
CPU part        : 0xc09
CPU revision    : 0

Hardware        : Toshiba AC100 / Dynabook AZ
Revision        : 0000
Serial          : 0000000000000000

$ minerd -a scrypt -s1 -o http://core.home:9771 -O MKu8qtbgp1oYa4jcwht4BucdJrFxMhc5Tt:x -D
[2013-06-24 08:58:50] 2 miner threads started, using 'scrypt' algorithm.
[2013-06-24 08:58:50] Binding thread 0 to cpu 0
[2013-06-24 08:58:50] Binding thread 1 to cpu 1
[2013-06-24 08:58:50] Starting Stratum on stratum+tcp://core.home:9771
[2013-06-24 08:58:50] Failed to get Stratum session id
[2013-06-24 08:58:50] Stratum difficulty set to 0.144607
[2013-06-24 08:58:50] DEBUG: job_id='144648547319056197500219055794967619236' extranonce2=0000 ntime=51c7ee1b
*** stack smashing detected ***: ./minerd terminated
Aborted (core dumped)

Protocol dump:
Code:
$ minerd -a scrypt -s1 -t1 -o http://core.home:9771 -O MKu8qtbgp1oYa4jcwht4BucdJrFxMhc5Tt:x -DP

[2013-06-24 09:35:16] 1 miner threads started, using 'scrypt' algorithm.
[2013-06-24 09:35:16] JSON protocol request:
{"method": "getwork", "params": [], "id":0}


* About to connect() to core.home port 9771 (#0)
*   Trying 192.168.222.9...
* TCP_NODELAY set
* connected
* Connected to core.home (192.168.222.9) port 9771 (#0)
* Server auth using Basic with user 'MKu8qtbgp1oYa4jcwht4BucdJrFxMhc5Tt'
> POST / HTTP/1.1
Authorization: Basic TUt1OHF0YmdwMW9ZYTRqY3dodDRCdWNkSnJGeE1oYzVUdDp4
Host: core.home:9771
Accept-Encoding: deflate, gzip
Content-Type: application/json
Content-Length: 45
User-Agent: cpuminer/2.3.1
X-Mining-Extensions: midstate

* additional stuff not fine transfer.c:1037: 0 0
* additional stuff not fine transfer.c:1037: 0 0
* HTTP 1.1 or later with persistent connection, pipelining supported
< HTTP/1.1 200 OK
< Content-Length: 662
< X-Roll-Ntime: expire=100
< X-Long-Polling: /long-polling
< Server: TwistedWeb/10.2.0
< X-Is-P2pool: true
< X-Stratum: stratum+tcp://core.home:9771
< Date: Mon, 24 Jun 2013 07:35:16 GMT
< Content-Type: application/json
<
* Connection #0 to host core.home left intact
[2013-06-24 09:35:16] JSON protocol response:
{
   "result": {
      "submitold": true,
      "data": "00000001ae7905966717cc474aa4bbcdadd3edb40c23c16c3d688d58b198720e06db5ec5a062a04696a8604fba857d23805ec55e9fc7e498d50b35050862081389b016f151c7f6921d03beb400000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000",
      "hash1": "00000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000010000",
      "target": "0000000000000000000000000000000000000000000000f4a9a3cd44ca190000",
      "identifier": "6936",
      "midstate": "46f3a9c53445ef1ea4e1ce9d99a637a39fcff41d09a8b9bb8068f2f07bc1a049"
   },
   "jsonrpc": "2.0",
   "error": null,
   "id": 0
}
[2013-06-24 09:35:16] Starting Stratum on stratum+tcp://core.home:9771
* About to connect() to core.home port 9771 (#0)
*   Trying 192.168.222.9...
* TCP_NODELAY set
* connected
* Connected to core.home (192.168.222.9) port 9771 (#0)
* Connection #0 to host core.home left intact
[2013-06-24 09:35:16] > {"id": 1, "method": "mining.subscribe", "params": ["cpuminer/2.3.1"]}
[2013-06-24 09:35:16] < {"error": null, "jsonrpc": "2.0", "id": 1, "result": [["mining.notify", "ae6812eb4cd7735a302a8a9dd95cf71f"], "", 2]}
[2013-06-24 09:35:16] Failed to get Stratum session id
[2013-06-24 09:35:16] > {"id": 2, "method": "mining.authorize", "params": ["MKu8qtbgp1oYa4jcwht4BucdJrFxMhc5Tt", "x"]}
[2013-06-24 09:35:16] < {"params": [0.6203833329345798], "jsonrpc": "2.0", "method": "mining.set_difficulty", "id": 69424852}
[2013-06-24 09:35:16] Stratum difficulty set to 0.620383
[2013-06-24 09:35:16] < {"params": ["190974152538387491535221088437790233360", "ae7905966717cc474aa4bbcdadd3edb40c23c16c3d688d58b198720e06db5ec5", "01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0b03e18d01062f503253482fffffffff0440420f00000000001976a9142c0cdd9704f52e76e5af0ddacb84ee3d2b81efe488acc07fdc0b000000001976a91483a059a9c570a9ce78ebc70cad81f7f1d822721c88ac0000000000000000434104ffd03de44a6e11b9917f3a29f9443283d9871c9d743ef30d5eddcd37094b64d1b3d8090496b53256786bf5c82932ec23c3b74d9f05a6f95a8b5529352656664bac00000000000000002524f35f09e45d5b8f29946da80d4d1124de4d288176ea50502e7ab6f4fcc0cb9ab10200", "00000000", [], "00000001", "1d03beb4", "51c7f692", true], "jsonrpc": "2.0", "method": "mining.notify", "id": 294034871}
[2013-06-24 09:35:16] < {"error": null, "jsonrpc": "2.0", "id": 2, "result": null}
[2013-06-24 09:35:16] DEBUG: job_id='190974152538387491535221088437790233360' extranonce2=0000 ntime=51c7f692
*** stack smashing detected ***: ./minerd terminated
Aborted (core dumped)

UPDATE:
I tried to replicate crash at Raspberry PI running Raspbian (ARMv6-compatible processor rev 7 (v6l)) but it runs OK...

$ uname -a
Linux raspberrypi 3.6.11+ #456 PREEMPT Mon May 20 17:42:15 BST 2013 armv6l GNU/Linux

UPDATE2:
When I disable stratum, it works OK at AC100:
Code:
$ minerd -a scrypt -s1 -t1 -o http://core.home:9771 -O MKu8qtbgp1oYa4jcwht4BucdJrFxMhc5Tt:x --no-stratum -D
[2013-06-24 09:59:59] 1 miner threads started, using 'scrypt' algorithm.
[2013-06-24 09:59:59] Long-polling activated for http://core.home:9771/long-polling
[2013-06-24 09:59:59] DEBUG: got new work in 107 ms
[2013-06-24 10:00:02] LONGPOLL detected new block
[2013-06-24 10:00:02] DEBUG: got new work
[2013-06-24 10:00:02] thread 0: 912 hashes, 0.31 khash/s
...
pooler
Hero Member
*****
Offline Offline

Activity: 644


View Profile
June 24, 2013, 09:40:07 PM
 #584

I run cpuminer at ARM CPU and it crashes [...]
Thanks for reporting, using the data you provided I was able to locate a bug that can cause a crash on certain Stratum data, but apparently only when compiling with older versions of gcc. It's not an architecture-dependent bug, though.
I have pushed a fix to the git repo, would you be so kind to test it?

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
postcd
Full Member
***
Offline Offline

Activity: 162



View Profile WWW
June 26, 2013, 10:19:36 AM
 #585

there is guide how to install, but please how to configure it and run (for linux noobs) ?

Bitcoin Hosting, Server? InstantcPanelHosting.com
Contact me. Im selling licenses ; bitcoin and PerfectMoney for SEPA.
PSL
Member
**
Offline Offline

Activity: 113


View Profile
June 26, 2013, 07:11:25 PM
 #586

I run cpuminer at ARM CPU and it crashes [...]

I have pushed a fix to the git repo, would you be so kind to test it?

Fixed version of cpuminer was tested and it is OK. Thank you!
dmatthewstewart
Sr. Member
****
Offline Offline

Activity: 415



View Profile
June 26, 2013, 07:29:04 PM
 #587

Question on CFLAGS:

When I configure CFLAGS="-03" is says that "C cannot compile executables"

But if I use "./configure CPPFLAGS="" and then "make" tehre are no errors after the configure command

Does this make any sense and is there any reason NOT to do this when the miner seems to work just fine (sometimes better depending on the pool)?

I put a paste up addressing this issue.

http://pastebin.com/iLSck4ES

Please not that I am aware of teh typo re: "CPFLAGS" it was supposed to read "CFLAGS"

Would like some feedback

Thanks

pooler
Hero Member
*****
Offline Offline

Activity: 644


View Profile
June 26, 2013, 07:37:38 PM
 #588

When I configure CFLAGS="-03" is says that "C cannot compile executables"
It's "-O3", not "-03". See the difference? (It's big O, not zero.)

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
nostromo429
Newbie
*
Offline Offline

Activity: 14


View Profile
June 27, 2013, 12:13:28 AM
 #589

Hi pooler,

is there built in support for failover to different configurations if (eg) a p2pool node goes down, or would one need to write their own external script for that?
pooler
Hero Member
*****
Offline Offline

Activity: 644


View Profile
June 27, 2013, 08:22:39 AM
 #590

is there built in support for failover to different configurations if (eg) a p2pool node goes down, or would one need to write their own external script for that?
No native support for that at this point, sorry. See here for some sample failover scripts.

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
dmatthewstewart
Sr. Member
****
Offline Offline

Activity: 415



View Profile
June 27, 2013, 12:49:51 PM
 #591

When I configure CFLAGS="-03" is says that "C cannot compile executables"
It's "-O3", not "-03". See the difference? (It's big O, not zero.)

Holy Crap!! That is why it always says that it cannot compile executables!

Thanks Pooler, Ive been doing this wrong for a long time


dmatthewstewart
Sr. Member
****
Offline Offline

Activity: 415



View Profile
June 27, 2013, 12:59:06 PM
 #592

When I configure CFLAGS="-03" is says that "C cannot compile executables"
It's "-O3", not "-03". See the difference? (It's big O, not zero.)

One other question for Pooler...Will changing my scantime affect performance on older, slower computers?

pooler
Hero Member
*****
Offline Offline

Activity: 644


View Profile
June 27, 2013, 01:18:57 PM
 #593

Will changing my scantime affect performance on older, slower computers?
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.

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
Brunt, FCA
Jr. Member
*
Offline Offline

Activity: 58



View Profile
July 02, 2013, 09:24:44 AM
 #594

I am trying to use this software on a work computer that uses a proxy, so I have addded "-x http://<proxy address>:8082"
The output from the terminal says "[2013-07-02 10:17:04] HTTP request failed: The requested URL returned error: 407 Proxy Authentication Required"
The proxy needs me to add a user name, which I do know.
What is the correct format to add my user name to the proxy option to make it work?
K1773R
Legendary
*
Offline Offline

Activity: 1526


/dev/null


View Profile
July 02, 2013, 09:49:53 AM
 #595

I am trying to use this software on a work computer that uses a proxy, so I have addded "-x http://<proxy address>:8082"
The output from the terminal says "[2013-07-02 10:17:04] HTTP request failed: The requested URL returned error: 407 Proxy Authentication Required"
The proxy needs me to add a user name, which I do know.
What is the correct format to add my user name to the proxy option to make it work?
http style

[GPG Public Key]  [Devcoin Builds]  [BBQCoin Builds]  [Multichain Blockexplorer]  [Multichain Blockexplorer - PoS Coins]  [Ufasoft Miner Linux Builds]
BTC/DVC/TRC/FRC: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
Brunt, FCA
Jr. Member
*
Offline Offline

Activity: 58



View Profile
July 02, 2013, 09:58:48 AM
 #596

Quote
http style
I don't understand what you mean.
I have tried using  -x http://<proxy address>:8082:<user name> but this doesn't work.
I need to know the correct syntax to add the user name.
K1773R
Legendary
*
Offline Offline

Activity: 1526


/dev/null


View Profile
July 02, 2013, 11:11:21 AM
 #597

Quote
http style
I don't understand what you mean.
I have tried using  -x http://<proxy address>:8082:<user name> but this doesn't work.
I need to know the correct syntax to add the user name.
according to rfc: http://<user>:<pw>@<host>[<port>]

[GPG Public Key]  [Devcoin Builds]  [BBQCoin Builds]  [Multichain Blockexplorer]  [Multichain Blockexplorer - PoS Coins]  [Ufasoft Miner Linux Builds]
BTC/DVC/TRC/FRC: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
Brunt, FCA
Jr. Member
*
Offline Offline

Activity: 58



View Profile
July 02, 2013, 11:25:14 AM
 #598

Quote
according to rfc: http://<user>:<pw>@<host>[<port>]
OK, thanks for your help, I'll try out that configuration tomorrow.
I'm not convinced that it will work though because my username also has an @ symbol in it.
K1773R
Legendary
*
Offline Offline

Activity: 1526


/dev/null


View Profile
July 02, 2013, 12:27:07 PM
 #599

Quote
according to rfc: http://<user>:<pw>@<host>[<port>]
OK, thanks for your help, I'll try out that configuration tomorrow.
I'm not convinced that it will work though because my username also has an @ symbol in it.
then use the -u and -p for auth and the -o just without credentials

[GPG Public Key]  [Devcoin Builds]  [BBQCoin Builds]  [Multichain Blockexplorer]  [Multichain Blockexplorer - PoS Coins]  [Ufasoft Miner Linux Builds]
BTC/DVC/TRC/FRC: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
Brunt, FCA
Jr. Member
*
Offline Offline

Activity: 58



View Profile
July 02, 2013, 01:16:39 PM
 #600

Quote
then use the -u and -p for auth and the -o just without credentials
I don't have any problem with the username and password for the pool I am using, I just have a problem figuring out the correct syntax to use with the -x option for the proxy server that that particular computer is using. The proxy username is PUBLIC\*****@LibraryPublic
So you are saying it should look like:
-x http://PUBLIC\*****@LibraryPublic@***.***.***.***:8082 ?
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 [30] 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!