capping memory usage of buildworld (c++)

Garrett Cooper yanegomi at gmail.com
Sun Mar 25 17:09:52 UTC 2012


On Sun, Mar 25, 2012 at 9:37 AM, Joshua Isom <jrisom at 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


More information about the freebsd-hackers mailing list