Bitcoin Forum
December 09, 2016, 02:02:46 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 1530365 times)
Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1526

Reverse engineer from time to time


View Profile
January 16, 2012, 01:05:38 PM
 #181

Because you trying to run the 64-bit minerd.exe process with the 32-bit pthreadGC2.dll OR you are trying to run an old version of minerd by double clicking it. i.e no arguments in which case it will crash due to an uninitialized mutex lock.
I believe it to be the latter!

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
ripper234
Legendary
*
Offline Offline

Activity: 1260


Ron Gross


View Profile WWW
January 16, 2012, 01:07:33 PM
 #182

Because you trying to run the 64-bit minerd.exe process with the 32-bit pthreadGC2.dll as far as I can see

How can I fix? This was some time ago, but I do believe I took one complete binary from the top of this thread and ran it, I didn't inject any DLLs of my own into it.

Please do not pm me, use ron@bitcoin.org.il instead
Mastercoin Executive Director
Co-founder of the Israeli Bitcoin Association
Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1526

Reverse engineer from time to time


View Profile
January 16, 2012, 01:11:09 PM
 #183

Your crash is with time stamp 1324309652 which is Dec 19 2011. You are using older binaries.

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
ripper234
Legendary
*
Offline Offline

Activity: 1260


Ron Gross


View Profile WWW
January 16, 2012, 01:41:39 PM
 #184

Your crash is with time stamp 1324309652 which is Dec 19 2011. You are using older binaries.

Alright, it was indeed a while since I tried.
I'll try again today/tomorrow when I get home with the latest binaries.

Please do not pm me, use ron@bitcoin.org.il instead
Mastercoin Executive Director
Co-founder of the Israeli Bitcoin Association
ripper234
Legendary
*
Offline Offline

Activity: 1260


Ron Gross


View Profile WWW
January 16, 2012, 10:13:20 PM
 #185

Nice, I finally tried this, got a fresh install, and everything worked - I probably did mix some DLLs before.

Got a 300% increase in performance - it might be worth it to mine again.

Is there a mining profitability calculator for LTC? I'm too lazy to do the math.
Some website with a textbox where I can input like 35k hashes/sec and get a result in LTC/day.

Please do not pm me, use ron@bitcoin.org.il instead
Mastercoin Executive Director
Co-founder of the Israeli Bitcoin Association
pooler
Hero Member
*****
Offline Offline

Activity: 644


View Profile
January 16, 2012, 11:23:23 PM
 #186

Nice, I finally tried this, got a fresh install, and everything worked - I probably did mix some DLLs before.

Got a 300% increase in performance - it might be worth it to mine again.

Is there a mining profitability calculator for LTC? I'm too lazy to do the math.
Some website with a textbox where I can input like 35k hashes/sec and get a result in LTC/day.

http://allchains.info/calc.html
http://www.litecoinpool.org/calc

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
ripper234
Legendary
*
Offline Offline

Activity: 1260


Ron Gross


View Profile WWW
January 17, 2012, 05:53:22 AM
 #187

Nice, I finally tried this, got a fresh install, and everything worked - I probably did mix some DLLs before.

Got a 300% increase in performance - it might be worth it to mine again.

Is there a mining profitability calculator for LTC? I'm too lazy to do the math.
Some website with a textbox where I can input like 35k hashes/sec and get a result in LTC/day.

http://allchains.info/calc.html
http://www.litecoinpool.org/calc

Sweet, so at current difficulty I should be netting about 30 coins a day.
Historically I always felt like I solved less blocks than I should have. Will keep an eye on this.

Please do not pm me, use ron@bitcoin.org.il instead
Mastercoin Executive Director
Co-founder of the Israeli Bitcoin Association
GenTarkin
Legendary
*
Offline Offline

Activity: 1918


View Profile
January 18, 2012, 08:27:35 PM
 #188

Small update here, using the latest version posted ..
A stock FX4100 achieves nearly 5kh/s/core

