Bitcoin Forum
April 21, 2026, 11:19:37 PM *
News: Latest Bitcoin Core release: 30.2 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 [100] 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 »
  Print  
Author Topic: [XPM] [ANN] Primecoin High Performance | HP14 released!  (Read 397731 times)
cabin
Sr. Member
****
Offline Offline

Activity: 604
Merit: 250


View Profile
August 25, 2013, 03:39:06 PM
Last edit: August 25, 2013, 04:15:23 PM by cabin
 #1981

Quote
The building procedure for the stock Primecoin client should be the same as for Bitcoin. For my version you also need libgmp on top of that.

I think I'm close to being able to build it. I've gone through all the steps from here:
https://bitcointalk.org/index.php?topic=149479.0

But I have a problem halfway through the compile with primecoin/src/compat.h

c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/ws2tcpip.h:38:2: error
: #error "ws2tcpip.h is not compatible with winsock.h. Include winsock2.h instead."
In file included from compat.h:18:0,
                 from netbase.h:11,
                 from net.h:19,
                 from rpcnet.cpp:7:

I tried commenting out:
//#include <mswsock.h> in compat.h

but that didn't work.

But this worked:
Edit: C:\MinGW\include\windows.h and comment out this part around line 91
/* __USE_W32_SOCKETS is a __CYGWIN__ guard */
 /* Ryan
#if defined(__USE_W32_SOCKETS) || !(defined(__CYGWIN__) || defined(__MSYS__))
#include <winsock.h>
#endif
*/

Edit2: Just saw your advice mikaelh, thanks that looks like a good fix too!

mikaelh (OP)
Sr. Member
****
Offline Offline

Activity: 301
Merit: 250


View Profile
August 25, 2013, 04:07:29 PM
 #1982

Quote
The building procedure for the stock Primecoin client should be the same as for Bitcoin. For my version you also need libgmp on top of that.

I think I'm close to being able to build it. I've gone through all the steps from here:
https://bitcointalk.org/index.php?topic=149479.0

But I have a problem halfway through the compile with primecoin/src/compat.h

c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/ws2tcpip.h:38:2: error
: #error "ws2tcpip.h is not compatible with winsock.h. Include winsock2.h instead."
In file included from compat.h:18:0,
                 from netbase.h:11,
                 from net.h:19,
                 from rpcnet.cpp:7:

I tried commenting out:
//#include <mswsock.h> in compat.h

but that didn't work.

I think I had a similar issue with mingw64. Try adding -DWIN32_LEAN_AND_MEAN to the compiler flags. I think the cause of the issue was some boost header file including windows.h. If WIN32_LEAN_AND_MEAN is not defined, then winsock.h would also be included.
elvisrene
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250



View Profile
August 25, 2013, 04:50:29 PM
 #1983

mikaelh i cant sync wallet it shows no connections i have tried all do i need to do a config file in appdata/primecoin
elvisrene
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250



View Profile
August 25, 2013, 04:54:24 PM
 #1984



it maintains it self in this state
mikaelh (OP)
Sr. Member
****
Offline Offline

Activity: 301
Merit: 250


View Profile
August 25, 2013, 04:59:21 PM
 #1985

mikaelh i cant sync wallet it shows no connections i have tried all do i need to do a config file in appdata/primecoin

My best guess at this point is that you're behind a strict firewall/proxy. If it's your own firewall, adjust it. If not, there's not much that can be done about it.
wibtc
Newbie
*
Offline Offline

Activity: 32
Merit: 0



View Profile
August 25, 2013, 05:05:20 PM
 #1986

What's the best sievesize for hp 10?
Aggrophobia
Legendary
*
Offline Offline

Activity: 1106
Merit: 1001



View Profile
August 25, 2013, 05:13:07 PM
 #1987

mikaelh i cant sync wallet it shows no connections i have tried all do i need to do a config file in appdata/primecoin

My best guess at this point is that you're behind a strict firewall/proxy. If it's your own firewall, adjust it. If not, there's not much that can be done about it.

Q: How do I solve a problem with the client not being able to synchronize or connect to any nodes?
A: Try adding this line to your primecoin.conf file:
Code:

seednode=primeseed.muuttuja.org

And it will work
bidji29
Sr. Member
****
Offline Offline

Activity: 392
Merit: 250


View Profile
August 25, 2013, 05:20:29 PM
 #1988

