Bitcoin Forum
May 12, 2024, 12:21:33 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 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 61 62 63 64 65 66 67 68 69 70 71 »
  Print  
Author Topic: An (even more) optimized version of cpuminer (pooler's cpuminer, CPU-only)  (Read 1958278 times)
ottong
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
August 09, 2014, 12:23:35 PM
 #1061

my comp not strong to mining
 Cry Cry Cry Cry Cry Cry
"Bitcoin: the cutting edge of begging technology." -- Giraffe.BTC
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715516493
Hero Member
*
Offline Offline

Posts: 1715516493

View Profile Personal Message (Offline)

Ignore
1715516493
Reply with quote  #2

1715516493
Report to moderator
1715516493
Hero Member
*
Offline Offline

Posts: 1715516493

View Profile Personal Message (Offline)

Ignore
1715516493
Reply with quote  #2

1715516493
Report to moderator
elhee
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
August 14, 2014, 02:12:04 PM
 #1062

Current Version: 2.4 (May 20, 2014) - Changelog
Source tarball: http://sourceforge.net/projects/cpuminer/files/pooler-cpuminer-2.4.tar.gz
Binaries for Windows:
http://sourceforge.net/projects/cpuminer/files/pooler-cpuminer-2.4-win32.zip (32-bit)
http://sourceforge.net/projects/cpuminer/files/pooler-cpuminer-2.4-win64.zip  (64-bit)
Binaries for Linux:
http://sourceforge.net/projects/cpuminer/files/pooler-cpuminer-2.4-linux-x86.tar.gz (x86)
http://sourceforge.net/projects/cpuminer/files/pooler-cpuminer-2.4-linux-x86_64.tar.gz (x86-64)
Binaries for Mac OS X: (courtesy of shawnp0wers and Tachikoma)
http://sourceforge.net/projects/cpuminer/files/pooler-cpuminer-2.4-osx32.zip (32-bit)
http://sourceforge.net/projects/cpuminer/files/pooler-cpuminer-2.4-osx64.zip (64-bit)

SHA-256 Checksums
Code:
3d5b7bc01ff52db013d8a551984f9699864e0def5b87528813e34c168662837a  pooler-cpuminer-2.4.tar.gz
641b39a0ee7d533209b91a811da9b6a84b2c27f599a0e1c2d4ff113a5fd7e3ac  pooler-cpuminer-2.4-linux-x86_64.tar.gz
fcf6b8ab25f0a2bbb142102a9eb01b600ddbe9b4362ff1870ebb3a2462b4da36  pooler-cpuminer-2.4-linux-x86.tar.gz
9886a72d47a43eec126f56df8b510b6cc1a0a82448c02080da5eb19e53fcca0e  pooler-cpuminer-2.4-osx32.zip
77a5581aa2b133802f555b48f8123724e294799861236bbca718eae2daa04297  pooler-cpuminer-2.4-osx64.zip
fa70992d541dae073cbf5fd47ed646f0c961ddffa7fa5690a6e0f8f139c0eaef  pooler-cpuminer-2.4-win32.zip
6f53f2f7d7c5ce78c74282e5b74ba6b5da22d5173f4a7bfddb57b21c1fc24f38  pooler-cpuminer-2.4-win64.zip

Basic usage examples
Code:
$ ./minerd --url=http://myminingpool.com:9332 --userpass=my.worker:password
$ ./minerd --url=stratum+tcp://myminingpool.com:3333 --userpass=my.worker:password
For more information:
Code:
$ ./minerd --help

Building instructions
Installing dependencies for building on Debian, Ubuntu and other APT-based distros:
Code:
$ sudo apt-get install build-essential libcurl4-openssl-dev
Installing dependencies for building on Fedora, RHEL, CentOS and other yum-based distros:
Code:
$ sudo yum install gcc make curl-devel
Installing dependencies for building on OpenSUSE and other ZYpp-based distros:
Code:
$ sudo zypper in gcc make libcurl-devel
Recipe for building on Linux:
Code:
$ wget http://sourceforge.net/projects/cpuminer/files/pooler-cpuminer-2.4.tar.gz
$ tar xzf pooler-cpuminer-*.tar.gz
$ cd cpuminer-*
$ ./configure CFLAGS="-O3"
$ make

FAQ / Troubleshooting

Q: Should I call this miner "cpuminer" or "minerd"?
A: The software package is called "cpuminer". "minerd" ("miner daemon") is just the name of the executable file provided by the package.

Q: My antivirus flags the Windows binary as malware.
A: That's a known false positive. More information here.

Q: Can I mine (insert your cryptocoin here) with this miner?
A: Only if its proof-of-work algorithm is scrypt or SHA-256d. This miner does not currently support other algorithms such as Keccak, scrypt-jane, X11, etc. Forks of this project may provide additional algorithms, but I do not maintain them and they are not discussed here, so if you have questions about them please contact their authors.

Q: When running configure I get the error "C compiler cannot create executables".
A: Make sure you typed CFLAGS="-O3" with a big O, not with a zero.

Q: autogen.sh dies with "error: possibly undefined macro: AC_MSG_ERROR".
Q: configure chokes on something like "LIBCURL_CHECK_CONFIG(, 7.15.2, ,'".
A: Make sure you have installed the development package for libcurl. If you have and you're still getting the error when compiling from git, try compiling from tarball instead.

Q: I'm trying to connect to a Stratum server, but I get "HTTP request failed: Empty reply from server".
A: Make sure you specified the correct protocol in the server URL (stratum+tcp://).

Q: Is there any command-line option I can play with to make it mine faster?
A: No. The miner automatically picks the best settings for the CPU it is run on.

Q: What's the difference between the two algorithms, scrypt and sha256d?
A: They are completely different proof-of-work algorithms. You must use scrypt for Litecoin, and you must use sha256d for Bitcoin. The default algorithm is scrypt, so for Bitcoin mining you have to specify --algo=sha256d.

Q: Will this miner use a lot of RAM when using the scrypt algorithm?
A: No, that's a GPU thing.

Q: How do I make the miner write its output to a file instead of printing it to the screen?
A: Just redirect the standard error stream to file:
Code:
minerd [OPTIONS] 2> myfile
You may also want to use the --quiet/-q option to disable the per-thread hashmeter.
On *nix, you probably also want to use the --background/-B option to fork in the background.


Original post (December 19, 2011) follows. Please note that most of the technical details are now outdated.

I have recently rewritten the heart of the scrypt hashing function used by the jgarzik/ArtForz cpuminer in assembly language, to see if this could bring some more speed. Apparently it did. Smiley
The source code is now available at GitHub:
https://github.com/pooler/cpuminer
The build process for Linux should be the same as before.

In the new code I tried to take full advantage of SSE2 instructions, which are available since the Pentium 4. Unfortunately, AMD's implementation of these instructions is not as fast as Intel's... well, ok, sadly it's nearly two times slower. For this reason, I had to write separate versions of the hashing functions. You don't need to worry about this, though, since the new function should be able to auto-detect your cpu and automatically select the best algorithm.

Long polling patch
This release also includes a new --timeout option that I originally added to solve a problem with long polling. Apparently the LP thread doesn't behave nicely under certain network conditions, as reported by various users. So, if you experienced high stale rates with the previous miner, you should definitely try out this new version.
Many thanks to SockPuppet, aka shawnp0wers, who helped me nail down the issue!

Some Technical Details
The current release includes four different implementations of the scrypt core, each one designed for a different hardware.
  • A fallback plain x86 version, to be used when SSE2 instructions are not available (Pentium III, Athlon XP and earlier processors).
  • A 32-bit version using SSE2, for use on the Pentium 4, Pentium M, Core, Atom, plus all 64-bit cpus running in a 32-bit OS.
  • A 64-bit version for Intel processors, i.e. Core 2, i3, i5, i7. This version can in most cases double the speed of the previous miner.
  • A 64-bit version for AMD processors, i.e. Athlon 64, Phenom, Sempron and the like. The speed increase here can range from 5% to 80%.
The first two versions only get compiled in the 32-bit miner, the last two only in the 64-bit miner. The miner uses the CPUID instruction to choose which version to use.

Compiler Flags
One cool aspect of assembly code is that users no more need to play with compiler flags to get the best performance. Configuring the build with just CFLAGS="-O3" is now more than enough to get efficient code. This also means that we no more need separate specialized binaries for Intel and AMD cpus. Just a 32-bit and a 64-bit version.

Personal Notes
Someone on IRC asked me why I am releasing this miner, instead of keeping it for myself or for my pool. Well, that's exactly the point. It is important for Litecoin that everybody has access to the most efficient mining software!
Someone might worry about the effect of this release on market prices, but consider this: if everybody starts using the new miner, the hash rate will go up, but so will difficulty, so nothing will ultimately change. I actually think this new miner will be very beneficial to Litecoin, because it should make mining easier for beginners (see compiler flags).
As crazy_rabbit wrote in another thread, one big plus of Litecoin is that everybody can participate. Well, consider this: now you can effectively mine on an Atom! Smiley

Alright folks... I hope you enjoy the performance boost. Consider this as my Christmas present to the community! Cheesy
Master One
Full Member
***
Offline Offline

Activity: 238
Merit: 100


Wanna buy a Tesla? Visit TeslaBargain.com first!


View Profile WWW
August 17, 2014, 06:34:46 AM
 #1063

Just out of curiosity, because I've seen the following in the help output of minderd:

Quote
--coinbase-addr=ADDR  payout address for solo mining
--coinbase-sig=TEXT  data to insert in the coinbase when possible

Does minerd really support solo mining, and if yes, how to set it up?

ReiMomo
Sr. Member
****
Offline Offline

Activity: 2366
Merit: 305


Duelbits - $100k Bonus/week


View Profile
August 20, 2014, 10:49:50 PM
 #1064

Why this version is not working for solo mining? 2.3.3 works!!!

.
Duelbits
█▀▀▀▀▀











█▄▄▄▄▄▄▄
TRY OUR
  NEW  UNIQUE
GAMES!
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
DICE 
.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
███████████████████████████████
███▀▀                     ▀▀███
███    ▄▄▄▄         ▄▄▄▄    ███
███   ██████       ██████   ███
███   ▀████▀       ▀████▀   ███
███                         ███
███                         ███
███                         ███
███   ▄████▄       ▄████▄   ███
███   ██████       ██████   ███
███    ▀▀▀▀         ▀▀▀▀    ███
███▄▄                     ▄▄███
███████████████████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
MINES 
.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
███████████████████████████████
████████████████████████▄▀▄████
██████████████▀▄▄▄▀█████▄▀▄████
████████████▀ █████▄▀████ █████
██████████      █████▄▀▀▄██████
███████▀          ▀████████████
█████▀              ▀██████████
█████                ██████████
████▌                ▐█████████
█████                ██████████
██████▄            ▄███████████
████████▄▄      ▄▄█████████████
███████████████████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
PLINKO 
.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
███████████████████████████████
█████████▀▀▀       ▀▀▀█████████
██████▀  ▄▄███ ███      ▀██████
█████  ▄▀▀                █████
████  ▀                    ████
███                         ███
███                         ███
███                         ███
████                       ████
█████                     █████
██████▄                 ▄██████
█████████▄▄▄       ▄▄▄█████████
███████████████████████████████
10,000x
MULTIPLIER
▀▀▀▀▀█











▄▄▄▄▄█
pooler (OP)
Hero Member
*****
Offline Offline

Activity: 838
Merit: 507


View Profile
August 20, 2014, 10:54:35 PM
 #1065

Why this version is not working for solo mining? 2.3.3 works!!!
As far as I know the latest version can do solo mining just fine. If you wish to file a bug report, please include enough information about what you want to do and how you're trying to do it.

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

Activity: 43
Merit: 0


View Profile
August 27, 2014, 10:17:20 AM
 #1066

Whats the best FM2+ socket CPU for mining with CPU miner ?

tempusr
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
September 08, 2014, 06:43:06 AM
 #1067

Hi,pooler,can you give me a instruction about compling the soft in solaris 10 sparc os,thanks very much!
pooler (OP)
Hero Member
*****
Offline Offline

Activity: 838
Merit: 507


View Profile
September 08, 2014, 07:57:01 AM
 #1068

Hi,pooler,can you give me a instruction about compling the soft in solaris 10 sparc os,thanks very much!
Have you tried the generic *nix build instructions in the README?

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

Activity: 1
Merit: 0


View Profile
September 08, 2014, 01:00:47 PM
 #1069

i just want to ask what developpemnt software using to devloppe cpuminer
 Wink
WigitGetIt
Legendary
*
Offline Offline

Activity: 952
Merit: 1000



View Profile WWW
September 10, 2014, 04:25:03 AM
 #1070

Hello.  GlobalBoost-Y just launched and it is a cpu only coin.  It uses the yescrypt algo, so their is no mining software yet.  It is the first coin to use this algo.   I wanted to reach out and see if we could get some assistance.  We can pay for the work.  Please feel free to PM me or drop a comment on the thread. Thanks  Smiley

GitHub for Yescrypt: https://github.com/bsdphk/PHC/tree/master/Yescrypt

GitHUb for GlobalBoost-Y Coin: https://github.com/GlobalBoost/GlobalBoost-Y

BitcoinTalk Thread: https://bitcointalk.org/index.php?topic=775289.new#new
GlobalBoost
Sr. Member
****
Offline Offline

Activity: 444
Merit: 252


View Profile WWW
September 10, 2014, 02:52:37 PM
 #1071

Nice work Wigitgetit!

Yes, we need a minerd expert.. I think we need ccminer to work with our BSTY using Yescrypt at POW.
Please let us know!
You can contact us here on bct, Skype user: GlobalBoost, or on IRC: https://kiwiirc.com/client/irc.kiwiirc.com/#GlobalBoost

Hello.  GlobalBoost-Y just launched and it is a cpu only coin.  It uses the yescrypt algo, so their is no mining software yet.  It is the first coin to use this algo.   I wanted to reach out and see if we could get some assistance.  We can pay for the work.  Please feel free to PM me or drop a comment on the thread. Thanks  Smiley

GitHub for Yescrypt: https://github.com/bsdphk/PHC/tree/master/Yescrypt

GitHUb for GlobalBoost-Y Coin: https://github.com/GlobalBoost/GlobalBoost-Y

BitcoinTalk Thread: https://bitcointalk.org/index.php?topic=775289.new#new

compman25
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
September 10, 2014, 04:43:33 PM
 #1072

How do I change the api port? If I use --api-port=4002 the program says unknown option --api-port=4002. Is there a way to tell it to use another port?
pooler (OP)
Hero Member
*****
Offline Offline

Activity: 838
Merit: 507


View Profile
September 10, 2014, 08:23:51 PM
 #1073

Hello.  GlobalBoost-Y just launched and it is a cpu only coin.  It uses the yescrypt algo, so their is no mining software yet.  It is the first coin to use this algo.   I wanted to reach out and see if we could get some assistance.  We can pay for the work.
If you already have a working C implementation of the algorithm (and it looks like you do) then it should be straightforward to fork cpuminer and add the algorithm to it, as has been done dozens of time already for other algorithms.
If what you are looking for is an optimized implementation of the algorithm, that's a different kettle of fish. Unfortunately I'm extremely busy with other projects, and have no time to work on this, not even as a paid job.

How do I change the api port? If I use --api-port=4002 the program says unknown option --api-port=4002. Is there a way to tell it to use another port?
cpuminer has no API. You must be confusing it with cgminer or with some fork of it.

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

Activity: 164
Merit: 100



View Profile
September 16, 2014, 11:24:33 PM
 #1074

Hello.  GlobalBoost-Y just launched and it is a cpu only coin.  It uses the yescrypt algo, so their is no mining software yet.  It is the first coin to use this algo.   I wanted to reach out and see if we could get some assistance.  We can pay for the work.
If you already have a working C implementation of the algorithm (and it looks like you do) then it should be straightforward to fork cpuminer and add the algorithm to it, as has been done dozens of time already for other algorithms.
If what you are looking for is an optimized implementation of the algorithm, that's a different kettle of fish. Unfortunately I'm extremely busy with other projects, and have no time to work on this, not even as a paid job.

How do I change the api port? If I use --api-port=4002 the program says unknown option --api-port=4002. Is there a way to tell it to use another port?
cpuminer has no API. You must be confusing it with cgminer or with some fork of it.

Thanks for the info pooler.  We did get cpuminer and minerd working for yescrypt.  Below are the links.

risk91
Full Member
***
Offline Offline

Activity: 196
Merit: 100



View Profile
October 04, 2014, 12:07:37 PM
 #1075

i have some problem using minerd..
anyone can help me??

after i run a couple minutes,, my minerd said "killed", and stopping the mining..

i try to replay again, but get a same problem..

anyone can help me out??
zebn
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
October 29, 2014, 02:26:20 PM
 #1076

Hello, i've using miner on my machines and everything ok, but at one VPS with debian it stops working right after start without any messages just:

Quote

root@myvps:~/cpuminer-2.3.2# ./minerd --url=stratum+tcp://freedom.wemineltc.com:3339 --user=user100.2 --pass=2 --threads=1

[2014-10-29 16:40:11] 1 miner threads started, using 'scrypt' algorithm.
[2014-10-29 16:40:11] Starting Stratum on stratum+tcp://freedom.wemineltc.com:3339
[2014-10-29 16:40:13] thread 0: 4104 hashes, 5.32 khash/s

[1]+  Stopped                 ./minerd --url=stratum+tcp://freedom.wemineltc.com:3339 --user=user100.2 --pass=2 --threads=1



any help?

thx
donce151
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
October 31, 2014, 10:31:13 AM
 #1077

So I run cpuminer and all I get is
https://i.imgur.com/WkgUZE3.png

Is it normal, or my computer is messing with me?
emdje
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500


View Profile WWW
October 31, 2014, 12:03:30 PM
 #1078

So I run cpuminer and all I get is


Is it normal, or my computer is messing with me?

Looks normal. What CPU do you have??
acaciosc
Full Member
***
Offline Offline

Activity: 325
Merit: 100


View Profile
November 08, 2014, 01:18:10 AM
 #1079

pooler,
Thank you very much for providing this wonderful modified cpuminer!  Smiley
viperek027
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
November 14, 2014, 12:53:29 PM
 #1080

IS this also ok ? don't know what "t-" shortcut means.
http://i61.tinypic.com/2r2anhk.png
Pages: « 1 ... 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 61 62 63 64 65 66 67 68 69 70 71 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!