Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Nov 2012 12:32:40 -0800
From:      "Simon J. Gerraty" <sjg@juniper.net>
To:        <hackers@FreeBSD.ORG>
Cc:        sjg@juniper.net
Subject:   Re: Fwd: Re: make -jN buildworld on < 512MB ram
Message-ID:  <20121109203240.C5DD058094@chaos.jnpr.net>
In-Reply-To: <20121109175641.GC9916@dragon.NUXI.org>
References:  <20121109175641.GC9916@dragon.NUXI.org>

next in thread | previous in thread | raw e-mail | index | archive | help

>Ah, but make(1) can delay spawning any new processes when it knows its
>children are paging.

Sounds good - but I doubt the complexity it adds would really be worth
it.

If the real problem is the C++ compiler or other large tool needing
sufficient resources that you have to ensure invocations are
sequenced/throttled, then the obvious solution would seem to be to
invoke it via a proxy that can do the the needed throttling on a global
(system, user, or whatever basis seems to make sense).

Think of make's invocation of ${CXX} as actually just submitting a job
to the CXX service, which might only be allowing one instance of C++ to
run at a time.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121109203240.C5DD058094>