]> git.ipfire.org Git - thirdparty/make.git/commit
Compute load from number of running processes.
authorPaul Smith <psmith@gnu.org>
Sat, 23 Sep 2017 19:55:37 +0000 (15:55 -0400)
committerPaul Smith <psmith@gnu.org>
Mon, 30 Oct 2017 21:07:21 +0000 (17:07 -0400)
commitd8728efc80b720c630e6b12dbd34a3d44e060690
tree431777701bc73f16863213e1498bcf1e0524bd9d
parentbaa57d2cf9fda82deb2a86960ddcb2dcab6a3917
Compute load from number of running processes.

* job.c (load_too_high): If /proc/loadavg is available, compare the
maximum load against the number of processes currently running.  If
we can't parse /proc/loadavg, use the previous algorithm.

Concept and initial patch from Sven C. Dack <sven.c.dack@sky.com>
job.c