GenTarkin's MOD Kncminer Titan custom firmware! v1.0.4! <--- CLICK HERE
Donations: bitcoin- 1Px71mWNQNKW19xuARqrmnbcem1dXqJ3At || litecoin- LYXrLis3ik6TRn8tdvzAyJ264DRvwYVeEw
pooler
Hero Member
*****
Offline Offline

Activity: 644


View Profile
January 21, 2012, 01:13:04 AM
 #189

If you are watching the GitHub repo, you may have noticed that I have released a few new versions of the miner.

Here are the most interesting minor changes:
  • First off, I have finally started changing the version number, which is now 2.1.1. I have also updated the NEWS file to reflect the main changes introduced since jgarzik's last release.
  • No new performance optimizations since the January 11 version. Nonetheless, the reported hashrate could be slightly higher or lower (depending on your CPU, CFLAGS and compiler version) because of some minor changes I made to the C wrapper of the hashing function. For some reason, it seems to be slightly faster on K10's. I am talking of fluctuations of the order of +/- 0.5%, so nothing one should worry about.
  • Now the miner automatically sets its priority to idle on Windows.
  • I have fixed the short options -u and -p, that didn't work, and I have added short versions of --url and --userpass, following the naming convention used by cgminer (-o and -O).

Finally, the most important change. I have tried to drastically increase the getwork efficiency of the miner, so that it spends less time waiting for new work. Indirectly, this should also make the miner faster, even if the speed increase will not be reflected in the reported hashrate, that only takes hashing time into consideration. These are the changes that make the efficiency increase possible:
  • The miner no more discards the work returned by long polling.
  • If long polling is available, do not ask for new work until the current work is at least 60 seconds old.
  • Since the nonce space is quite vast, we don't need different work for each thread. All threads can use the work returned by just one getwork requests.

The latest sources and a couple new binaries for Windows are available at the usual location:
https://github.com/pooler/cpuminer

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
drakahn
Hero Member
*****
Offline Offline

Activity: 504



View Profile
January 21, 2012, 01:24:31 AM
 #190

  • Now the miner automatically sets its priority to idle on Windows.

Wonderful.

14ga8dJ6NGpiwQkNTXg7KzwozasfaXNfEU
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 1414

Newbie


View Profile
January 21, 2012, 08:03:02 AM
 #191

Finally, the most important change. I have tried to drastically increase the getwork efficiency of the miner, so that it spends less time waiting for new work. Indirectly, this should also make the miner faster, even if the speed increase will not be reflected in the reported hashrate, that only takes hashing time into consideration.

Very good idea! Would be great if ur miner reported the "real" hashrate as well. So miners would see how hashrate depends on their network/computer settings and could tweak settings.
hangover
Newbie
*
Offline Offline

Activity: 14



View Profile WWW
January 25, 2012, 04:30:58 AM
 #192

Unfortunately, new version doesn't compile under FreeBSD 8.2-RELEASE-p2 amd64 with following error:

Code:
# gmake
gmake  all-recursive
gmake[1]: Entering directory `/usr/home/qwe/cpuminer'
Making all in compat
gmake[2]: Entering directory `/usr/home/qwe/cpuminer/compat'
Making all in jansson
gmake[3]: Entering directory `/usr/home/qwe/cpuminer/compat/jansson'
gmake[3]: Nothing to be done for `all'.
gmake[3]: Leaving directory `/usr/home/qwe/cpuminer/compat/jansson'
gmake[3]: Entering directory `/usr/home/qwe/cpuminer/compat'
gmake[3]: Nothing to be done for `all-am'.
gmake[3]: Leaving directory `/usr/home/qwe/cpuminer/compat'
gmake[2]: Leaving directory `/usr/home/qwe/cpuminer/compat'
gmake[2]: Entering directory `/usr/home/qwe/cpuminer'
gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson -I/usr/local/include   -g -O2 -MT minerd-scrypt-x64.o -MD -MP -MF .deps/minerd-scrypt-x64.Tpo -c -o minerd-scrypt-x64.o `test -f 'scrypt-x64.S' || echo './'`scrypt-x64.S
scrypt-x64.S: Assembler messages:
scrypt-x64.S:1700: Error: `(%ebp,%ebp,2)' is not a valid 64 bit base/index expression
scrypt-x64.S:1704: Error: `(%ebx,%ebx,2)' is not a valid 64 bit base/index expression
scrypt-x64.S:1709: Error: `(%r8d,%r8d,2)' is not a valid 64 bit base/index expression
gmake[2]: *** [minerd-scrypt-x64.o] Error 1
gmake[2]: Leaving directory `/usr/home/qwe/cpuminer'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/home/qwe/cpuminer'
gmake: *** [all] Error 2


