ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
HugePageAllocator.h

An allocator for the large blocks of a structure, beyond the book. More...

Files

file  ADS/memory/HugePageAllocator.h
 An allocator for the large blocks of a structure, beyond the book: a request of at least one huge page (2 MB) is aligned to a huge page and rounded up to whole ones, so that a system which backs the large blocks of memory by huge pages (the transparent huge pages of Linux under the policy always, the default of several distributions) can give the block whole huge pages; a smaller request goes to std::allocator.

Classes

class  ADS::HugePageAllocator< T >
 an allocator of objects of type T, on huge pages for the large blocks More...
class  ADS::ZeroPageAllocator< T >
 an allocator of objects of type T on blocks of 0s, aligned to a huge page if they fill one at least [see the file] More...

Detailed description

An allocator for the large blocks of a structure, beyond the book.

The definitions, the invariants and the costs of the area are in Theory of memory.