Bitcoin Forum
May 24, 2024, 10:17:52 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
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 »
741  Alternate cryptocurrencies / Mining (Altcoins) / Re: An (even more) optimized version of cpuminer - LTC/FBX/TBX on: December 20, 2011, 11:12:35 AM
I have a handful of boxes with Pentium D 2.8 GHz cpu's (820's I think) and this version of cpuminer is actually slower than artforz's

I'm not sure what's going on with these boxes, but artforz's runs at 1.48 khash/s/thread (two threads) while pooler's is only doing 1.40  I know its a tiny difference, but still seems strange to me.  I've tried recompiling each with varying CFLAGS and seen no change.

This is under ubuntu 10.04 LTS completely updated.

Any one else seen this or have ideas?

Uhm, bizarre. I have never worked with Pentium D's, so... let me have a look at Wikipedia... ok, these basically seem to be 64-bit-enabled dual-core Pentium 4's (i.e. Netburst arch).
Judging from the results, I guess you are running a 32-bit environment, but still I don't understand how the new version could be slower.
Anyone else with a Pentium D can confirm this issue?
742  Alternate cryptocurrencies / Mining (Altcoins) / Re: An (even more) optimized version of cpuminer - LTC/FBX/TBX on: December 19, 2011, 11:42:12 PM
Pooler, you are amazing. Thanks for your hard work.

Coblee, hearing that from you is such a huge compliment and honor... Smiley Thank you!
743  Alternate cryptocurrencies / Mining (Altcoins) / Re: An (even more) optimized version of cpuminer - LTC/FBX/TBX on: December 19, 2011, 10:20:51 PM
I have added some details for the curious in the original post, check them out.


hey pooler, really great job you have done!
the results for my intel-cpu's are:
~ 100 % more hashing-power
~  15 % less energy amount (for doubled mining-power!)
now we know, why the intel-cpu's are more expensive  Grin
i'll set up the donation at your pool to 30 %, mining with 235 KH/s now
Hey, thank you!
744  Alternate cryptocurrencies / Mining (Altcoins) / Re: An (even more) optimized version of cpuminer - LTC/FBX/TBX on: December 19, 2011, 07:37:58 PM
Thank you for reporting this, I have added the DLL to the package.
In w7x64:
Code:
Faulting application name: minerd.exe, version: 0.0.0.0, time stamp: 0x4eef5c94
Faulting module name: pthreadGC2.dll, version: 2.8.0.0, time stamp: 0x4be6d174
Exception code: 0xc0000005
Fault offset: 0x00000000000036a3
Faulting process id: 0xeb8
Faulting application start time: 0x01ccbe78f0cabebe

BTW, this was with updated binaries.

