Bitcoin Forum
July 07, 2020, 03:33:31 PM *
News: Latest Bitcoin Core release: 0.20.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 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 »
  Print  
Author Topic: An (even more) optimized version of cpuminer (pooler's cpuminer, CPU-only)  (Read 1955289 times)
sahintez
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
March 17, 2018, 06:32:37 AM
 #1341

right code is here;  Wink --scrypt is wrong. -- don't need.

minerd -a scrypt -t 6 -s 4 -o stratum+tcp://stratum.aikapool.com:7915 -uxxx.xxx -p xxx


hi
i use this code for my cpu but doesn't work


Code:
minerd -a --scrypt -t 6 -s 4 -o stratum+tcp://stratum.aikapool.com:7915 -uxxx.xxx -p xxx
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1594136011
Hero Member
*
Offline Offline

Posts: 1594136011

View Profile Personal Message (Offline)

Ignore
1594136011
Reply with quote  #2

1594136011
Report to moderator
sahintez
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
March 17, 2018, 06:45:42 AM
 #1342

-t 2  or    -t 3
Using 2 yada 3 threads will keep you cooler.  Wink

Cpu miner now working on suprnova. How do I limit the threads miner uses,  as  full 4 threads is running too hot?
trifo
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
March 17, 2018, 08:13:10 PM
 #1343

YescryptR16 support?
0x03
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
March 20, 2018, 04:45:40 AM
 #1344

YescryptR16 support?

https://github.com/JayDDee/cpuminer-opt works nice for me.
trifo
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
March 21, 2018, 09:27:19 AM
 #1345

Minerd gives more hashes from CPU, 10-20%
minahan24
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile
March 21, 2018, 03:13:14 PM
 #1346

Does it support x16r?
alforro
Newbie
*
Offline Offline

Activity: 122
Merit: 0


View Profile
April 05, 2018, 05:01:20 PM
 #1347

I will try this with solo mining for experimental porpuses   Cheesy
denis_msz
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
May 19, 2018, 06:08:56 PM
 #1348

Hi guys, Denis here.  I am trying to mine BANK.  Followed instructions on pool site.  Created account, created worker.  Downloaded MinerD (PoolMiner 2.5.0).  Created the "RunMe.bat" file.  I copied this "minerd -a scrypt -t 6 -s 4 -o stratum + tcp: //139.162.40.230: 3335 -u Weblogin.WorkerName -p WorkerPassword" into the "runMe" file and changed weblogin, worker name and password.  When I run the file black screen comes up for millisecond and disapears.  Can't find any videos or instructions on how to fix this.  Please help?

Thank you.  Error:
minerd: unsupported non-option argument -- '+'
WitoldC
Newbie
*
Offline Offline

Activity: 78
Merit: 0


View Profile
May 19, 2018, 06:14:17 PM
 #1349

Try without spaces
"stratum+tcp://139.162.40.230:3335"
Qovar
Copper Member
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
July 22, 2018, 01:23:21 AM
 #1350

Current Version: 2.5.0 (Jun 22, 2017) - Changelog
Source tarball: https://github.com/pooler/cpuminer/releases/download/v2.5.0/pooler-cpuminer-2.5.0.tar.gz
Binaries for Windows:
https://github.com/pooler/cpuminer/releases/download/v2.5.0/pooler-cpuminer-2.5.0-win32.zip (32-bit)
https://github.com/pooler/cpuminer/releases/download/v2.5.0/pooler-cpuminer-2.5.0-win64.zip  (64-bit)
Binaries for Linux:
https://github.com/pooler/cpuminer/releases/download/v2.5.0/pooler-cpuminer-2.5.0-linux-x86.tar.gz (x86)
https://github.com/pooler/cpuminer/releases/download/v2.5.0/pooler-cpuminer-2.5.0-linux-x86_64.tar.gz (x86-64)
Binaries for Mac OS X:
https://github.com/pooler/cpuminer/releases/download/v2.5.0/pooler-cpuminer-2.5.0-osx32.zip (32-bit)
https://github.com/pooler/cpuminer/releases/download/v2.5.0/pooler-cpuminer-2.5.0-osx64.zip (64-bit)

SHA-256 Checksums
Code:
ea16761a952b8f0fbba22fd16d48bb5e20abc48a10af99a00c70c332b3cb54f5  pooler-cpuminer-2.5.0.tar.gz
c385a7a73730b40548c5c658aa476dd4a95d4629d1c159a1ef830a0068c1c744  pooler-cpuminer-2.5.0-linux-x86.tar.gz
bf390ab6b801536aca3f8ece535ee71550afdc984ea5de67195b15ff3c248539  pooler-cpuminer-2.5.0-linux-x86_64.tar.gz
b45c7838aec8f704ef6700d5feb27f8e6c798bb0a42ce847bf3b203188d4183e  pooler-cpuminer-2.5.0-osx32.zip
c86ba412b3c10163f4623272e5ff746c57373ef403251472ef41a9a84ce33332  pooler-cpuminer-2.5.0-osx64.zip
dfa8713404b709f84550dda1af642ca49af72a4ec0e333eb9c3f797ae2554e2e  pooler-cpuminer-2.5.0-win32.zip
4cf4af2ae1d1a42c97b88ca91cfa1b49851efecbb62d6fafe0a5152ffd47fde1  pooler-cpuminer-2.5.0-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 make 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 https://github.com/pooler/cpuminer/releases/download/v2.5.0/pooler-cpuminer-2.5.0.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: When I click on minerd.exe a black window flashes up and then disappears.
A: This is a command-line application, it has no graphical interface. You'll need to learn how to use the command line interface (CLI) of your operating system first.

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.

Final 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
nice work
@ilyahohlov
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
September 02, 2018, 12:00:38 PM
 #1351

Hi, noob here))
trying to mine Logica

