1MEMKIND_HUGETLB(3)              MEMKIND_HUGETLB             MEMKIND_HUGETLB(3)
2
3
4

NAME

6       memkind_hugetlb - hugetlb memory memkind operations.
7       Note:  This  is EXPERIMENTAL API. The functionality and the header file
8       itself can be changed (including non-backward  compatible  changes)  or
9       removed.
10

SYNOPSIS

12       int memkind_hugetlb_check_available_2mb(struct memkind *kind);
13       int memkind_hugetlb_get_mmap_flags(struct memkind *kind, int *flags);
14       void memkind_hugetlb_init_once(void);
15
16

DESCRIPTION

18       The hugetlb memory memkind operations enable memory kinds which use the
19       Linux hugetlbfs file system.  For more information about the  hugetlbfs
20       see link below.
21https://www.kernel.org/doc/Documentation/vm/hugetlbpage.txt
22
23       memkind_hugetlb_check_available_2mb()  check if there are 2MB pages re‐
24       served  in   the   default   hugetlbfs.    If   the   kind   implements
25       ops.get_mbind_nodemask(),  then only the NUMA nodes set by the nodemask
26       are checked, otherwise every NUMA node is checked.
27
28       memkind_hugetlb_get_mmap_flags() sets the flags for the  mmap()  system
29       call such that the hugetlbfs is utilized for allocations.
30
31       memkind_hugetlb_init_once()  this  function initializes MEMKIND_HUGETLB
32       kind  and  it  should  not   be   called   more   than   once.    Note:
33       memkind_hugetlb_init_once() may reserve some extra memory.
34
36       Copyright (C) 2014 - 2020 Intel Corporation. All rights reserved.
37

SEE ALSO

39       memkind(3),   memkind_arena(3),   memkind_default(3),   memkind_hbw(3),
40       memkind_pmem(3), jemalloc(3), mbind(2), mmap(2)
41
42
43
44Intel Corporation                 2015-04-21                MEMKIND_HUGETLB(3)
Impressum