bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: need help on "make -j" parameter, it will let the system hung easily


From: Eli Zaretskii
Subject: Re: need help on "make -j" parameter, it will let the system hung easily.
Date: Fri, 14 Dec 2012 17:07:10 +0200

> From: Paul Smith <address@hidden>
> Date: Fri, 14 Dec 2012 09:59:31 -0500
> Cc: "address@hidden" <address@hidden>
> 
> This basically says that if you use "-j" with no arguments, make will
> run as many jobs as the _makefile_ allows (defined by your prerequisite
> rules).  It pays no attention to the limits of your system.
> 
> So in an environment (like the Linux kernel) where there are tons of
> source files that need to be compiled and they do not depend on each
> other, using "-j" with no limit means make will attempt to fork all of
> them at the same time.  That could be, in a large codebase, 100's of
> compiles all trying to run at the same time.

Does it even make sense to use -j with no arguments?  Should we
perhaps remove that possibility, or have some internal sane limit,
like twice the number of cores, say?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]