I have asked diki, who prepared the binaries, on IRC. He told me that pthreads-w64 is still experimental (see http://sourceforge.net/apps/trac/mingw-w64/wiki/Compile%20pthreads) so it may not always work. He suggests you might want to try a different version of the library, like this one:
http://code.google.com/p/mingw-w64-dgn/downloads/detail?name=mingw_dgn_basic-w64-bin-x86_64-20110225.7z&can=2&q=pthread
745  Alternate cryptocurrencies / Mining (Altcoins) / Re: An (even more) optimized version of cpuminer - LTC/FBX/TBX on: December 19, 2011, 06:29:54 PM
In case you're wondering why the SSE2 version sucks on K8 and K10 ... reason is rather simple.
the salsa20 function is a long string of data dependent 4*32-bit vector integer operations (i.e. output of one operation is used as input to the next).
And the execution latencies for the most used instructions in the salsa20 core (shift r/l immediate, add, xor) are all 2 clocks on K8/K10, all 1 clock on Atom/Core/Core2/Nehalem/SB.
End result ... sse2 salsa20 needs roughly twice the clocks/round on AMD compared to any modern intel.

Thank you for your insight, ArtForz!
Yes, I think I have read somewhere that since the Core architecture Intel CPUs can actually handle SSE registers 128 bits at a time.
I have never been too fond of Intel, but it's nice to see that sometimes you get what you pay for! Smiley
746  Alternate cryptocurrencies / Mining (Altcoins) / Re: An (even more) optimized version of cpuminer - LTC/FBX/TBX on: December 19, 2011, 06:00:03 PM
Binaries for Windows now available, thanks diki!
https://github.com/downloads/pooler/cpuminer/pooler-cpuminer-win32.zip
https://github.com/downloads/pooler/cpuminer/pooler-cpuminer-win64.zip
(Please let me know if the packages miss any dynamic libraries.)
Yeah, on Win7 64, I can't find libeay32.dll. I grabbed one from a version of OpenSSL, but it complains about missing functions, etc.

Thank you for reporting this, I have added the DLL to the package.
747  Alternate cryptocurrencies / Mining (Altcoins) / Re: An (even more) optimized version of cpuminer - LTC/FBX/TBX on: December 19, 2011, 05:40:54 PM
Binaries for Windows now available, thanks diki!
https://github.com/downloads/pooler/cpuminer/pooler-cpuminer-win32.zip
https://github.com/downloads/pooler/cpuminer/pooler-cpuminer-win64.zip
(Please let me know if the packages miss any dynamic libraries.)
748  Alternate cryptocurrencies / Mining (Altcoins) / Re: An (even more) optimized version of cpuminer - LTC/FBX/TBX on: December 19, 2011, 05:26:08 PM
I'm trying to compile this for Mac and got this error:

Quote
gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson    -O3 -Wall -msse2 -msse3 -msse4.1 -msse4.2 -msse4 -g -march=core2 -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:131:Alignment too large: 15. assumed.
scrypt-x64.S:11:expecting operand before ','; got nothing
scrypt-x64.S:11:expecting operand before ','; got nothing
scrypt-x64.S:11:expecting operand before ','; got nothing
scrypt-x64.S:11:expecting operand before ','; got nothing
scrypt-x64.S:11:suffix or operands invalid for `rol'
scrypt-x64.S:11:suffix or operands invalid for `rol'

... snip ...

scrypt-x64.S:566:expecting operand before ','; got nothing
scrypt-x64.S:566:expecting operand before ','; got nothing
scrypt-x64.S:566:suffix or operands invalid for `pshufd'
scrypt-x64.S:566:suffix or operands invalid for `pshufd'
scrypt-x64.S:566:suffix or operands invalid for `pshufd'
make[2]: *** [minerd-scrypt-x64.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Any ideas?

That's the same exact problem SockPuppet and I faced yesterday. I still don't know why but apparently the assembler available on MacOS doesn't like my macros.
We finally got it to compile by expanding all macros in the source, but don't ask me to do that again Smiley (ok, if you insist I can send you the temporary patched file.)
I will try to solve the issue with SockPuppet as soon as possible, I am really curious about where the problem actually lies.
749  Alternate cryptocurrencies / Mining (Altcoins) / Re: An (even more) optimized version of cpuminer - LTC/FBX/TBX on: December 19, 2011, 04:58:48 PM
Hi!!

 For Intel CPU, what should be the CFLAGS options?!

 CFLAGS = -g -O3

 --

 And for AMD?

 CFLAGS = -mtune=amdfam10 -O3 -ffast-math -mabm -msse4a -pipe

Thanks!
Thiago

Good news: you don't need to worry too much about CFLAGS.
Just use "-O3". gcc cannot optimize assembly code anyway.
750  Alternate cryptocurrencies / Mining (Altcoins) / An (even more) optimized version of cpuminer (pooler's cpuminer, CPU-only) on: December 19, 2011, 04:27:00 PM
Current Version: 2.5.1 (Jun 25, 2020) - Changelog
Source tarball: https://github.com/pooler/cpuminer/releases/download/v2.5.1/pooler-cpuminer-2.5.1.tar.gz
Binaries for Windows:
https://github.com/pooler/cpuminer/releases/download/v2.5.1/pooler-cpuminer-2.5.1-win32.zip (32-bit)
https://github.com/pooler/cpuminer/releases/download/v2.5.1/pooler-cpuminer-2.5.1-win64.zip  (64-bit)
Binaries for Linux:
https://github.com/pooler/cpuminer/releases/download/v2.5.1/pooler-cpuminer-2.5.1-linux-x86_64.tar.gz (x86-64)
Binaries for macOS:
https://github.com/pooler/cpuminer/releases/download/v2.5.1/pooler-cpuminer-2.5.1-osx64.zip (64-bit)

SHA-256 Checksums
Code:
337f04fdb32f34b85819d09d59f6d3cf62991ac2e656735c43661dd3d4c57631  pooler-cpuminer-2.5.1.tar.gz
5fc7219fbb72dad32d64f11cd579383e53d8872f95309594fad2a07554a541f7  pooler-cpuminer-2.5.1-linux-x86_64.tar.gz
595ff086193ff68d8923f716757cf6ba6bbf1b761ae8786f437e2834621bebc8  pooler-cpuminer-2.5.1-osx64.zip
8d2c14b46bda27e2efc971907164f3e301253fd3a2d23f02201a1b3a2cbeb156  pooler-cpuminer-2.5.1-win32.zip
a33f6d637a71a69b21d95aa0237e9e5227da62b437e986d28d964fd5395ace37  pooler-cpuminer-2.5.1-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.1/pooler-cpuminer-2.5.1.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
751  Other / Beginners & Help / Re: 100%CPU bug on ATI on: December 17, 2011, 01:16:48 AM
Is there any mining speed increase with the newest version?

Some people are reporting ~20 Mh/s decreases.

No speed decrease at all for me. Version 11.12 seems to have finally fixed this annoying bug under Linux, and the hashrate of my two 5870's is the same as before, totaling ~850 MH/s.
752  Bitcoin / Bitcoin Technical Support / Re: 100% CPU bug Windows finally solved (Multi GPU) with catalyst 11.12 on: December 17, 2011, 01:02:06 AM
What about Linux ?

I can confirm ATI drivers version 11.12 solve the problem under Linux, too. The CPU usage of phoenix went down to 1%.
Now I can mine both Bitcoin and Litecoin in the same rig... Yippee!
753  Alternate cryptocurrencies / Pools (Altcoins) / Re: [ANN] The Litecoin PPS Pool - We pay for stale shares! on: December 16, 2011, 01:29:58 PM
Yeah, I know it might sound confusing. The point is that CPU usage is the same, but CPU load is not.
Lucky you... I have the same temps as before, around 58-59°C (Phenom 2 955 @3.6GHz)
Windows or Linux? If you're using Windows, it might well be that excessive load (not cpu usage) was only a problem under Linux, and you didn't experience it even with the old drivers.
754  Alternate cryptocurrencies / Pools (Altcoins) / Re: [ANN] The Litecoin PPS Pool - We pay for stale shares! on: December 16, 2011, 01:14:36 PM
Uhm, bizarre. On my main Bitcoin rig I see no slowdown at all using both CPU cores of a Sempron for Litecoin (5.8 kH/s) and two 5870's for Bitcoin (850 MH/s). This is using ATI drivers 11.12 and AMD Stream SDK 2.5, under Linux. And CPU temperature went down from 64°C to 60°C. Works like a charm now!
+/- fixed by setting GPU miner affinity to a single core and raising its priority while lowering LTC miner priority.
Still, I don't get how your CPU temperature can decrease if all you did in the end was replace a 100% CPU usage by driver mess with a 100% CPU usage by LTC miner...

Yeah, I know it might sound confusing. The point is that total CPU usage is the same as before, but CPU load is not.
755  Alternate cryptocurrencies / Pools (Altcoins) / Re: [ANN] The Litecoin PPS Pool - We pay for stale shares! on: December 16, 2011, 12:55:30 PM
By the way, for those of you who are doing both CPU and GPU mining with an ATI card on the same rig, consider updating ATI drivers to version 11.12. This new version should solve the CPU usage problem, even on multiple-card setups.
Yup, I noticed that too, only problem is I still can't use all my cores to mine LTC because then the GPU miner almost stops. And also when I don't leave 2 idle cores the GPU miner mines a bit slower.

Uhm, bizarre. On my main Bitcoin rig I see no slowdown at all using both CPU cores of a Sempron for Litecoin (5.8 kH/s) and two 5870's for Bitcoin (850 MH/s). This is using ATI drivers 11.12 and AMD Stream SDK 2.5, under Linux. And CPU temperature went down from 64°C to 60°C. Works like a charm now!

Bitcoin... and Litecoin... live together in perfect harmony...
Cheesy
756  Alternate cryptocurrencies / Altcoin Discussion / Re: Litecoin mining, Issues. on: December 16, 2011, 10:45:07 AM
download vmware player
install x64 ubuntu using an iso
do this:
Quote
1.Open terminal
2.Type: sudo su
3.Type: apt-get install gcc libcurl4-nss-dev automake autoconf git make
4.Type yes if asked
5.Type: git clone git://github.com/Lolcust/Tenebrix-miner.git
6.Type: cd Tenebrix-miner/
7.Type: ./autogen.sh
8.Type: CFLAGS="-march=corei7 -O3 -Wall -msse2 -msse3 -msse4 -msse4.1 -msse4.2" ./configure
9.Type: make
10.Type: ./minerd --algo scrypt --url http://lc.ozco.in:9332 --user username --pass password
avoid running minerd on windows altogether, even if it runs it tends to be much slower
i got worse results on the vm. 2.3 khash/s vs 2.4 khash/s on windows

Just out of curiosity, what do you get if at point 8 you only type: CFLAGS="-O3" ./configure
(Type "make clean" and repeat from point 8 using the above.)
757  Alternate cryptocurrencies / Altcoin Discussion / Re: litecoin solo mining newb questions on: December 16, 2011, 10:33:28 AM
very cool pooler! i found my first block today! i used your calculator afterwards and it was only off by 1 hour! my hashrate is 5.6 and i found a block in 8 days 4 hours.  and i'm sure thats not the calc's fault so much as fluctuations in my hashrate!

Please remember that the "expected time" indicated by the calculator is only a probabilistic estimate, which should match the average time between blocks in the long run.

With that being said I do believe the AMD Phenom II series of 4/6core processors so you would be looking at an AM3 socket and they work the best while running Ubuntu or some version of Linux.

The Phenom II is the best with the current public version of cpuminer, but I'm currently working on optimizing the miner for Intel CPUs, and I'm pretty sure that i7's, while more expensive, will be able to deliver the best performance in the end.
758  Alternate cryptocurrencies / Pools (Altcoins) / Re: [ANN] The Litecoin PPS Pool - We pay for stale shares! on: December 16, 2011, 01:00:49 AM
Just signed up!  Looking forward to making my server room even hotter now that the CPUs are in use lol
Welcome aboard, Red Emerald!

By the way, for those of you who are doing both CPU and GPU mining with an ATI card on the same rig, consider updating ATI drivers to version 11.12. This new version should solve the CPU usage problem, even on multiple-card setups. I have just carried out the update on my main box, and I now have one more core for mining Litecoin. Plus, temperatures dropped considerably!

(Thanks to grue for the heads up!)
759  Alternate cryptocurrencies / Altcoin Discussion / Re: Which CPU blockchain should I mine, and why? on: December 16, 2011, 12:42:12 AM
Basically it comes down to community support.

All these coins will only grow as long as there is community support. Many people feel litecoin is a great idea for a cpu only crypto currency. Many will hold onto their coins and continue to invest time and even money into it. Of course there will be some bad apples along the way.. botnets and such. But as a hole most people will continue to stick it out.

Just remember. Because the price might not look good today, doesnt mean it wont look better 2-3 weeks from now. Hell look at Bitcoin.. some people ares still holding strong and mining.
+1
Couldn't have said it better!
760  Alternate cryptocurrencies / Altcoin Discussion / Re: Litecoin cpu mining on: December 15, 2011, 09:58:09 PM
so just set miner priority as realtime :p

Eheh! Yeah, I have two dedicated mining rigs, what I would like to understand is if anybody can get a better performance than the one I reported above on AMD cpus. In the hardware thread on the Liteco.in forum, for instance, there's a report of a user who got 2.9 kh/s per thread with a 2.3 GHz Athlon II, and I still don't know if that is just a typo or if it's really possible.
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 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!