Skip to content

Comments

[8.2.0] Clear AsyncTaskCaches after shutdown#25619

Merged
coeuvre merged 1 commit intobazelbuild:release-8.2.0from
bazel-io:cp25579-8.2.0
Mar 26, 2025
Merged

[8.2.0] Clear AsyncTaskCaches after shutdown#25619
coeuvre merged 1 commit intobazelbuild:release-8.2.0from
bazel-io:cp25579-8.2.0

Conversation

@bazel-io
Copy link
Member

RemoteActionInputPrefetcher is retained through RemoteActionFileSystem and in turn retains all finished AsyncTaskCache tasks, which are only relevant intra-build and can thus be dropped after shutdown. This saves ~1% of retained heap on the Bazel frontend example.

Closes #25579.

PiperOrigin-RevId: 738084614
Change-Id: Ia6f5e9a20f026a861f649090e6f72f8b2152443f

Commit 0ce2f95

`RemoteActionInputPrefetcher` is retained through `RemoteActionFileSystem` and in turn retains all finished `AsyncTaskCache` tasks, which are only relevant intra-build and can thus be dropped after shutdown. This saves ~1% of retained heap on the Bazel frontend example.

Closes bazelbuild#25579.

PiperOrigin-RevId: 738084614
Change-Id: Ia6f5e9a20f026a861f649090e6f72f8b2152443f
@bazel-io bazel-io added team-Remote-Exec Issues and PRs for the Execution (Remote) team awaiting-review PR is awaiting review from an assigned reviewer labels Mar 18, 2025
@bazel-io bazel-io requested a review from a team as a code owner March 18, 2025 18:42
@bazel-io bazel-io requested a review from coeuvre March 18, 2025 18:42
@iancha1992 iancha1992 enabled auto-merge March 21, 2025 21:26
@iancha1992 iancha1992 added this pull request to the merge queue Mar 24, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Mar 24, 2025
@iancha1992 iancha1992 added this pull request to the merge queue Mar 24, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Mar 25, 2025
@coeuvre coeuvre added this pull request to the merge queue Mar 26, 2025
github-merge-queue bot pushed a commit that referenced this pull request Mar 26, 2025
`RemoteActionInputPrefetcher` is retained through
`RemoteActionFileSystem` and in turn retains all finished
`AsyncTaskCache` tasks, which are only relevant intra-build and can thus
be dropped after shutdown. This saves ~1% of retained heap on the Bazel
frontend example.

Closes #25579.

PiperOrigin-RevId: 738084614
Change-Id: Ia6f5e9a20f026a861f649090e6f72f8b2152443f

Commit
0ce2f95

Co-authored-by: Fabian Meumertzheim <fabian@meumertzhe.im>
Merged via the queue into bazelbuild:release-8.2.0 with commit f93a55d Mar 26, 2025
46 checks passed
@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-Remote-Exec Issues and PRs for the Execution (Remote) team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants