Fwd: Re: make -jN buildworld on < 512MB ram

Simon J. Gerraty sjg at juniper.net
Fri Nov 9 20:34:45 UTC 2012


>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.



More information about the freebsd-hackers mailing list