]> git.ipfire.org Git - thirdparty/make.git/commit
* src/job.c (load_too_high): Disable Linux /proc/loadavg for now
authorPaul Smith <psmith@gnu.org>
Tue, 17 Dec 2019 17:29:44 +0000 (12:29 -0500)
committerPaul Smith <psmith@gnu.org>
Tue, 17 Dec 2019 20:06:28 +0000 (15:06 -0500)
commit57b043c7fb6a220b8cf0f022e4161bbe87f2b0f1
treecc28cbee82c4ab595411cfea5e0fd2b72388fc77
parentf389aabde6ac986036f7e0c6c0d297e217dbdc85
* src/job.c (load_too_high): Disable Linux /proc/loadavg for now

This new feature has a problem: if you provide a load which is
larger than the number of cores then it will always run every job.
Before we can enable it we need to at the least learn how to clamp
this value to the number of cores.  To experiment with it, set
PROC_FD_INIT to -2 in job.c to re-enable the feature.
src/job.c