Allow R8 to run concurrently with lld on low-ram machines
Adds a secondary ninja pool for R8 / lint for machines with not much RAM. For machines with more ram, R8 / lint continue to use the same pool as links. Speed up compiles on android-binary-size by ~90 seconds. Example: A bot has 18GB of RAM, and it takes 10GB to link: * concurrent_links = 1, with 8GB leftover * So add an java_cmd_pool of size 8/2 = 4. A bot has 22GB of RAM, and it takes 10GB to link: * concurrent_links = 2, with 2GB leftover * A secondary pool would be of size=1, so in this case have java commands use the link_pool directly so that size=2 rather than size=1. Bug: 1078460 Change-Id: I7e4ecfeb04d1c215b2ff27b6a0c438c0e8e3dd88 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2347960 Commit-Queue: Andrew Grieve <agrieve@chromium.org> Reviewed-by:Peter Wen <wnwen@chromium.org> Reviewed-by:
Dirk Pranke <dpranke@google.com> Cr-Commit-Position: refs/heads/master@{#799095}
Showing
Please register or sign in to comment