https://github.com/pooler/cpuminer/releases/download/v2.5.0/pooler-cpuminer-2.5.0-win64.zip  (64-bit) - done

made mine.bat with text like this:   minerd --url=http://*xxx.x.x.x:xxxxx --userpass=rpc_logica:*password

made logica.conf  with text like this:
rpcuser=rpc_logica
rpcpassword=*password
rpcallowip=*xxx.x.x.x
rpcport=xxxxx
listen=1
server=1
addnode=node.walletbuilders.com

when starting mine.bat -

http request failed: The requested URL returned error:500
json_rpc_call failed, retry after 30 second

whatafuk is going on? please help
CptProton
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
December 13, 2018, 12:37:08 PM
 #1352

Hi,

I was trying to mine myriad with minderd which works quite well with cpuminer. But all I get are "boooos".  Sad

Code:
...\pooler-cpuminer-2.5.0-win64>minerd -o stratum+tcp://hub.miningpoolhub
.com:20577 -u xxx.xxx -p xxx
[2018-12-13 13:32:31] Starting Stratum on stratum+tcp://hub.miningpoolhub.com:20
577
[2018-12-13 13:32:31] Binding thread 0 to cpu 0
[2018-12-13 13:32:31] Binding thread 1 to cpu 1
[2018-12-13 13:32:31] Binding thread 2 to cpu 2
[2018-12-13 13:32:31] 4 miner threads started, using 'scrypt' algorithm.
[2018-12-13 13:32:31] Binding thread 3 to cpu 3
[2018-12-13 13:32:32] Stratum requested work restart
[2018-12-13 13:32:33] thread 2: 1476 hashes, 3.16 khash/s
[2018-12-13 13:32:33] accepted: 0/1 (0.00%), 3.16 khash/s (booooo)
[2018-12-13 13:32:34] thread 0: 4104 hashes, 3.04 khash/s
[2018-12-13 13:32:34] thread 3: 4104 hashes, 2.86 khash/s
[2018-12-13 13:32:34] thread 1: 4104 hashes, 2.83 khash/s
[2018-12-13 13:32:37] thread 3: 11040 hashes, 3.78 khash/s
[2018-12-13 13:32:37] thread 0: 17856 hashes, 5.79 khash/s
[2018-12-13 13:32:37] accepted: 0/2 (0.00%), 15.56 khash/s (booooo)
[2018-12-13 13:32:37] accepted: 0/3 (0.00%), 15.56 khash/s (booooo)
[2018-12-13 13:32:37] thread 3: 3384 hashes, 6.06 khash/s
[2018-12-13 13:32:37] accepted: 0/4 (0.00%), 17.84 khash/s (booooo)
[2018-12-13 13:32:38] thread 1: 16860 hashes, 3.98 khash/s
[2018-12-13 13:32:38] accepted: 0/5 (0.00%), 18.99 khash/s (booooo)
Andrey123
Sr. Member
****
Offline Offline

