I just configured some
distcc volunteers to build package for my pinebook pro (to build faster).
One of my
volunteers is an LXC container on my proxmox server, as some build may need a lot of memory (when build locally) I was wondering how much RAM could be used by the volunteers as I don’t want to allocate too much RAM for the LXC container.
I know I can allocate enough RAM and just monitor the RAM usage and then decrease the memory afterwards, but I was wondering if anyone already knew the answer.
The LXC container accept 4 jobs. I tried to build qownnotes and for now I only had a peak usage around 650MB.
I guess the RAM usage will depends of the jobs numbers
an other question is about the makeflags…
if I look at this linux arm wiki
Change the MAKEFLAGS -j flag to reflect the total number of processors available on the master system. The common wisdom is to set this to the number of physical cores + 1. Keep in mind that only compiles are distributed; preprocessing and linking still takes place on the master system. Therefore, this number should reflect the capabilities of the master system and not the total number of distributed cores available.
or the arch wiki
Adjust the MAKEFLAGS variable to correspond roughly twice the number max threads per server. In the example below, this is 2x(9+5+5+3)=44.
BUILDENV=(distcc fakeroot color !ccache check !sign)
DISTCC_HOSTS=“localhost/9 192.168.10.2/5 192.168.10.3/5 192.168.10.4/3”
they don’t say the same and it seems if I put the number of core of the “
client” it does not use all the available jobs in the different
volunteers… so which is right… arch wiki or linux arm wiki