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]

GNU make options (was Re: if-conversion ...)


I wrote (re GNU make options) 
> > Solution: get make 3.79 and use -j<N>.  The GNU make folks should
> > deprecate -l and eventually remove it.
> 
> I wouldn't go so far.  It seems clear that -l is not useful to make make
> react to the load it creates itself, but you might use it instead or in
> addition to nice to control how much a batch job taxes a system that is
> used for interactive stuff as well.

OK, the combination -j<N> -l <limit> might be useful for that purpose.
But -j without an argument and -l together is a recipe for major problems.
If there is a high degree of parallelism it may result in exhausting
virtual memory, which can be very bad on systems that optimistically
allocate virtual memory (e.g. Linux): the system thrashes severely and
then tries to kill processes at random.  This huge load and memory
exhaustion can strike before the load average rises very much.




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