Bitcoin Forum
May 10, 2024, 12:02:54 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Crypto++ 5.6 ?  (Read 1497 times)
j16sdiz (OP)
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
December 15, 2010, 09: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

1715299374
Hero Member
*
Offline Offline

Posts: 1715299374

View Profile Personal Message (Offline)

Ignore
1715299374
Reply with quote  #2

1715299374
Report to moderator
1715299374
Hero Member
*
Offline Offline

Posts: 1715299374

View Profile Personal Message (Offline)

Ignore
1715299374
Reply with quote  #2

1715299374
Report to moderator
1715299374
Hero Member
*
Offline Offline

Posts: 1715299374

View Profile Personal Message (Offline)

Ignore
1715299374
Reply with quote  #2

1715299374
Report to moderator
"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.
1715299374
Hero Member
*
Offline Offline

Posts: 1715299374

View Profile Personal Message (Offline)

Ignore
1715299374
Reply with quote  #2

1715299374
Report to moderator
1715299374
Hero Member
*
Offline Offline

Posts: 1715299374

View Profile Personal Message (Offline)

Ignore
1715299374
Reply with quote  #2

1715299374
Report to moderator
BioMike
Legendary
*
Offline Offline

Activity: 1658
Merit: 1001


View Profile
December 15, 2010, 09: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.
jgarzik
Legendary
*
qt
Offline Offline

Activity: 1596
Merit: 1091


View Profile
December 16, 2010, 04:13:55 AM
 #3


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


Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
j16sdiz (OP)
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
December 16, 2010, 01:49:40 PM
 #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
BioMike
Legendary
*
Offline Offline

Activity: 1658
Merit: 1001


View Profile
December 16, 2010, 02:09:57 PM
 #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.
jgarzik
Legendary
*
qt
Offline Offline

Activity: 1596
Merit: 1091


View Profile
December 16, 2010, 07: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.

Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
j16sdiz (OP)
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
December 20, 2010, 12:17:07 AM
 #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.
Pages: [1]
  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!