aboutsummaryrefslogtreecommitdiffhomepage
path: root/site/docs/bazel-user-manual.html
diff options
context:
space:
mode:
authorGravatar Han-Wen Nienhuys <hanwen@google.com>2015-04-13 15:18:26 +0000
committerGravatar Philipp Wollermann <philwo@google.com>2015-04-14 14:30:25 +0000
commit3c380eb68aca20791a2c12dd2ccb140ef56c0931 (patch)
treec79711b739b4aa68d0d2065dac1499ea48463840 /site/docs/bazel-user-manual.html
parent37c64ee5236d35536b5b003697b6fcff4f457e00 (diff)
Remove autosense logic.
Polling the machine load can never work, because the following scenarios are quite common: * Tasks that are faster than the poll cycle time. * Tasks whose CPU and/or RAM consumption changes over the lifetime of the task. -- MOS_MIGRATED_REVID=90990445
Diffstat (limited to 'site/docs/bazel-user-manual.html')
-rw-r--r--site/docs/bazel-user-manual.html27
1 files changed, 1 insertions, 26 deletions
diff --git a/site/docs/bazel-user-manual.html b/site/docs/bazel-user-manual.html
index 8c27b20940..c39819322d 100644
--- a/site/docs/bazel-user-manual.html
+++ b/site/docs/bazel-user-manual.html
@@ -1890,9 +1890,6 @@ the compilation of binaries during the build.
higher or much lower than specified. Note also that this option does not
affect the amount of memory that the Bazel server itself will use.
</p>
-<p>
- This option has no effect if --resource_autosense is enabled.
-</p>
<h4 id='flag--local_resources'><code class='flag'>--local_resources</code> <var>availableRAM,availableCPU,availableIO</var></h4>
<p>
@@ -1905,8 +1902,7 @@ workstation). By default Bazel will estimate amount of RAM and number of CPU
cores directly from system configuration and will assume 1.0 I/O resource.
</p>
<p>
- If this option is used, Bazel will ignore both --ram_utilization_factor and
- --resource_autosense options.
+ If this option is used, Bazel will ignore both --ram_utilization_factor.
</p>
<h4 id='flag--build_runfile_links'><code class='flag'>--[no]build_runfile_links</code></h4>
@@ -1975,27 +1971,6 @@ cores directly from system configuration and will assume 1.0 I/O resource.
that were successfully analyzed.
</p>
-<h4 id='flag--resource_autosense'><code class='flag'>--[no]resource_autosense</code></h4>
-<p>
- Bazel's default scheduling algorithm is based on fixed estimates of
- the available CPU/memory resources of the workstation. It does not
- account for the load of any unrelated jobs that happen to be running
- on your machine, such as another Bazel build in a different
- workspace.
-</p>
-<p>
- The <code class='flag'>--resource_autosense</code> option enables a different
- scheduling algorithm for the execution of build steps. It causes
- Bazel to poll the system CPU load and available memory periodically.
- This data is used to limit the number of commands executed
- simultaneously on the workstation, ensuring that the system remains
- responsive, especially when other jobs are running on the machine.
-</p>
-<p>
- (Note, neither algorithm takes into account the actual (dynamic)
- cost of each build step.)
-</p>
-
<h4 id='flag--thin_archives'><code class='flag'>--[no]thin_archives</code></h4>
<p>
This option enables use of <i>thin archives</i>, an optimization which avoids