README.md: distcc slave -> worker
This commit is contained in:
parent
48c5a6a24c
commit
101a1d2f2f
@ -359,7 +359,7 @@ the package from the desired repository.
|
|||||||
<a name="distcc"></a>
|
<a name="distcc"></a>
|
||||||
### Enabling distcc for distributed compilation
|
### Enabling distcc for distributed compilation
|
||||||
|
|
||||||
Setup the slaves (machines that will compile the code):
|
Setup the workers (machines that will compile the code):
|
||||||
|
|
||||||
# xbps-install -Sy distcc
|
# xbps-install -Sy distcc
|
||||||
|
|
||||||
@ -372,7 +372,7 @@ Enable and start the `distccd` service:
|
|||||||
# ln -s /etc/sv/distccd /var/service
|
# ln -s /etc/sv/distccd /var/service
|
||||||
|
|
||||||
Install distcc on the host (machine that executes xbps-src) as well.
|
Install distcc on the host (machine that executes xbps-src) as well.
|
||||||
Unless you want to use the host as slave from other machines, there is no need
|
Unless you want to use the host as worker from other machines, there is no need
|
||||||
to modify the configuration.
|
to modify the configuration.
|
||||||
|
|
||||||
On the host you can now enable distcc in the `void-packages/etc/conf` file:
|
On the host you can now enable distcc in the `void-packages/etc/conf` file:
|
||||||
@ -383,8 +383,8 @@ On the host you can now enable distcc in the `void-packages/etc/conf` file:
|
|||||||
|
|
||||||
The example values assume a localhost CPU with 4 cores of which at most 2 are used for compiler jobs.
|
The example values assume a localhost CPU with 4 cores of which at most 2 are used for compiler jobs.
|
||||||
The number of slots for preprocessor jobs is set to 24 in order to have enough preprocessed data for other CPUs to compile.
|
The number of slots for preprocessor jobs is set to 24 in order to have enough preprocessed data for other CPUs to compile.
|
||||||
The slave 192.168.2.101 has a CPU with 8 cores and the /9 for the number of jobs is a saturating choice.
|
The worker 192.168.2.101 has a CPU with 8 cores and the /9 for the number of jobs is a saturating choice.
|
||||||
The slave 192.168.2.102 is set to run at most 2 compile jobs to keep its load low, even if its CPU has 4 cores.
|
The worker 192.168.2.102 is set to run at most 2 compile jobs to keep its load low, even if its CPU has 4 cores.
|
||||||
The XBPS_MAKEJOBS setting is increased to 16 to account for the possible parallelism (2 + 9 + 2 + some slack).
|
The XBPS_MAKEJOBS setting is increased to 16 to account for the possible parallelism (2 + 9 + 2 + some slack).
|
||||||
|
|
||||||
<a name="distfiles-mirrors"></a>
|
<a name="distfiles-mirrors"></a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user