[sldev] Is there a way to compile the SL viewer faster?
Guido de Jong
guido at jacquido.demon.nl
Wed Mar 14 12:50:47 PDT 2007
On Wednesday 14 March 2007 20:19, Dzonatas hit keys in the following order:
> If you do not use DISTCC for remote builds, you have the option to use
> 'scons -j ##' where ## is the number of processes you want to fork. This
> works well under clusters systems like OpenMosix.
OpenMosix only works well for processes that run relatively long. Compiling a
C++ file generally does not take long enough for OpenMosix to pick it up and
move it on another cluster node. This is why things like distcc were created
in the first place. Also AFAIK it is not possible to mix architectures (like
x86 and x86_64) within an OpenMosix cluster. It is possible though to make
the distcc compiler a cross-compiler.
BTW you can always set the -j option (to scons, make and friends) to two times
the number of processors plus 1. So on a standard single processor system you
can set this options to 3 and for instance on a dual processor SMP box you
can set it to 5. The reason for this is that reading from and writing to disk
is part of the compilation proces, so while doing IO for one file you can do
the CPU intensive part for another.
- Guido
More information about the SLDev
mailing list