Skip to content

Track releasable hugepages in HugeRegion with a bitmap. - #1017

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

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

Conversation

@copybara-service

Copy link
Copy Markdown

Track releasable hugepages in HugeRegion with a bitmap.

HugeRegion::Release scanned all 512 backed_/pages_used_ entries to find
free-and-backed hugepages. Maintain a 512-bit unreleasable_ bitmap at the
transitions that already update free_backed_count_, and walk its free ranges
with NextFreeRange/PrevFreeRange (new) instead, marking whole ranges at
once.

`HugeRegion::Release` scanned all 512 `backed_`/`pages_used_` entries to find
free-and-backed hugepages.  Maintain a 512-bit `unreleasable_` bitmap at the
transitions that already update `free_backed_count_`, and walk its free ranges
with `NextFreeRange`/`PrevFreeRange` (new) instead, marking whole ranges at
once.

PiperOrigin-RevId: 984062570
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