-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remoteActionBuildingSemaphore
slows down highly parallel remote builds
#20478
Comments
@brentleyjones for your build, did you see any impact on peak memory from your change? |
@meisterT Yes, it's higher, but not massively so. Similar to @werkt's comment (#19924 (comment)), it depends on the build at hand. To quote him:
|
How much faster is this for you when you comment out the code? |
The remote portion of the build is 40% faster, so quite a lot. |
to allow users temporarily disable remote action building throttle. Workaround for bazelbuild#20478.
to allow users temporarily disable remote action building throttle. Workaround for bazelbuild#20478. Closes bazelbuild#20558. PiperOrigin-RevId: 597445193 Change-Id: Ib2c7133adf86139b35156d94e39cbf9e17906439
to allow users temporarily disable remote action building throttle. Workaround for #20478. Closes #20558. Commit 294c904 PiperOrigin-RevId: 597445193 Change-Id: Ib2c7133adf86139b35156d94e39cbf9e17906439 Co-authored-by: Chi Wang <[email protected]>
to allow users temporarily disable remote action building throttle. Workaround for #20478. Closes #20558. Commit 294c904 PiperOrigin-RevId: 597445193 Change-Id: Ib2c7133adf86139b35156d94e39cbf9e17906439 Co-authored-by: Chi Wang <[email protected]>
@coeuvre Is there a plan for improving the default situation? If the Merkle tree cache is the main motivation for this limit, I could prioritize working on that. |
I don't have the capacity to improve it at the moment, but I am happy to review PRs! |
Description of the bug:
Highly parallel RBE builds are slower than they need to be because of
remoteActionBuildingSemaphore
.Which category does this issue belong to?
Remote Execution
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Have a build that can do 300+ actions at once, use
--jobs=300
, and a host machine with 24 or fewer threads. Build clean once with Bazel 7.0.0. Build clean once withremoteActionBuildingSemaphore
usage commented out. Compare and see that the second build is faster.Which operating system are you running Bazel on?
Ubuntu 22.04
What is the output of
bazel info release
?development version
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.Built the
release-7.0.0
branch and modified it per above.What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?No response
Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
No response
Have you found anything relevant by searching the web?
#17120 / 4069a87 added the semaphore
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: