1NODE_MAP_PFN_ALIGNME(9)   Memory Management in Linux   NODE_MAP_PFN_ALIGNME(9)
2
3
4

NAME

6       node_map_pfn_alignment - determine the maximum internode alignment
7

SYNOPSIS

9       unsigned long node_map_pfn_alignment(void);
10

ARGUMENTS

12       void
13           no arguments
14

DESCRIPTION

16       This function should be called after node map is populated and sorted.
17       It calculates the maximum power of two alignment which can distinguish
18       all the nodes.
19
20       For example, if all nodes are 1GiB and aligned to 1GiB, the return
21       value would indicate 1GiB alignment with (1 << (30 - PAGE_SHIFT)). If
22       the nodes are shifted by 256MiB, 256MiB. Note that if only the last
23       node is shifted, 1GiB is enough and this function will indicate so.
24
25       This is used to test whether pfn -> nid mapping of the chosen memory
26       model has fine enough granularity to avoid incorrect mapping for the
27       populated node map.
28
29       Returns the determined alignment in pfn's. 0 if there is no alignment
30       requirement (single node).
31
33Kernel Hackers Manual 3.10         June 2019           NODE_MAP_PFN_ALIGNME(9)
Impressum