Skip to main content

nohugepage

Function nohugepage 

Source
pub(crate) fn nohugepage(ptr: *mut u8, len: usize)
Available on Unix and crate feature pool only.
Expand description

Opts the page-aligned subrange of [ptr, ptr + len) out of transparent huge pages, so reclaim advice over the range operates on base pages and never needs a folio split. Contents are preserved. No-op outside Linux.