Skip to content

Use the kernel's named VMA feature for identifying the per-CPU slab. - #460

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

Use the kernel's named VMA feature for identifying the per-CPU slab.#460
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_959233675

Conversation

@copybara-service

Copy link
Copy Markdown

Use the kernel's named VMA feature for identifying the per-CPU slab.

Depending on the current slab size, the number of CPUs, and the alignment
obtained from TCMalloc's Arena allocator, the slab may not be exactly aligned
to an integer number of hugepages. To avoid splitting VMAs in a way that would
prohibit hugepage coverage, we round up from below and down from above, noting
the rounding that occurred in the name.

Inactive slabs that have been drained and are held in reserve for potential
future reuse are noted with "drained" in their name.

@copybara-service
copybara-service Bot force-pushed the test_959233675 branch 5 times, most recently from 12e9b50 to 290fbfd Compare August 6, 2026 14:58
Depending on the current slab size, the number of CPUs, and the alignment
obtained from TCMalloc's Arena allocator, the slab may not be exactly aligned
to an integer number of hugepages.  To avoid splitting VMAs in a way that would
prohibit hugepage coverage, we round up from below and down from above, noting
the rounding that occurred in the name.

Inactive slabs that have been drained and are held in reserve for potential
future reuse are noted with "drained" in their name.

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