I tried changing the Sieveextensions.
Chainperday is lower with value lower than 6. But I get similar result with 6, 8, 10 and even 12. (highter than that and it crash in a few second)

Is there any purpose to rise this value or the chainperday is telling the truth?

http://www.freebieservers.com/  100% FREE GAME SERVERS
elvisrene
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250



View Profile
August 25, 2013, 06:15:55 PM
 #1989

mikaelh i cant sync wallet it shows no connections i have tried all do i need to do a config file in appdata/primecoin

My best guess at this point is that you're behind a strict firewall/proxy. If it's your own firewall, adjust it. If not, there's not much that can be done about it.

Q: How do I solve a problem with the client not being able to synchronize or connect to any nodes?
A: Try adding this line to your primecoin.conf file:
Code:

seednode=primeseed.muuttuja.org

And it will work
you see theres also a problem i know where to do the config file i just dont know what to put there
elvisrene
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250



View Profile
August 25, 2013, 06:21:36 PM
 #1990

mikaelh,Aggrophobia

Thanks guys for helping me out +1 for both of you got it working
cabin
Sr. Member
****
Offline Offline

Activity: 604
Merit: 250


View Profile
August 25, 2013, 10:07:10 PM
Last edit: August 25, 2013, 10:26:14 PM by cabin
 #1991

Quote
The building procedure for the stock Primecoin client should be the same as for Bitcoin. For my version you also need libgmp on top of that.

I think I'm close to being able to build it. I've gone through all the steps from here:
https://bitcointalk.org/index.php?topic=149479.0

But I have a problem halfway through the compile with primecoin/src/compat.h

c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/ws2tcpip.h:38:2: error
: #error "ws2tcpip.h is not compatible with winsock.h. Include winsock2.h instead."
In file included from compat.h:18:0,
                 from netbase.h:11,
                 from net.h:19,
                 from rpcnet.cpp:7:

I tried commenting out:
//#include <mswsock.h> in compat.h

but that didn't work.

I think I had a similar issue with mingw64. Try adding -DWIN32_LEAN_AND_MEAN to the compiler flags. I think the cause of the issue was some boost header file including windows.h. If WIN32_LEAN_AND_MEAN is not defined, then winsock.h would also be included.

I can build primecoind, however the performance of my build is bad. There must be some compiler flags or other things that matter a lot. Here are rough results though:
mikaelh build, 9 chain sieve, chainsperday: 0.76 (Blocks per day: 0.152)
cabin build,   9 chain sieve, chainsperday: 0.40  (Blocks per day: 0.08)
cabin build,  10 chain sieve, chainsperday: 0.15 (Blocks per day: 0.15)

So there is a huge hit for sure to start sieving for 10 chains, but in terms of blocks per day it might be worth it.

Trillium
Hero Member
*****
Offline Offline

Activity: 546
Merit: 500



View Profile
August 25, 2013, 10:40:21 PM
 #1992

Random tip if you have more than one machine and if your client wont sync. Just use

Code:
addnode <a local IP address or hostname> add

And it will begin to sync within a few seconds. Port not required in my experience..

BTC:1AaaAAAAaAAE2L1PXM1x9VDNqvcrfa9He6
mikaelh (OP)
Sr. Member
****
Offline Offline

Activity: 301
Merit: 250


View Profile
August 25, 2013, 10:47:35 PM
 #1993

Quote
The building procedure for the stock Primecoin client should be the same as for Bitcoin. For my version you also need libgmp on top of that.

I think I'm close to being able to build it. I've gone through all the steps from here:
https://bitcointalk.org/index.php?topic=149479.0

But I have a problem halfway through the compile with primecoin/src/compat.h

c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/ws2tcpip.h:38:2: error
: #error "ws2tcpip.h is not compatible with winsock.h. Include winsock2.h instead."
In file included from compat.h:18:0,
                 from netbase.h:11,
                 from net.h:19,
                 from rpcnet.cpp:7:

I tried commenting out:
//#include <mswsock.h> in compat.h

but that didn't work.

I think I had a similar issue with mingw64. Try adding -DWIN32_LEAN_AND_MEAN to the compiler flags. I think the cause of the issue was some boost header file including windows.h. If WIN32_LEAN_AND_MEAN is not defined, then winsock.h would also be included.

