aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/exec
diff options
context:
space:
mode:
authorGravatar Josh Pieper <josh.pieper@tri.global>2018-05-04 00:39:37 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-05-04 00:41:16 -0700
commit7f3bdddab94b3c2cfa0f91fbd003cfe9566cf790 (patch)
tree254f98e04a49de9fe1ada6ab72038730d3a71b2c /src/main/java/com/google/devtools/build/lib/exec
parentbfbb11bcc55017ed22e99e1f2221b62e0beff609 (diff)
Do not spawn local actions when available memory is too low
This effectively subsumes all existing memory estimation, as it no longer matters too much how much memory is assigned to each action. WIP: This is a hack, and if it goes in, should almost certainly be hidden behind a configuration option. Closes #4938. PiperOrigin-RevId: 195378568
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/exec')
-rw-r--r--src/main/java/com/google/devtools/build/lib/exec/ExecutionOptions.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/exec/ExecutionOptions.java b/src/main/java/com/google/devtools/build/lib/exec/ExecutionOptions.java
index b7f1b340bf..9f9e3351b4 100644
--- a/src/main/java/com/google/devtools/build/lib/exec/ExecutionOptions.java
+++ b/src/main/java/com/google/devtools/build/lib/exec/ExecutionOptions.java
@@ -225,6 +225,21 @@ public class ExecutionOptions extends OptionsBase {
public ResourceSet availableResources;
@Option(
+ name = "experimental_local_memory_estimate",
+ defaultValue = "false",
+ documentationCategory = OptionDocumentationCategory.UNCATEGORIZED,
+ effectTags = {OptionEffectTag.UNKNOWN},
+ help =
+ "Estimate the actual memory available online. "
+ + "By default, Blaze assumes most actions use a fixed amount of memory, and counts "
+ + "that against the total available system memory, regardless of how much memory is "
+ + "actually available. This option enables online estimation of how much memory is "
+ + "available at any given time, and thus does not require accurate estimation of how "
+ + "much memory a given action will take."
+ )
+ public boolean localMemoryEstimate;
+
+ @Option(
name = "local_test_jobs",
defaultValue = "0",
documentationCategory = OptionDocumentationCategory.UNCATEGORIZED,