memkind_hugetlb(3)

memkind_hugetlb3

Hugetlb memory memkind operations. note: this is experimental api. the functionality and the header file itself can be changed (including non-backward compatible changes) or removed.

Usage

int memkind_hugetlb_check_available_2mb(struct memkind *kind);
int memkind_hugetlb_get_mmap_flags(struct memkind *kind, int *flags);
void memkind_hugetlb_init_once(void);

Overview

The hugetlb memory memkind operations enable memory kinds which use the Linux hugetlbfs file system. For more information about the hugetlbfs see link below.
⟨https://www.kernel.org/doc/Documentation/vm/hugetlbpage.txt⟩

memkind_hugetlb_check_available_2mb() check if there are 2MB pages reserved in the default hugetlbfs. If the kind implements ops.get_mbind_nodemask(), then only the NUMA nodes set by the nodemask are checked, otherwise every NUMA node is checked.

memkind_hugetlb_get_mmap_flags() sets the flags for the mmap() system call such that the hugetlbfs is utilized for allocations.

memkind_hugetlb_init_once() this function initializes MEMKIND_HUGETLB kind and it should not be called more than once. Note: memkind_hugetlb_init_once() may reserve some extra memory.

Releases

3 releases since Debian 10 (Buster); the text changed 1 time.

  1. 10
  2. 11–12

From libmemkind-dev 1.14.0-2 in Debian 12 (Bookworm). Parsed by carta from the page's man source.