tcmalloc: Expose flag and parameter for unbacked hugepage subrelease mode - #943
Draft
copybara-service[bot] wants to merge 1 commit into
Draft
copybara-service[bot] wants to merge 1 commit into
copybara-service[bot] wants to merge 1 commit into
Conversation
copybara-service
Bot
force-pushed
the
test_982530158
branch
5 times, most recently
from
September 16, 2026 21:00
c8979d2 to
dde292f
Compare
copybara-service
Bot
force-pushed
the
test_982530158
branch
2 times, most recently
from
September 17, 2026 00:31
8e59565 to
5c89b39
Compare
…mode Expose the `--tcmalloc_subrelease_unbacked_hugepages` flag and `Parameters::set_subrelease_unbacked_hugepages` API to allow configuring unbacked hugepage subrelease mode at startup and dynamically at runtime. Rather than pushing updates into `HugePageFiller` upon flag changes, `HugePageAwareAllocator` reads the parameter lazily during gardening and page release, updating filler state under `pageheap_lock`. To make runtime mode toggling O(1) without requiring expensive list migrations, `PageTracker` now tracks its filler list membership via `in_released_list_`. This ensures trackers unlinking from filler lists correctly identify their origin list and preserve used-page counter invariants without scanning lists on mode changes. PiperOrigin-RevId: 982530158
copybara-service
Bot
force-pushed
the
test_982530158
branch
from
September 17, 2026 15:54
5c89b39 to
0b903d3
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
tcmalloc: Expose flag and parameter for unbacked hugepage subrelease mode
Expose the
--tcmalloc_subrelease_unbacked_hugepagesflag andParameters::set_subrelease_unbacked_hugepagesAPI to allow configuringunbacked hugepage subrelease mode at startup and dynamically at runtime.
Rather than pushing updates into
HugePageFillerupon flag changes,HugePageAwareAllocatorreads the parameter lazily during gardening and pagerelease, updating filler state under
pageheap_lock.To make runtime mode toggling O(1) without requiring expensive list migrations,
PageTrackernow tracks its filler list membership viain_released_list_.This ensures trackers unlinking from filler lists correctly identify their
origin list and preserve used-page counter invariants without scanning lists
on mode changes.