I can build primecoind, however the performance of my build is bad. There must be some compiler flags or other things that matter a lot. Here are rough results though:
mikaelh build, 9 chain sieve, chainsperday: 0.76 (Blocks per day: 0.152)
cabin build,   9 chain sieve, chainsperday: 0.40  (Blocks per day: 0.08)
cabin build,  10 chain sieve, chainsperday: 0.15 (Blocks per day: 0.15)

So there is a huge hit for sure to start sieving for 10 chains, but in terms of blocks per day it might be worth it.

Did you compile a 32-bit or 64-bit version? Where did you get your libgmp?
cabin
Sr. Member
****
Offline Offline

Activity: 604
Merit: 250


View Profile
August 25, 2013, 11:09:40 PM
 #1994

Quote
The building procedure for the stock Primecoin client should be the same as for Bitcoin. For my version you also need libgmp on top of that.

I think I'm close to being able to build it. I've gone through all the steps from here:
https://bitcointalk.org/index.php?topic=149479.0

But I have a problem halfway through the compile with primecoin/src/compat.h

c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/ws2tcpip.h:38:2: error
: #error "ws2tcpip.h is not compatible with winsock.h. Include winsock2.h instead."
In file included from compat.h:18:0,
                 from netbase.h:11,
                 from net.h:19,
                 from rpcnet.cpp:7:

I tried commenting out:
//#include <mswsock.h> in compat.h

but that didn't work.

I think I had a similar issue with mingw64. Try adding -DWIN32_LEAN_AND_MEAN to the compiler flags. I think the cause of the issue was some boost header file including windows.h. If WIN32_LEAN_AND_MEAN is not defined, then winsock.h would also be included.

I can build primecoind, however the performance of my build is bad. There must be some compiler flags or other things that matter a lot. Here are rough results though:
mikaelh build, 9 chain sieve, chainsperday: 0.76 (Blocks per day: 0.152)
cabin build,   9 chain sieve, chainsperday: 0.40  (Blocks per day: 0.08)
cabin build,  10 chain sieve, chainsperday: 0.15 (Blocks per day: 0.15)

So there is a huge hit for sure to start sieving for 10 chains, but in terms of blocks per day it might be worth it.

Did you compile a 32-bit or 64-bit version? Where did you get your libgmp?

I got the source from here and compiled it myself:
http://ftp://ftp.gnu.org/gnu/gmp/gmp-5.1.2.tar.bz2

I'm embarrassed to say to I don't know if it is 32 or 64 bit.. it is whatever the default is in github Smiley These build scripts aren't really my thing.. is it easy to find out and change? I've got -march=i686 in the CFLAGS but that was to fix something else and I don't think that's it.
mikaelh (OP)
Sr. Member
****
Offline Offline

Activity: 301
Merit: 250


View Profile
August 25, 2013, 11:16:16 PM
 #1995

Well, you probably compiled a 32-bit version. I checked the instructions you linked. They are pointing towards the 32-bit version of MinGW. You need a MinGW-w64 compiler to produce 64-bit binaries. I haven't installed that on Windows so I can't really help you there.
cabin
Sr. Member
****
Offline Offline

Activity: 604
Merit: 250


View Profile
August 26, 2013, 12:30:29 AM
Last edit: August 26, 2013, 01:40:52 AM by cabin
 #1996

Well, you probably compiled a 32-bit version. I checked the instructions you linked. They are pointing towards the 32-bit version of MinGW. You need a MinGW-w64 compiler to produce 64-bit binaries. I haven't installed that on Windows so I can't really help you there.

ya both GMP and the whole project had to be using 32 bit compilers. GMP doesn't want to compile using the 64 bit compilers either.. so I guess it is not simple to switch at all. When you make a win64 binary do you just make it from Linux somehow?

If someone is knowledgeable about GMP on win64 this is the type of errors I get:

Code:
configure: summary of build options:
  Version:           GNU MP 5.1.2
  Host type:         x86_64-w64-mingw32
  ABI:               64
  Install prefix:    /c/data/miner2/deps/gmp
  Compiler:          gcc -std=gnu99
  Static libraries:  yes
  Shared libraries:  no

/c/data/miner2/deps/gmp-5.1.2
$ make
make  all-recursive
make[1]: Entering directory `/c/data/miner2/deps/gmp-5.1.2'
Making all in tests
make[2]: Entering directory `/c/data/miner2/deps/gmp-5.1.2/tests'
Making all in .
make[3]: Entering directory `/c/data/miner2/deps/gmp-5.1.2/tests'
make[3]: Nothing to be done for `all-am'.

...

