You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Actions fetched from remote cache / executed remotely should not count towards parallelism limit #6394
P2We'll consider working on this in future. (Assignee optional)not staleIssues or PRs that are inactive but not considered staleteam-PerformanceIssues for Performance teamstype: feature request
When a fairly large application is built using the remote cache, and all the actions are fully cached. Bazel still keeps the parallelism set to the number of cores in the machine. However, most actions are just waiting for network I/O.
With the default settings on an 8-core machine, I get:
$ time bazel build //...
## output elided
INFO: Elapsed time: 97.567s, Critical Path: 26.44s
INFO: 2000 processes: 2000 remote cache hit.
INFO: Build completed successfully, 2240 total actions
real 1m38.518s
user 0m0.051s
sys 0m0.061s
But if I bump up the number of jobs to a crazy number:
$ time bazel build --jobs 2000 //...
## output elided
INFO: Elapsed time: 39.535s, Critical Path: 31.33s
INFO: 2000 processes: 2000 remote cache hit.
INFO: Build completed successfully, 2240 total actions
real 0m40.483s
user 0m0.048s
sys 0m0.058s
I think the --jobs option should only apply to local actions.
changed the title [-]Actions fetched from remote cache should not count towards parallelism[/-][+]Actions fetched from remote cache should not count towards parallelism limit[/+]on Oct 15, 2018
Thanks @ob! A colleague of mine has a prototype of this, however I still expect this to be at least 3-6 months away to land in a released Bazel version!
FWIW, we "fix" this in Google by actually running with --jobs=200 (or higher). Local actions are still limited by local resources, so this is fine in general.
With jobs set to 8, I see a max of 16 actions. This would mean jobs fetching from remote cache is not counting towards parallelism. Is there a way we can configure it to do so?
P2We'll consider working on this in future. (Assignee optional)not staleIssues or PRs that are inactive but not considered staleteam-PerformanceIssues for Performance teamstype: feature request
Activity
[-]Actions fetched from remote cache should not count towards parallelism[/-][+]Actions fetched from remote cache should not count towards parallelism limit[/+]buchgr commentedon Oct 30, 2018
Thanks @ob! A colleague of mine has a prototype of this, however I still expect this to be at least 3-6 months away to land in a released Bazel version!
philwo commentedon Nov 6, 2018
FWIW, we "fix" this in Google by actually running with --jobs=200 (or higher). Local actions are still limited by local resources, so this is fine in general.
buchgr commentedon Nov 6, 2018
@philwo @ulfjack has a prototype patch to no longer be limited by
--jobsfor remote execution.ittaiz commentedon Jan 6, 2019
@philwo
Means you run with
jobstogether withlocal_resources?72 remaining items
meisterT commentedon May 10, 2023
We are working on this again, in a different way. Next step is to upgrade to a modem JDK which will allow us to use loom/virtual threads.
Ryang20718 commentedon May 16, 2023
Reading through this thread.
If I'm using local execution with a remote cache and almost all tests are cached. with --jobs set to 4, I see. (currently on bazel 6.0.0)
With jobs set to 8, I see a max of 16 actions. This would mean jobs fetching from remote cache is not counting towards parallelism. Is there a way we can configure it to do so?
Use high concurrency on CI build & test.
Use high concurrency on CI build & test.
Use high concurrency on CI build & test.
Use high concurrency on CI build & test. (#3192)
Use high concurrency on CI build & test. (carbon-language#3192)
[CI] Build using --remote_download_toplevel
[CI] Build using --remote_download_toplevel
[CI] Build using --remote_download_toplevel
[CI] Build using --remote_download_toplevel