Activity: 1330
Merit: 271



View Profile
December 21, 2018, 05:05:52 AM
 #1353

https://github.com/ckazi/cpuminer-mc-yespower

Is this the same miner?
Can't run it on Rapsberry Pi3.

Hello! Voluntary donations that will go towards the development of my coin.
34bwEhH3GMx6swYXt2NBfFbYGkdTcaWtXz....BTC

scottmatheina
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
April 12, 2019, 01:13:29 PM
 #1354

I forked Bitcoin source to run my own network.. everything is working. I'm using Cpuminer to mine blocks... I had to change the script 'first letter' base because i changed the address first letter, but other than that it works fine.

The miner isn't adding any transactions to blocks. The transactions are in the mempool, but the miner isn't adding any of them. I've played with the transaction fees. Anyone else have this issue? I thought to ask. i didn't see anything in the history about this, and looking at the cpuminer code,there doesn't seem to be anything for me to update. Any advice would be welcome... this project is teaching me bitcoin development, so I'm learning as I go.
dissi_xD
Member
**
Offline Offline

Activity: 89
Merit: 14


View Profile WWW
January 22, 2020, 05:52:04 AM
 #1355

Does this miner work with a Raspberry Pi 4 modell B? I want to mine Litecoin for a graduation project for the school and i have used the fork of tpruvot, but somehow it doesn't work. So i want to try this one.
0xcosmos
Full Member
***
Offline Offline

Activity: 591
Merit: 110


View Profile
January 22, 2020, 06:37:30 AM
 #1356

Does this miner work with a Raspberry Pi 4 modell B? I want to mine Litecoin for a graduation project for the school and i have used the fork of tpruvot, but somehow it doesn't work. So i want to try this one.

no i do not think so it will work with raspberry pi
as the binaries are only available for x86 and x64 arch and not for arm arch which is pi
minerja
Sr. Member
****
Offline Offline

Activity: 1061
Merit: 276


View Profile
January 22, 2020, 01:01:00 PM
 #1357

Does this miner work with a Raspberry Pi 4 modell B? I want to mine Litecoin for a graduation project for the school and i have used the fork of tpruvot, but somehow it doesn't work. So i want to try this one.


As far as i know, https://github.com/tpruvot/cpuminer-multi, it the main one.

I found this https://github.com/afritzler/cpuminer-arm, but have never used it, so don't know if its safe.

I have used this in the past on Pi3, ti mine XMG. Not sure if it covers scrypt, but i seem to remember it does various algos
https://github.com/novaspirit/wolf-m7m-cpuminer-V2-RPi

Another article to read.
https://medium.com/@simeg/mine-coin-magi-xmg-on-a-raspberry-pi-2-3-41bdc2f2f441

Good luck
(oh take note of OS to use, i think that is the most critical part - pretty sure i ended up using mint and ubuntu rather than raspian)
knolixman65
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
January 29, 2020, 12:08:55 PM
Last edit: January 29, 2020, 12:20:41 PM by knolixman65
 #1358

