Expand description
Transparent Huge Pages (THP) memory allocator.
This crate provides a memory allocator that uses Linux Transparent Huge Pages to obtain 2MB physically contiguous memory blocks. THP must be enabled in the kernel configuration.
Implements the swage_core::allocator::ConsecAllocator trait.
§Platform Requirements
- x86_64 Linux with THP support enabled
- THP should be set to “always” or “madvise” mode
Structs§
- THP
- THP allocator. This allocator uses Linux Transparent Huge Pages to obtain 2MB physically contiguous memory blocks.
Enums§
- Error
- Errors that can happen during THP allocation