<div dir="ltr">I think the main issue is to predict how much of resources will be used beforehand.<div><br></div><div style>I agree with David that OOM shouldn't be killing processes basic on stupid metrics, but profiling builds might not be a bad idea.</div>
<div style><br></div><div style>Profile Guided Build Systems could learn from very simple metrics (the ones exposed by Karen) and re-distribute the processes (dependency graph allowing) to use the resources more wisely and stop flogging the machine without letting it be idle either.</div>
<div style><br></div><div style>External usage (editors, browsers, etc) can be counted as factors into the calculation and regarded as non-build commands that *also* consume resources and *also* will have similar usage across builds (a simplification). So, knowing which programs are open can *also* affect how a build will proceed.</div>
<div style><br></div><div style>cheers,</div><div style>--renato</div></div>