Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs/mm: Physical Memory: add example of interleaving nodes

Add an example of memory layout with interleaving nodes where even memory
banks belong to node 0 and odd memory banks belong to node 1

Suggested-by: Michal Hocko <mhocko@kernel.org>
Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Link: https://lore.kernel.org/r/20230213154447.1631847-1-rppt@kernel.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Mike Rapoport (IBM) and committed by
Jonathan Corbet
10d18135 33fcc0e3

+19
+19
Documentation/mm/physical_memory.rst
··· 114 114 | DMA32 | NORMAL | MOVABLE | | NORMAL | MOVABLE | 115 115 +---------+----------+-----------+ +------------+-------------+ 116 116 117 + 118 + Memory banks may belong to interleaving nodes. In the example below an x86 119 + machine has 16 Gbytes of RAM in 4 memory banks, even banks belong to node 0 120 + and odd banks belong to node 1:: 121 + 122 + 123 + 0 4G 8G 12G 16G 124 + +-------------+ +-------------+ +-------------+ +-------------+ 125 + | node 0 | | node 1 | | node 0 | | node 1 | 126 + +-------------+ +-------------+ +-------------+ +-------------+ 127 + 128 + 0 16M 4G 129 + +-----+-------+ +-------------+ +-------------+ +-------------+ 130 + | DMA | DMA32 | | NORMAL | | NORMAL | | NORMAL | 131 + +-----+-------+ +-------------+ +-------------+ +-------------+ 132 + 133 + In this case node 0 will span from 0 to 12 Gbytes and node 1 will span from 134 + 4 to 16 Gbytes. 135 + 117 136 .. _nodes: 118 137 119 138 Nodes