Coming to the party VERY late.

Sorry.

I downloaded https://github.com/pooler/cpuminer/releases/download/v2.5.0/pooler-cpuminer-2.5.0-win64.zip for Win 10 64-bit.
Is CPUMiner.exe no longer included in the pre-built package?

I am comfortable using "command.com", nee cmd.exe... and very comfortable with commandline everything... just checking. Smiley

If there is a pretty gui module somewhere, I'd sorta like to have it in the binary package too Wink but I'm cool using just the daemon.

I'll also pop back to the top of the thread and see about stratus stuff. If it's on the command line coolio... but if it has to be in a config file that the daemon looks for or creates and then I edit the config file... I use NoptePad++ for most of my data/coding/scripting. Yes, I am a dinosaur. Any .bas / .cob / .bat programmers out there who used PC-DOS 2.0? Smiley I also used cygwin, Z/nix, Unix, and more versions of Linux (and more shells) than I should be allowed to admit. also did a whole $#!+ ton of web stuff and server-side scripting... yes, including various decryption on files then encryption before returning files back to the client... all from inside csh/ksh/bash scripts. Wink 

In the latest vernacular, I'm an experienced "data scientist" of 44y with major admin and web admin skills, in case you or someone you know is/are looking for one. Wink

I saw MinGW instructions. I installed cygwin, not sure that I installed MinGW on this box. Smiley

Looks like I did enabled PMs and emails after all. Smiley

Peace!
joblo
Legendary
*
Offline Offline

Activity: 1470
Merit: 1106


View Profile
January 29, 2020, 10:10:55 PM
 #1359

About 10 years late.

This miner is obsolete and has been for about that long. It was awesome in its time but its time is gone.
It only mines sha2d and scrypt.

Mining anything with a single ARM CPU is futile. A cluster, maybe, but that gets really complicated.

ARM miner software is poor as there is little interest from good developpers due to the futility previously
mentioned. TPruvot has a multi algo miner that supports ARM but it hasn't been updated in about a year.

If you want to learn about mining just use your regular PC's CPU or GPU with a wide choice of excellent
up to date mining software.

Mining on a Pi is just child's play, but it makes a good wallet host.

AKA JayDDee, cpuminer-opt developer. https://github.com/JayDDee/cpuminer-opt
https://bitcointalk.org/index.php?topic=5226770.msg53865575#msg53865575
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
knolixman65
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
January 30, 2020, 01:33:09 AM
 #1360

Joblo,

There are many pool servers for many coins that use scrypt.

minerd mines altcoins through scrypt... so respectfully I'm NOT "10 years too late".
I was actually led to minerd because it mines Litecoin and ethereum natively... and both ethereum and litecoin is almost as popular as Bitcoin.
So "10 years late" should really be rephrased slightly... respectfully.

Politely, I request that if you know of another miner as strong and as current that supports mining through stratum with scrypt... please list the tools which you use and explain why your tools are better. Unfortunately, I prefer a CPU miner that can also run as a daemon from the command line. js Wink

I just with that there was a GUI to supply parameters to minerd and start/stop minerd from a control gui (or a controller that used ANSI color, in order to maintain the level of tight control... maybe to create profiles and schedule the saved profiles to run at required times of the day). Wink
 
Peace.

About 10 years late.

This miner is obsolete and has been for about that long. It was awesome in its time but its time is gone.
It only mines sha2d and scrypt.

Mining anything with a single ARM CPU is futile. A cluster, maybe, but that gets really complicated.

ARM miner software is poor as there is little interest from good developpers due to the futility previously
mentioned. TPruvot has a multi algo miner that supports ARM but it hasn't been updated in about a year.

If you want to learn about mining just use your regular PC's CPU or GPU with a wide choice of excellent
up to date mining software.

Mining on a Pi is just child's play, but it makes a good wallet host.
Pages: « 1 ... 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 »
  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!