Bitcoin Forum
June 28, 2024, 08:48:28 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Speeding up bitcoind compilation?  (Read 1692 times)
Sergio_Demian_Lerner (OP)
Hero Member
*****
expert
Offline Offline

Activity: 554
Merit: 650


View Profile WWW
July 30, 2014, 03:42:27 PM
 #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.

gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4200
Merit: 8441



View Profile WWW
July 30, 2014, 05: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.
azeteki
Member
**
Offline Offline

Activity: 96
Merit: 10

esotericnonsense


View Profile WWW
July 30, 2014, 05:40:45 PM
 #3

If you do not require bitcoin-qt, use the option
./configure --with-gui=no
to skip compiling that.

rollingMyCar
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
November 13, 2014, 08: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?
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4200
Merit: 8441



View Profile WWW
November 13, 2014, 09: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.
-ck
Legendary
*
Offline Offline

Activity: 4144
Merit: 1638


Ruu \o/


View Profile WWW
November 14, 2014, 05: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.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
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!