Author

Topic: Speeding up bitcoind compilation? (Read 1701 times)

-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
November 14, 2014, 12:21:40 AM
#6
I'm creating a patch for a bug in bitcoind code, and I'm compiling bitcoind on a Ubuntu virtual machine with 1 GB of RAM and 1 core.

What can I do to speed up compilation?
Will adding an additional core decrease compilation time? Does it benefit from "make -j 2"?
Will adding more RAM decrease it?
Adding jobs only helps if you have more cores indeed. It only slows you down if you add jobs and have only 1 core.
staff
Activity: 4242
Merit: 8672
November 13, 2014, 04:00:59 PM
#5
Make sure you have ccache installed (and that it's being used).

It will speedup with make -j2, but on a host with only 1gb of ram probably not because you'll just end up swapping.
member
Activity: 112
Merit: 10
November 13, 2014, 03:22:13 PM
#4
If you do not require bitcoin-qt, use the option
./configure --with-gui=no
to skip compiling that.

but using use the option ./configure --with-gui=no i compile in Deamon mode?
member
Activity: 96
Merit: 10
esotericnonsense
July 30, 2014, 12:40:45 PM
#3
If you do not require bitcoin-qt, use the option
./configure --with-gui=no
to skip compiling that.
staff
Activity: 4242
Merit: 8672
July 30, 2014, 12:18:47 PM
#2
I'm creating a patch for a bug in bitcoind code, and I'm compiling bitcoind on a Ubuntu virtual machine with 1 GB of RAM and 1 core.
What can I do to speed up compilation?
Will adding an additional core decrease compilation time? Does it benefit from "make -j 2"?
Will adding more RAM decrease it?
Best regards,
 Sergio.
More ram will likely help (actually, I'm somewhat surprised that you're able to compile it with 1GB ram, I assume you have swap too).  Yes, it will benefit from -j2 if your VM has multiple cores.  Also make sure you have ccache installed... that will speed up subsequent compilations.
hero member
Activity: 555
Merit: 654
July 30, 2014, 10:42:27 AM
#1
I'm creating a patch for a bug in bitcoind code, and I'm compiling bitcoind on a Ubuntu virtual machine with 1 GB of RAM and 1 core.

What can I do to speed up compilation?
Will adding an additional core decrease compilation time? Does it benefit from "make -j 2"?
Will adding more RAM decrease it?

Best regards,
 Sergio.

Jump to: