|
NUMA++ 0.11.0
|
Polymorphic memory resource allocating huge pages with specified NUMA policy. More...
#include <numapp/memory.hpp>
Public Member Functions | |
| HugePageResource (HugePageSize page_size, MemPolicy policy, MemPolicyFlag flags=MemPolicyFlag::None) | |
| Create PageResource with specified memory policy and flags. | |
| virtual | ~HugePageResource ()=default |
| Destroy PageResource. | |
| HugePageResource & | operator= (HugePageResource const &)=delete |
| HugePage resource is not copy assignable. | |
| auto | GetPolicy () const noexcept -> MemPolicy const & |
| Get memory policy in use. | |
| auto | GetFlags () const noexcept -> MemPolicyFlag |
| Get flags in use. | |
| auto | GetPageSize () const noexcept -> HugePageSize |
| Get page size. | |
Polymorphic memory resource allocating huge pages with specified NUMA policy.
Memory is page-aligned and allocated size is rounded up to nearest full page.
Allocations are performed using numapp::AllocateHuge() and deallocations use numapp::FreeHuge(), see numapp_alloc_huge for details.
Definition at line 680 of file memory.hpp.
| numapp::HugePageResource::HugePageResource | ( | HugePageSize | page_size, |
| MemPolicy | policy, | ||
| MemPolicyFlag | flags = MemPolicyFlag::None ) |
Create PageResource with specified memory policy and flags.
| page_size | Page size to use when allocating. |
| policy | Memory policy to use when allocating. |
| flags | Memory policy flags to use when allocating. |
Definition at line 250 of file memory.cpp.