[Top][All Lists]

[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: Dmitry V. Levin
Subject: Re: need help on "make -j" parameter, it will let the system hung easily.
Date: Sat, 15 Dec 2012 19:08:06 +0400

On Sat, Dec 15, 2012 at 09:35:18AM -0500, Paul Smith wrote:
> On Fri, 2012-12-14 at 17:07 +0200, Eli Zaretskii wrote:
> > 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?
> In general I'd say no, the current behavior is not ideal.  However I
> don't want to remove the behavior.  I'd rather have the default, if
> given no argument, choose a "sane" limit.  However, how does one detect
> the number of cores on a system in a portable way?  It's easy enough on
> Linux but...

gnulib has a nproc module that can "detect the number of processors":
Judging from the number of #if's in its implementation it must be quite
portable. :)


Attachment: pgpJC09L9LZve.pgp
Description: PGP signature

reply via email to

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