Pages:
Author

Topic: [XPM] Primecoin High Performance Linux Compilation Guide - page 4. (Read 43563 times)

legendary
Activity: 2100
Merit: 1167
MY RED TRUST LEFT BY SCUMBAGS - READ MY SIG
after step 1 i get this??


Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package build-essential
E: Unable to locate package m4
E: Unable to locate package libssl-dev
E: Unable to locate package libdb++-dev
E: Couldn't find any package by regex 'libdb++-dev'
E: Unable to locate package libboost-all-dev
E: Unable to locate package libminiupnpc-dev
newbie
Activity: 17
Merit: 0
Very strange...

I do
./run-primecoind
then
primecoind getmininginfo
error: couldn't connect to server


So i try forceing it to start with
primecoind --daemon
I get
Error: Failed to read block
Error: Failed to Connect best block


any ideas?

It was working before i restarted...
hero member
Activity: 756
Merit: 501
For comparison: 7 cores of an i7 930 get ~2100pps on Debianx64. Core2Duo 2.13GHz gets ~600pps on Win7 x64. Interestingly about the same performance per core although the i7 should be a faster. I set the sievesize of the i7 to 4096000 and the C2D to 2048000, not sure if those are good values, in testnet they seemed pretty fine. i7 got no blocks for over a week while the Core2Duo just found one tonight, so it's still got a lot to do with luck.

edit: Great, now you replaced your question with nvm and my post is pretty much useless.  Tongue
member
Activity: 75
Merit: 10
sr. member
Activity: 294
Merit: 250
Thanks entz
full member
Activity: 210
Merit: 100
I not use any kind of messenger beware of scammers
the directory you uncompressed the code into (i.e. the one one with the src folder, bitcoin-qt.pro, INSTALL, COPYING etc) and are compiling from.

Not familiar with that error sorry.

*Never * delete .primecoin as it contains your wallet and conf files.
sr. member
Activity: 294
Merit: 250
Glad you got it working.

To answer your question, I almost always delete the primecoin source directory and rebuild from scratch when a major release (i.e. HP4 to HP5) is done to avoid having an old files around. I would only do a make clean if you are changing compiler flags imo. In the case of a "killed" gcc you dont want to recompile more than you have to.

Awesome Thanks! Which directory/source exactly? /.primecoin/ correct?
I think you are right about that because the problem is re-occurring with rpcuser/password. It might have my old settings.
error: incorrect rpcuser or rpcpassword (authorization failed)
full member
Activity: 210
Merit: 100
I not use any kind of messenger beware of scammers
Glad you got it working.

To answer your question, I almost always delete the primecoin source directory and rebuild from scratch when a major release (i.e. HP4 to HP5) is done to avoid having an old files around. I would only do a make clean if you are changing compiler flags imo. In the case of a "killed" gcc you dont want to recompile more than you have to.
sr. member
Activity: 294
Merit: 250
That is the correct line, the key is to have no -O#    (as mentioned above this is likely a bad thing, no optimizations). Not sure why you have -O3

Should be:
xCXXFLAGS=-pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter \

Which is what you have. If you are compiling from source you really should have (assuming its not on a vps that hides the cpu info)

xCXXFLAGS=-march=native -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter \

