Bitcoin Forum
April 25, 2024, 05:35:15 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 3 4 5 6 7 8 »  All
  Print  
Author Topic: Bitcoin x64 for Windows  (Read 37390 times)
Olipro (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
July 20, 2010, 09:02:02 PM
 #1

So, after a lot of experimentation, pulling out of hair, cursing of the developer, I finally managed to get a build of Bitcoin compiled under MSVC.

all optimizations are on including SSE2, LTCG and favouring of Intel64 (well hey, that's my processor)

Performance difference? The two builds I made (namely 32 and 64 bit) are practically equal in terms of performance - however, their performance is not equal to the stock build currently available.

On my quad-core with the stock Windows binary available from bitcoin.org I get about 1700k hashes a second. With the builds I produced under MSVC I get 2500K a second. Anyone interested?
"The nature of Bitcoin is such that once version 0.1 was released, the core design was set in stone for the rest of its lifetime." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714066515
Hero Member
*
Offline Offline

Posts: 1714066515

View Profile Personal Message (Offline)

Ignore
1714066515
Reply with quote  #2

1714066515
Report to moderator
1714066515
Hero Member
*
Offline Offline

Posts: 1714066515

View Profile Personal Message (Offline)

Ignore
1714066515
Reply with quote  #2

1714066515
Report to moderator
1714066515
Hero Member
*
Offline Offline

Posts: 1714066515

View Profile Personal Message (Offline)

Ignore
1714066515
Reply with quote  #2

1714066515
Report to moderator
Bitcoiner
Member
**
Offline Offline

Activity: 70
Merit: 11


View Profile
July 20, 2010, 09:04:36 PM
 #2

I am... would it be even faster on SSE3?

Want to thank me for this post? Donate here! Flip your coins over to: 13Cq8AmdrqewatRxEyU2xNuMvegbaLCvEe  Smiley
ender_x
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
July 20, 2010, 09:05:29 PM
 #3

sure, I'd like to see if it removes my 20% difference from the linux bin's.
knightmb
Sr. Member
****
Offline Offline

Activity: 308
Merit: 256



View Profile WWW
July 20, 2010, 09:30:02 PM
 #4

So, after a lot of experimentation, pulling out of hair, cursing of the developer, I finally managed to get a build of Bitcoin compiled under MSVC.

all optimizations are on including SSE2, LTCG and favouring of Intel64 (well hey, that's my processor)

Performance difference? The two builds I made (namely 32 and 64 bit) are practically equal in terms of performance - however, their performance is not equal to the stock build currently available.

On my quad-core with the stock Windows binary available from bitcoin.org I get about 1700k hashes a second. With the builds I produced under MSVC I get 2500K a second. Anyone interested?
I've got a spare server using a 8-core 64-bit Intel - 64 bit Windows 2003 server. I'd be curious if there is a difference from the stock, the machine currently does about 5000khash/s, I'd be curious if the 64bit native build would be better.

Timekoin - The World's Most Energy Efficient Encrypted Digital Currency
Olipro (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
July 20, 2010, 09:35:41 PM
Last edit: July 20, 2010, 09:53:25 PM by Olipro
 #5

I am... would it be even faster on SSE3?

potentially yes, I compiled it with the Microsoft compiler, I'm in the process of getting the Intel compiler so that could well offer a significant performance boost given that it supports far more instruction sets than MS's does.

Anyhow, I've uploaded the 2 binaries and the required DLLs to make them work and you can get them from right here. After a bit of testing I found that the x64 binary does outperform the 32 bit by 100-200k or so but it does depend a lot on what other crap you have running on your system.

And if anyone feels generous... 18em7jEuKe1W74ChAZMFShUuqmwudWmpgu
SmokeTooMuch
Legendary
*
Offline Offline

Activity: 860
Merit: 1021


View Profile
July 20, 2010, 09:49:44 PM
 #6

Anyone interested?
Yep.

Date Registered: 2009-12-10 | I'm using GPG, pm me for my public key. | Bitcoin on Reddit: https://www.reddit.com/r/btc
Olipro (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
July 20, 2010, 09:53:08 PM
 #7

see my previous post.

Feedback on performance is appreciated, bitcoins even moreso.
knightmb
Sr. Member
****
Offline Offline

Activity: 308
Merit: 256



View Profile WWW
July 20, 2010, 11:52:41 PM
 #8

see my previous post.

Feedback on performance is appreciated, bitcoins even moreso.
I keep getting a "MSVCR100.dll" not found error when trying to start it. I copied the file over from another system into the system32 folder, but the program still can't find it for some reason. Do we need the full Microsoft dev environment installed to test it?

Timekoin - The World's Most Energy Efficient Encrypted Digital Currency
jimbobway
Legendary
*
Offline Offline

Activity: 1304
Merit: 1014



View Profile
July 20, 2010, 11:54:25 PM
 #9

How do we know this is not a scam?  Give us your IP to donate with or something so we can make sure you are reputable.  I am scared to install it, it might steal my bitcoins.
knightmb
Sr. Member
****
Offline Offline

Activity: 308
Merit: 256



View Profile WWW
July 20, 2010, 11:57:07 PM
 #10

How do we know this is not a scam?  Give us your IP to donate with or something so we can make sure you are reputable.  I am scared to install it, it might steal my bitcoins.
I'll guinea pig, I'm running it on a test system that has no balance yet, well trying to run, it won't start.

Timekoin - The World's Most Energy Efficient Encrypted Digital Currency
martin
Full Member
***
Offline Offline

Activity: 150
Merit: 100



View Profile WWW
July 20, 2010, 11:57:56 PM
 #11

It's not a scam, I decided to install it and see. Unless it's a very complex scam which waits for a while before stealing my coins Wink

This version has between 200-700 more khash per second on my machine.
knightmb
Sr. Member
****
Offline Offline

Activity: 308
Merit: 256



View Profile WWW
July 21, 2010, 12:01:20 AM
 #12

It's not a scam, I decided to install it and see. Unless it's a very complex scam which waits for a while before stealing my coins Wink

This version has between 200-700 more khash per second on my machine.
No missing DLL errors when you try to start it?

Timekoin - The World's Most Energy Efficient Encrypted Digital Currency
Olipro (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
July 21, 2010, 12:46:27 AM
 #13

It's not a scam, I decided to install it and see. Unless it's a very complex scam which waits for a while before stealing my coins Wink

This version has between 200-700 more khash per second on my machine.

correct, it's not a scam, the code is completely vanilla, I didn't obsfusicate it so you can feel free to examine it in the disassembler of your choice.

so, with my build you've gone from 5000k to 5700k?
Ground Loop
Member
**
Offline Offline

Activity: 111
Merit: 10


View Profile
July 21, 2010, 12:49:33 AM
 #14

Get visual C 2010 redist from Microsoft -- pointers here:

http://www.mydigitallife.info/2010/04/17/visual-c-2010-runtime-redistributable-package-x86-x64-ia64-free-download/

The new code is full of win.. hash rate (4 core) went from 1350 to 1880 khash/s.  Sweet!

Bitcoin accepted here: 1HrAmQk9EuH3Ak6ugsw3qi3g23DG6YUNPq
knightmb
Sr. Member
****
Offline Offline

Activity: 308
Merit: 256



View Profile WWW
July 21, 2010, 12:50:03 AM
 #15

For those that get the DLL error and don't want to install the full dev environment, you need to download the Visual C++ 2010 Redistributable x64 located
http://www.microsoft.com/downloads/details.aspx?FamilyID=BD512D9E-43C8-4655-81BF-9350143D5867&displaylang=en

Timekoin - The World's Most Energy Efficient Encrypted Digital Currency
Olipro (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
July 21, 2010, 12:52:31 AM
Last edit: July 21, 2010, 02:56:43 AM by Olipro
 #16

I recommend getting the redist from the official source:

x86 here: http://www.microsoft.com/downloads/details.aspx?FamilyID=a7b7a05e-6de6-4d3a-a423-37bf0912db84

x64 here: http://www.microsoft.com/downloads/details.aspx?FamilyID=bd512d9e-43c8-4655-81bf-9350143d5867

If there's demand for it, I can compile an Itanic Itanium build... for a reasonable consideration Smiley
Olipro (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
July 21, 2010, 01:01:12 AM
Last edit: July 21, 2010, 01:16:42 AM by Olipro
 #17

How do we know this is not a scam?  Give us your IP to donate with or something so we can make sure you are reputable.  I am scared to install it, it might steal my bitcoins.

If I were scamming, what incentive would I have to ask for donations knowing that those who used it would have their account emptied anyway. Frankly though, my username is far more of a verification of my authenticity than my IP would ever be Smiley

I can assure you the code is 100% clean.
Olipro (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
July 21, 2010, 01:03:40 AM
 #18

Get visual C 2010 redist from Microsoft -- pointers here:

http://www.mydigitallife.info/2010/04/17/visual-c-2010-runtime-redistributable-package-x86-x64-ia64-free-download/

The new code is full of win.. hash rate (4 core) went from 1350 to 1880 khash/s.  Sweet!


that's very interesting, what processor/frequency are you on? x86 or x64?
Ground Loop
Member
**
Offline Offline

Activity: 111
Merit: 10


View Profile
July 21, 2010, 01:14:07 AM
 #19

Win7 64-bit
Intel Xeon 5130 (2.0GHz dual-proc)

I'll send you the first 50.0 it finds. Smiley

Bitcoin accepted here: 1HrAmQk9EuH3Ak6ugsw3qi3g23DG6YUNPq
knightmb
Sr. Member
****
Offline Offline

Activity: 308
Merit: 256



View Profile WWW
July 21, 2010, 01:20:48 AM
 #20

Nice job, this is just my initial testing, but the 64 bit compile speeds up hashing by over 28% so far over the 32 bit counterpart.

So for example, my 8-core system does (600 khash/s per core =  4800 khash/s) for normally, but now averages 5700 khash/s

I'll certainly be sending some bitcoins your way  Wink

Timekoin - The World's Most Energy Efficient Encrypted Digital Currency
Pages: [1] 2 3 4 5 6 7 8 »  All
  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!