platform_build_soong/android
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
..
android_test.go Share buildDir for android/soong/android tests 2019-06-10 15:51:06 -07:00
androidmk.go Sandbox soong_build by changing to root directory 2020-01-11 01:11:46 +00:00
androidmk_test.go Move filesystem into Config 2019-12-18 08:19:10 -08:00
apex.go Default apex_available to //apex_available:platform 2020-01-16 09:14:03 +00:00
api_levels.go Merge changes I9f8df94f,I2d7f5c56,I0ebb7381,Ieefcfc1a am: a6bf56d4be 2019-06-10 10:00:33 -07:00
arch.go Pass desired size proptools.FilterPropertyStructSharded 2020-01-22 18:30:56 -08:00
arch_test.go Do a better job removing tags from arch structs 2020-01-22 18:30:56 -08:00
config.go Create a highmem pool and put metalava into it 2020-01-24 11:44:23 -08:00
config_test.go Fix go vet issues 2018-07-22 21:18:45 -07:00
csuite_config.go Create C-Suite config module 2019-10-18 18:28:00 +00:00
csuite_config_test.go Move filesystem into Config 2019-12-18 08:19:10 -08:00
defaults.go apex_available is defaultable 2019-12-02 13:48:33 +09:00
defaults_test.go Move filesystem into Config 2019-12-18 08:19:10 -08:00
defs.go Create a highmem pool and put metalava into it 2020-01-24 11:44:23 -08:00
env.go Sandbox soong_build by changing to root directory 2020-01-11 01:11:46 +00:00
expand.go Fix android.Expand and ninja escaping 2019-07-11 14:52:17 -07:00
expand_test.go Fix android.Expand and ninja escaping 2019-07-11 14:52:17 -07:00
filegroup.go Replace ctx.ExpandSources with android.PathsForModuleSrc 2019-03-20 19:36:13 +00:00
hooks.go Use blueprint's load hooks 2020-01-06 10:57:26 -08:00
image.go Use empty string for core image variant 2019-12-13 20:44:36 -08:00
makevars.go Sandbox soong_build by changing to root directory 2020-01-11 01:11:46 +00:00
module.go Create a highmem pool and put metalava into it 2020-01-24 11:44:23 -08:00
module_test.go Move filesystem into Config 2019-12-18 08:19:10 -08:00
mutator.go Use blueprint's load hooks 2020-01-06 10:57:26 -08:00
mutator_test.go Move filesystem into Config 2019-12-18 08:19:10 -08:00
namespace.go Use blueprint's load hooks 2020-01-06 10:57:26 -08:00
namespace_test.go Move filesystem into Config 2019-12-18 08:19:10 -08:00
neverallow.go android_*_stubs_current modules are moved to frameworks/base 2019-12-22 17:20:27 +09:00
neverallow_test.go Move filesystem into Config 2019-12-18 08:19:10 -08:00
notices.go Separate InstallPath from OutputPath 2019-10-03 10:07:53 -07:00
onceper.go Convert droidstubs to android.RuleBuilder 2019-07-18 14:28:14 -07:00
onceper_test.go Prevent hangs in OncePer when the callback panics 2019-05-14 18:40:13 +00:00
override_module.go Rename OverridableModuleBase.properties. 2020-01-10 13:26:00 -08:00
package.go Dedup package build components registration 2020-01-15 11:17:57 +00:00
package_ctx.go Create a highmem pool and put metalava into it 2020-01-24 11:44:23 -08:00
package_test.go Dedup package build components registration 2020-01-15 11:17:57 +00:00
path_properties.go Dedup path properties across property structs 2019-07-16 09:52:23 -07:00
path_properties_test.go Move filesystem into Config 2019-12-18 08:19:10 -08:00
paths.go Sandbox soong_build by changing to root directory 2020-01-11 01:11:46 +00:00
paths_test.go Sandbox soong_build by changing to root directory 2020-01-11 01:11:46 +00:00
prebuilt.go Exclude source->prebuilt deps from visibility enforcement 2020-01-15 11:17:57 +00:00
prebuilt_etc.go AndroidMkEntries() returns multiple AndroidMkEntries structs 2019-12-11 17:25:27 +09:00
prebuilt_etc_test.go Move filesystem into Config 2019-12-18 08:19:10 -08:00
prebuilt_test.go Exclude source->prebuilt deps from visibility enforcement 2020-01-15 11:17:57 +00:00
proto.go Add method to determine variations from a Target 2019-10-16 14:52:30 -07:00
register.go Support registering hard coded pre arch mutators 2020-01-15 11:17:57 +00:00
rule_builder.go Create a highmem pool and put metalava into it 2020-01-24 11:44:23 -08:00
rule_builder_test.go Move filesystem into Config 2019-12-18 08:19:10 -08:00
sandbox.go Sandbox soong_build by changing to root directory 2020-01-11 01:11:46 +00:00
sdk.go Restrict SdkMemberTypes that can be used with sdk/sdk_snapshot 2019-12-31 15:08:59 +00:00
sh_binary.go Make sh_binary a HostToolProvider 2019-12-19 09:22:36 -08:00
sh_binary_test.go Move filesystem into Config 2019-12-18 08:19:10 -08:00
singleton.go Create a highmem pool and put metalava into it 2020-01-24 11:44:23 -08:00
testing.go Support registering hard coded pre arch mutators 2020-01-15 11:17:57 +00:00
util.go Merge "Soong generates vndk-related .libraries.txt files" 2019-11-01 01:57:50 +00:00
util_test.go Move sharding functions for reuse 2019-09-29 23:26:37 -07:00
variable.go Merge "Create product variant for product partition" 2019-12-21 00:56:45 +00:00
variable_test.go Move filesystem into Config 2019-12-18 08:19:10 -08:00
visibility.go Exclude source->prebuilt deps from visibility enforcement 2020-01-15 11:17:57 +00:00
visibility_test.go Exclude source->prebuilt deps from visibility enforcement 2020-01-15 11:17:57 +00:00
vts_config.go Create C-Suite config module 2019-10-18 18:28:00 +00:00
vts_config_test.go Move filesystem into Config 2019-12-18 08:19:10 -08:00
writedocs.go Split up Soong build doc. 2019-02-20 15:43:06 -08:00