platform_build_soong/cmd
Colin Cross 8b8bec3b3a Create a highmem pool and put metalava into it
Create a highmem pool based on the total RAM and the number of CPUs,
with an override via the NINJA_HIGHMEM_NUM_JOBS variable.  Put
metalava into the highmem pool.

Ninja does not support nested pools, and when goma or RBE is enabled
the maximum ninja parallelism is set very high with local jobs in a
local pool.  When both the local pool and highmem pool are enabled,
the total number of local jobs will be as high as the sum of the sizes
of the two pools.  Keep the highmem pool limited to 1/16th of the
local pool when remote builds are enabled to try to minimize the
effect while still limiting highmem jobs.

Fixes: 142644983
Test: m nothing, examine pools
Test: m USE_GOMA=true nothing, examine pools
Change-Id: Id79f11f44948992960ac34ecf831dacbe21bd332
2020-01-24 11:44:23 -08:00
..
dep_fixer Rewrite depfile from sbox to stay reproducible 2019-08-29 14:47:40 -07:00
diff_target_files Rename product_services to system_ext 2019-07-09 08:57:05 +00:00
extract_jar_packages Regenerate R.java files from LOCAL_STATIC_ANDROID_LIBRARIES 2018-05-02 13:11:01 -07:00
extract_linker Rework how linux_bionic is built with LLD 2018-10-22 15:46:03 -07:00
fileslist fileslist: hash the content of symlink, not the file it points to. 2017-03-29 13:43:41 -07:00
host_bionic_inject Fix the host bionic linker check; add tests 2018-11-12 22:29:44 -08:00
javac_wrapper Silence trailing "1 warning" message from javac when warning is silenced 2019-11-11 21:48:33 +00:00
merge_zips Fix lint error in format string 2019-09-11 17:06:02 +00:00
multiproduct_kati Take into account RAM usage for multiproduct_kati 2019-12-27 09:54:11 -08:00
path_interposer Fix lint errors caught by go test 2018-07-16 15:24:43 -07:00
pom2bp Allow other module types in androidx 2019-07-22 13:18:48 -07:00
pom2mk Add -jetifier to pom2mk and pom2bp 2019-04-20 21:47:14 -07:00
sbox Rewrite depfile from sbox to stay reproducible 2019-08-29 14:47:40 -07:00
soong_build Allow debugging with SOONG_DELVE=<listen addr> 2019-07-03 16:33:31 -07:00
soong_env Fix package path of android/soong/android pctx 2019-04-04 03:59:34 +00:00
soong_ui Create a highmem pool and put metalava into it 2020-01-24 11:44:23 -08:00
zip2zip Keep directories when moving glob results 2018-11-01 20:34:44 +00:00
zipsync Refactor .aar resource compilation 2019-05-29 16:54:43 -07:00