If you find this post useful, you can donate some bitcoins to 1EEVoXSDU2o4jYED394wR1bKMVezsmiU4T
pooler
Hero Member
*****
Offline Offline

Activity: 644


View Profile
January 25, 2012, 11:43:01 AM
 #193

Unfortunately, new version doesn't compile under FreeBSD 8.2-RELEASE-p2 amd64 with following error:
{code}

My guess is that your version of binutils is too old. Try issuing "ld --version".

In the next release I will try to avoid this problem by changing a few instructions.

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

Activity: 14



View Profile WWW
January 25, 2012, 05:42:38 PM
 #194

Yes, you're right - base FreeBSD version is too old:

Code:
$ ld --version
GNU ld version 2.15 [FreeBSD] 2004-05-23
Copyright 2002 Free Software Foundation, Inc.

Thank you, will search for workaround.

If you find this post useful, you can donate some bitcoins to 1EEVoXSDU2o4jYED394wR1bKMVezsmiU4T
pooler
Hero Member
*****
Offline Offline

Activity: 644


View Profile
January 26, 2012, 02:40:38 PM
 #195

Version 2.1.2

  • Do not submit work that is known to be stale (gaining some more time for hashing).
  • Allow miner threads to ask for new work if the current one is at least 45 seconds old and long polling is enabled. This should avoid having all miners asking for work at the same time.
  • Refresh work when long polling times out, in order to avoid working on stale work.
  • Modify x86-64 code to make it compatible with older versions of binutils.

Source code and Windows/OS X binaries: https://github.com/pooler/cpuminer

hangover: this version should build correctly with binutils 2.15. Let me know if the assembler still complains.

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

Activity: 73


View Profile WWW
February 02, 2012, 06:18:48 AM
 #196

Very happy in the update of this ... i was able to increase my overall hashrate by 3 fold

Xrnetworks.com Web Hosting
Fuzzy
Hero Member
*****
Offline Offline

Activity: 560



View Profile
February 02, 2012, 08:10:42 AM
 #197

(Just looked into this "LiteCoin" thing today) Followed the instructions on pool-x for my i7-2600k, got 8.8 khash total for 4 cores.

Just replaced the default files with your ones, now getting 10.5 khash, PER CORE, for a total of 42.0 khash

Wow   Shocked
pooler
Hero Member
*****
Offline Offline

Activity: 644


View Profile
February 02, 2012, 10:38:34 PM
 #198

Binaries of version 2.1.2 for Mac OS X are now available.
https://github.com/pooler/cpuminer/downloads

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
dishwara
Legendary
*
Offline Offline

Activity: 1372

Truth may get delay, but NEVER fails


View Profile
February 03, 2012, 06:18:11 AM
 #199

I am using win 7, 64 bit & i downloaded 2.1.2 from first page & i created a bat file with this code

minerd.exe -t 3 -o http://litecoinpool.org:9332/ -O xxxxx:xxxx

I am getting 15-16 khash/s on Intel core2 Quad Q8400, clock 2.6GHz, threads/core 3

Is that enough or i need further add anything?
illpoet
Sr. Member
****
Offline Offline

Activity: 341


View Profile
February 04, 2012, 11:38:47 AM
 #200

looks like you are good to go. all you need to do know is collect your coins!

Tym's Get Rich Slow scheme: plse send .00001 to
btc: 1DKRaNUnMQkeby6Dk1d8e6fRczSrTEhd8p ltc: LV4Udu7x9aLs28MoMCzsvVGKJbSmrHESnt
thank you.
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!