[cfe-dev] ld taking too much memory to link clang

Renato Golin Linaro renato.golin at linaro.org
Thu Jan 24 01:08:15 PST 2013


I think the main issue is to predict how much of resources will be used
beforehand.

I agree with David that OOM shouldn't be killing processes basic on stupid
metrics, but profiling builds might not be a bad idea.

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.

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.

cheers,
--renato
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130124/a6ae0f4f/attachment.html>


More information about the cfe-dev mailing list