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 01:09:30PM -0400, Paul Smith wrote:
> On Fri, 2022-06-10 at 10:56 -0500, Segher Boessenkool wrote:
> > 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.
> 
> This is no longer true as of GNU make 3.81 (released in 2006).  GNU
> make artificially adjusts the load average based on the number of jobs
> started in the last second, to avoid this issue.

I have seen it happen with GNU make 3.82.  The newer heuristic is
better, sure, but it is still a heuristic based on flawed data, so it
can never be perfectly good.

> In the next release of GNU make a different method, based on /proc, is
> used for Linux specifically which should result in even better behavior
> there.

Great to hear that!  So in a year or ten people can use this safely :-)


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