Difference between revisions of "Software projects/OS/Slackware/Advanced usage/Distributed compilation"
From Pandora Wiki
Linux-SWAT (talk | contribs) (Created page with "= Get started = * So you need at least two networked OP. * In this exemple, we'll use two OP, OP-1 and OP-2. * The compilation will be launched on OP-1. * OP-2 IP adress is 10.0....") |
Linux-SWAT (talk | contribs) |
||
Line 23: | Line 23: | ||
* As root on OP-1, type: | * As root on OP-1, type: | ||
distccmon-gnome | distccmon-gnome | ||
+ | |||
+ | [[Category:Development]] | ||
+ | [[Category:Slackware]] |
Revision as of 17:08, 18 April 2012
Get started
- So you need at least two networked OP.
- In this exemple, we'll use two OP, OP-1 and OP-2.
- The compilation will be launched on OP-1.
- OP-2 IP adress is 10.0.0.2
Distccd server activation
- On both OP, launch as root:
distccd
Setting up the hosts
- On OP-1, open a terminal:
export DISTCC_HOSTS="localhost 10.0.0.2"
Compile
- In the same OP-1 terminal:
make -j4 CC=distcc make -j4 CC=distcc
- In the -j(n), n represents the (number of CPU used X 2), so if you compile with 10 OP, it will be -j20 .
Monitoring
- You can see how the compilation is distributed.
- As root on OP-1, type:
distccmon-gnome