Making all in cxx
make[3]: Entering directory `/c/data/miner2/deps/gmp-5.1.2/tests/cxx'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/c/data/miner2/deps/gmp-5.1.2/tests/cxx'
make[2]: Leaving directory `/c/data/miner2/deps/gmp-5.1.2/tests'
Making all in mpn
make[2]: Entering directory `/c/data/miner2/deps/gmp-5.1.2/mpn'
/bin/sh ../libtool --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I.
-I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo fib_table | sed 's/_$//'`    -O2
-pedantic -fomit-frame-pointer -m64 -mtune=k8 -march=k8 -c -o fib_table.lo fib_t
able.c
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I
.. -DOPERATION_fib_table -O2 -pedantic -fomit-frame-pointer -m64 -mtune=k8 -marc
h=k8 -c fib_table.c -o fib_table.o
In file included from ../gmp-impl.h:135:0,
                 from fib_table.c:4:
../fib_table.h:4:1: warning: data definition has no type or storage class [enabl
ed by default]
 Error, error, this data is for 32 bits
 

mpir DOES compile in x64 and is similar.. I'll see if that can be substituted...
BChydro
Hero Member
*****
Offline Offline

Activity: 1426
Merit: 506


View Profile
August 26, 2013, 06:02:54 AM
 #1997

I run 3 computers with shitty Athlon II X4 640s and together they seem to produce a block every 2 days using the latest hp client. Individually they seem to out perform my main computer with a mid level sandy bridge i5. Are AMD CPUs better for xpm mining?
Trillium
Hero Member
*****
Offline Offline

Activity: 546
Merit: 500



View Profile
August 26, 2013, 10:13:02 AM
 #1998

I run 3 computers with shitty Athlon II X4 640s and together they seem to produce a block every 2 days using the latest hp client. Individually they seem to out perform my main computer with a mid level sandy bridge i5. Are AMD CPUs better for xpm mining?

Probably not. I will leave it to OP to confirm support for various instruction sets / types.

A lot of people think an AMD is 'better' than a intel CPU because they arn't aware that AMD CPUs complete more computational operations per cycle than intel CPUs. This allows them to do 'more work' in any period of time compared to a intel CPU, even one that has a faster frequency (GHz).

For example, what do you think would be faster:

A server with one dual-core AMD Opteron CPU @ 2.4 GHz

or,

A server with two physical intel Xeon CPUs, each single core, with hyper threading @ 3.6 GHz

As it turns out, the AMD will GREATLY outperform the intel CPUs.

---

In reality even comparing frequency is meaningless now. There are other important differences like bus / HT speed, cache size and allotment (shared or dedicated between cores etc).

I would recommend this page: http://www.cpubenchmark.net/cpu_list.php

as a reasonably good source of estimates for comparing CPUs. Be careful though: if you must make an important comparison (eg when buying things) then click the link of each CPU listed and check that the score is a good average of several submitted scores. CPUs with only a handful - or worse only one - submitted score can have huge score variances (20%+) and mislead you.

BTC:1AaaAAAAaAAE2L1PXM1x9VDNqvcrfa9He6
cryptrol
Hero Member
*****
Offline Offline

Activity: 637
Merit: 500


View Profile
August 26, 2013, 10:19:10 AM
 #1999

Some stats for hp10 :

2 x Opteron 2376 = "chainsperday" : 2.54092020 <- Really old CPU
1 x Intel i7 3770K = "chainsperday" : 2.77305771

Still no blocks found though in almost 24h.

Hope others will share their stats so we can build a nice performance thread.
paulthetafy
Hero Member
*****
Offline Offline

Activity: 820
Merit: 1000


View Profile
August 26, 2013, 10:25:40 AM
 #2000

I'm fairly certain that HP10 does NOT find blocks at 2 x the rate of HP9, despite the 2 x increase in chains per day value.   About an hour after HP10 came out I spun up 500 x 8 core VPS instances and ran them for 6 hours.  That was ~1000 CPD.  I'm aware that the diff is now rising which will skew things, but in that time I got about the same block rate (average 4 an hour) as I did when I last tested a week ago with HP9 when diff was 9.75.  Allowing for some luck variation (which should be largely eliminated due to the high number of instances), I can say it is not twice as fast at finding blocks.  I can't say how much faster it is without more testing, which I'm not doing as running those 500 instances is NOT profitable by a long way Smiley

Pages: « 1 ... 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 [100] 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 »
  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!