This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: starting compile server - advice needed


Per Bothner wrote:
> >What about a build with -j2?  What about a 
> >QMtets with -j2?  Who should load balance the CPUs?  How?
> 
> My thinking is that if a server is per-directory, then a "smart make" or 
>  IDE might start multiple parallel servers, for multiple directories. 
> That doesn't help if a single directory has many source files.  In that 
> case it might be useful to use an option to override the default server 
> name, so one might create more than one (one per cpu), or fewer servers 
> than the number of directories.

If a client connects to a server which is currently doing a
compilation, start another server - that will load balance as well (or
as badly) as Make does at the moment.  They could all share the same
socket, if they are all launched by forking from the one server
process.

-- Jamie


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]