How much ram does the machine have?  and you are sure you cannot add swap?  If not then chances are you are going to have to build it on another machine or use the linux pre-compiled binaries listed in the official HP thread (https://bitcointalksearch.org/topic/xpm-ann-primecoin-high-performance-hp14-released-255782 -- paying attention to the warning)

Thanks for the quick reply. Trying this now. You are right! I used Chemsist build before this and i had to change those settings to the one you saw with O3 in order to optimize it and get it t work. Yes, I am sure I cannot use swap because the company has restricted my use of it, even though I expanded to larger ram space. I have 512 MB RAM right now.

Do I need to use make clean? before configuring?

Edit: SOLVED. I upgraded to 1024 MB RAM and got it working just fine. The company doesn't want to give me permission to enable swap so this was an easier fix than I thought. Simply Upgrade, then downgrade if you need to, to save the $2.00 I would just keep it at 1024 MB. It seems more stable now.
full member
Activity: 210
Merit: 100
I not use any kind of messenger beware of scammers
That is the correct line, the key is to have no -O#    (as mentioned above this is likely a bad thing, no optimizations). Not sure why you have -O3

Should be:
xCXXFLAGS=-pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter \

Which is what you have. If you are compiling from source you really should have (assuming its not on a vps that hides the cpu info)

xCXXFLAGS=-march=native -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter \

How much ram does the machine have?  and you are sure you cannot add swap?  If not then chances are you are going to have to build it on another machine or use the linux pre-compiled binaries listed in the official HP thread (https://bitcointalksearch.org/topic/xpm-ann-primecoin-high-performance-hp14-released-255782 -- paying attention to the warning)
sr. member
Activity: 294
Merit: 250
If you cannot increase your swap. Edit makefile.unix and remove -O2 from the xCXXFLAGS (line 108)

ohh that's why. I'll try that and report back. That sounds about right as I did that a while back and it worked.

can you give me the exact line? I removed -O2 and kept xCXXFLAGS=
and I still get the same error. This is how it looks now. and it wasn't -O2 it was -O3

xCXXFLAGS= -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter \


hero member
Activity: 756
Merit: 501
Note that this will probably lead to a lower mining performance, don't know by how much though.
sr. member
Activity: 294
Merit: 250
If you cannot increase your swap. Edit makefile.unix and remove -O2 from the xCXXFLAGS (line 108)

ohh that's why. I'll try that and report back. That sounds about right as I did that a while back and it worked.
hero member
Activity: 756
Merit: 501
Or compile on a machine that has enough RAM (like a VM on your Windows PC).
full member
Activity: 210
Merit: 100
I not use any kind of messenger beware of scammers
If you cannot increase your swap. Edit makefile.unix and remove -O2 from the xCXXFLAGS (line 108)
sr. member
Activity: 294
Merit: 250
Still no solution for this... Swap doesn't work for me. It's restricted by host.
I got up all the way to the make -f makefile.unix   and this is what I get:

g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
make: *** [obj/alert.o] Error 4
sr. member
Activity: 301
Merit: 250
@mikaelh, it seems to be crashing a lot with HP6:
Code:
primecoind: checkqueue.h:171: CCheckQueueControl::CCheckQueueControl(CCheckQueue*) [with T = CScriptCheck]: Assertion `pqueue->nTotal == pqueue->nIdle' failed.

I get a crash on 70% of machines in 5 minutes gap (16cores).

Though I did not use your Linux compliation, (used my own, since it worked better for me).

Do I need to install it your way for HP6 to work? Or perhaps Reboot?

No, that just means the bug isn't fixed. I'll look at it again tomorrow.
sr. member
Activity: 476
Merit: 250
I did manage to make hp6 running with your already compiled files.
It runs fine but I do not see any wallet.dat anywhere ! I'm afraid there is none...
My primecoin directory has a /bin/64 folder with primecoind and primecoin-qt, I did not run primecoin-qt is this the reason ?

edit : ok I found it, all is well.
member
Activity: 112
Merit: 10
Independent Analyst
I do notice ~15% increase in PPS from 8.3k to 9.5k pps, and chain/hr seems to average 20, just found a block,
member
Activity: 112
Merit: 10
Independent Analyst
@mikaelh, it seems to be crashing a lot with HP6:
Code:
primecoind: checkqueue.h:171: CCheckQueueControl::CCheckQueueControl(CCheckQueue*) [with T = CScriptCheck]: Assertion `pqueue->nTotal == pqueue->nIdle' failed.

I get a crash on 70% of machines in 5 minutes gap (16cores).

Though I did not use your Linux compliation, (used my own, since it worked better for me).

Do I need to install it your way for HP6 to work? Or perhaps Reboot?
Pages:
Jump to: