Re: Out of memory while building GCC 12.1.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jun 10, 2022 at 10:42:03AM -0400, Paul Smith wrote:
> On Fri, 2022-06-10 at 15:29 +0300, Fiodar Stryzhniou wrote:
> > Looks like you right. Harcoded to -j6 helps.
> 
> Another way to go is to add the "-l" option.  This is often combined
> with "-j" (no limit) to have your build limited by load rather than by
> job count.
> 
> So if you want the load on your system to be no greater than 2, you can
> say "-j -l2".

The load average is only computed every 5s, so if you have a faster
machine it can bring your system to its knees in that time already, by
starting thousands of tasks.

Since maximum acceptable loadavg is very system specific as well, you
can just always use -j<N> instead, or -j<N> -l<M>.  Just never use -j
without number after it :-)


Segher



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux