Author

Topic: Crypto++ 5.6 ? (Read 1519 times)

newbie
Activity: 37
Merit: 0
December 19, 2010, 07:17:07 PM
#7
the cryptopp 5.6.0 in bitcoinr tree:   133khash/s
the cryptopp 5.6.1 (provided in debian):   200khash/s

Sorry, I was mixing up some binaries. The improvement was not that great. -- in fact, that was statistically insignificant.
legendary
Activity: 1596
Merit: 1100
December 16, 2010, 02:50:38 PM
#6
I have patched the  "bitcoinr" to use system provided crypto, here is the result:

CPU:  Premium III Mobile  (yes, i know this is very very old)
Compiled with gcc 4.4,  -O3 -msse

the cryptopp 5.6.0 in bitcoinr tree:   133khash/s
the cryptopp 5.6.1 (provided in debian):   200khash/s

Out of curiosity, what speed do you get from various algorithms in the CPU miner?  That also uses Crypto++ code.
legendary
Activity: 1658
Merit: 1001
December 16, 2010, 09:09:57 AM
#5
I have patched the  "bitcoinr" to use system provided crypto, here is the result:

CPU:  Premium III Mobile  (yes, i know this is very very old)
Compiled with gcc 4.4,  -O3 -msse

the cryptopp 5.6.0 in bitcoinr tree:   133khash/s
the cryptopp 5.6.1 (provided in debian):   200khash/s


Here is the patch to use system-provided cryptopp (if available, with fallback)
https://github.com/j16sdiz/bitcoin-pool/commit/121a0a570bed15fc347cff091e740a02bd8e1a3f

That's quite a difference.
newbie
Activity: 37
Merit: 0
December 16, 2010, 08:49:40 AM
#4
I have patched the  "bitcoinr" to use system provided crypto, here is the result:

CPU:  Premium III Mobile  (yes, i know this is very very old)
Compiled with gcc 4.4,  -O3 -msse

the cryptopp 5.6.0 in bitcoinr tree:   133khash/s
the cryptopp 5.6.1 (provided in debian):   200khash/s


Here is the patch to use system-provided cryptopp (if available, with fallback)
https://github.com/j16sdiz/bitcoin-pool/commit/121a0a570bed15fc347cff091e740a02bd8e1a3f
legendary
Activity: 1596
Merit: 1100
December 15, 2010, 11:13:55 PM
#3

This patch updates part of Crypto++ in bitcoin to upstream:
http://yyz.us/bitcoin/patch.bitcoin-asmfix1

legendary
Activity: 1658
Merit: 1001
December 15, 2010, 04:25:25 AM
#2
For the gentoo ebuild I have been using the original thing for some time now (Gentoo policy is not to use bundled libs, as they are a security hazard). No problems encountered in more then a half year.
newbie
Activity: 37
Merit: 0
December 15, 2010, 04:18:06 AM
#1
I saw you are using a modified cryptopp 5.6.0,  which disable SSE2 on 32-bit x86.

On the official website, there is a newer version 5.6.1 which fix a few SHA-256 related bug. I guess you may be interested:

- fixed several bugs in the SHA-256 x86/x64 assembly code:
--- incorrect hash on non-SSE2 x86 machines on non-aligned input
--- incorrect hash on x86 machines when input crosses 0x80000000
--- incorrect hash on x64 when compiled with GCC with optimizations enabled

Jump to: