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       #include <memkind/internal/memkind_hugetlb.h>
13
14       Link with -lmemkind
15
16       int memkind_hugetlb_check_available_2mb(struct memkind *kind);
17       int memkind_hugetlb_get_mmap_flags(struct memkind *kind, int *flags);
18       void memkind_hugetlb_init_once(void);
19
20

DESCRIPTION

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

SEE ALSO

43       memkind(3),   memkind_arena(3),   memkind_default(3),   memkind_hbw(3),
44       memkind_pmem(3), jemalloc(3), mbind(2), mmap(2)
45
46
47
48Intel Corporation                 2015-04-21                MEMKIND_HUGETLB(3)
Impressum