On Tue, 2026-04-14 at 21:12 +0200, Buggy Bob wrote:
> During a Gentoo update on a severly underpowered device (RPi4b; 4
> core + 2GB RAM) I noticed strange behavior from make when building
> GCC: It seems to estimate system load based on CPU alone, completely
> ignoring IO's contribution.

There was a change made recently to try to make load detection more
accurate but maybe it actually ended up making things less accurate, in
some situations.

Can you please try applying this patch and rebuilding GNU Make, and see
if you get better results in your tests; this goes back (basically) to
the older algorithm:

--- a/src/job.c
+++ b/src/job.c
@@ -2057,7 +2057,7 @@ load_too_high (void)
 #else
   static double last_sec;
   static time_t last_now;
-  static int proc_fd = -2;
+  static int proc_fd = -1;

   double load, guess;
   time_t now;

Reply via email to