Date: Sun, 25 Mar 2012 10:09:51 -0700 From: Garrett Cooper <yanegomi@gmail.com> To: Joshua Isom <jrisom@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: capping memory usage of buildworld (c++) Message-ID: <CAGH67wSgD6ZRKO6zeXhSNsyVMo%2BGj-hah=RdYxEX5CLTGhrXAg@mail.gmail.com> In-Reply-To: <4F6F49C5.9020701@gmail.com> References: <20120325161026.GA36229@elvis.mu.org> <4F6F49C5.9020701@gmail.com>
index | next in thread | previous in thread | raw e-mail
On Sun, Mar 25, 2012 at 9:37 AM, Joshua Isom <jrisom@gmail.com> wrote:
> On 3/25/2012 11:10 AM, Alfred Perlstein wrote:
>>
>> It's kind of insane how much memory the compiler uses these days.
>>
>> Any other options?
>
> Switch to clang which uses less memory, or use a smaller jobs number. Memory
> use is inevitable, but the benefit is more efficient binaries.
You could also impose memory limits via login.conf with a special
class and then switch over to that class before running a build.
Cheers,
-Garrett
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGH67wSgD6ZRKO6zeXhSNsyVMo%2BGj-hah=RdYxEX5CLTGhrXAg>
