Skip to content

Eliminate double counting of treatment subrelease stats in HugePageFiller. - #704

Draft
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_978638844
Draft

Eliminate double counting of treatment subrelease stats in HugePageFiller.#704
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_978638844

Conversation

@copybara-service

Copy link
Copy Markdown

Eliminate double counting of treatment subrelease stats in HugePageFiller.

In HugePageFiller::HandleReleaseFree and HandleUnbackedHugePage, released and
unmapped lengths were directly added to subrelease_stats_.total_pages_subreleased
while also accumulating into unmapping_unaccounted_. ReleasePages drains
unmapping_unaccounted_ into subrelease_stats_.num_pages_subreleased, and
UpdateFillerStatsTracker rolls num_pages_subreleased into
total_pages_subreleased on allocation or epoch boundaries, double counting all
treatment-subreleased pages in cumulative statistics.

…ller.

In HugePageFiller::HandleReleaseFree and HandleUnbackedHugePage, released and
unmapped lengths were directly added to subrelease_stats_.total_pages_subreleased
while also accumulating into unmapping_unaccounted_. ReleasePages drains
unmapping_unaccounted_ into subrelease_stats_.num_pages_subreleased, and
UpdateFillerStatsTracker rolls num_pages_subreleased into
total_pages_subreleased on allocation or epoch boundaries, double counting all
treatment-subreleased pages in cumulative statistics.

PiperOrigin-RevId: 978638844
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant