* [PATCH v3] docs/mm: Physical Memory: add example of interleaving nodes
@ 2023-02-13 15:44 Mike Rapoport
2023-02-13 15:52 ` David Hildenbrand
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Mike Rapoport @ 2023-02-13 15:44 UTC (permalink / raw)
To: Jonathan Corbet
Cc: Andrew Morton, Bagas Sanjaya, David Hildenbrand, Johannes Weiner,
Lorenzo Stoakes, Matthew Wilcox (Oracle),
Mel Gorman, Michal Hocko, Mike Rapoport, Vlastimil Babka,
linux-doc, linux-kernel, linux-mm
From: "Mike Rapoport (IBM)" <rppt@kernel.org>
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>
---
v3:
* Fix typos and wording (Matthew)
v2: https://lore.kernel.org/all/20230212095445.1311627-1-rppt@kernel.org
* Wording update (Bagas)
* Add forgotten Suggested-by
v1: https://lore.kernel.org/all/20230211102207.1267058-1-rppt@kernel.org
Documentation/mm/physical_memory.rst | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/Documentation/mm/physical_memory.rst b/Documentation/mm/physical_memory.rst
index 3f3c02aa6e6e..863ddcd0b291 100644
--- a/Documentation/mm/physical_memory.rst
+++ b/Documentation/mm/physical_memory.rst
@@ -114,6 +114,25 @@ RAM equally split between two nodes, there will be ``ZONE_DMA32``,
| DMA32 | NORMAL | MOVABLE | | NORMAL | MOVABLE |
+---------+----------+-----------+ +------------+-------------+
+
+Memory banks may belong to interleaving nodes. In the example below an x86
+machine has 16 Gbytes of RAM in 4 memory banks, even banks belong to node 0
+and odd banks belong to node 1::
+
+
+ 0 4G 8G 12G 16G
+ +-------------+ +-------------+ +-------------+ +-------------+
+ | node 0 | | node 1 | | node 0 | | node 1 |
+ +-------------+ +-------------+ +-------------+ +-------------+
+
+ 0 16M 4G
+ +-----+-------+ +-------------+ +-------------+ +-------------+
+ | DMA | DMA32 | | NORMAL | | NORMAL | | NORMAL |
+ +-----+-------+ +-------------+ +-------------+ +-------------+
+
+In this case node 0 will span from 0 to 12 Gbytes and node 1 will span from
+4 to 16 Gbytes.
+
.. _nodes:
Nodes
base-commit: e076f253283c3e55a128fa9665c0e6cd8146948d
--
2.35.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v3] docs/mm: Physical Memory: add example of interleaving nodes
2023-02-13 15:44 [PATCH v3] docs/mm: Physical Memory: add example of interleaving nodes Mike Rapoport
@ 2023-02-13 15:52 ` David Hildenbrand
2023-02-21 6:52 ` Mike Rapoport
2023-03-14 18:54 ` Jonathan Corbet
2 siblings, 0 replies; 5+ messages in thread
From: David Hildenbrand @ 2023-02-13 15:52 UTC (permalink / raw)
To: Mike Rapoport, Jonathan Corbet
Cc: Andrew Morton, Bagas Sanjaya, Johannes Weiner, Lorenzo Stoakes,
Matthew Wilcox (Oracle),
Mel Gorman, Michal Hocko, Vlastimil Babka, linux-doc,
linux-kernel, linux-mm
On 13.02.23 16:44, Mike Rapoport wrote:
> From: "Mike Rapoport (IBM)" <rppt@kernel.org>
>
> 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>
--
Thanks,
David / dhildenb
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v3] docs/mm: Physical Memory: add example of interleaving nodes
2023-02-13 15:44 [PATCH v3] docs/mm: Physical Memory: add example of interleaving nodes Mike Rapoport
2023-02-13 15:52 ` David Hildenbrand
@ 2023-02-21 6:52 ` Mike Rapoport
2023-02-21 14:31 ` Jonathan Corbet
2023-03-14 18:54 ` Jonathan Corbet
2 siblings, 1 reply; 5+ messages in thread
From: Mike Rapoport @ 2023-02-21 6:52 UTC (permalink / raw)
To: Jonathan Corbet
Cc: Andrew Morton, Bagas Sanjaya, David Hildenbrand, Johannes Weiner,
Lorenzo Stoakes, Matthew Wilcox (Oracle),
Mel Gorman, Michal Hocko, Vlastimil Babka, linux-doc,
linux-kernel, linux-mm
Ping?
On Mon, Feb 13, 2023 at 05:44:47PM +0200, Mike Rapoport wrote:
> From: "Mike Rapoport (IBM)" <rppt@kernel.org>
>
> 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>
> ---
>
> v3:
> * Fix typos and wording (Matthew)
>
> v2: https://lore.kernel.org/all/20230212095445.1311627-1-rppt@kernel.org
> * Wording update (Bagas)
> * Add forgotten Suggested-by
>
> v1: https://lore.kernel.org/all/20230211102207.1267058-1-rppt@kernel.org
> Documentation/mm/physical_memory.rst | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)
>
> diff --git a/Documentation/mm/physical_memory.rst b/Documentation/mm/physical_memory.rst
> index 3f3c02aa6e6e..863ddcd0b291 100644
> --- a/Documentation/mm/physical_memory.rst
> +++ b/Documentation/mm/physical_memory.rst
> @@ -114,6 +114,25 @@ RAM equally split between two nodes, there will be ``ZONE_DMA32``,
> | DMA32 | NORMAL | MOVABLE | | NORMAL | MOVABLE |
> +---------+----------+-----------+ +------------+-------------+
>
> +
> +Memory banks may belong to interleaving nodes. In the example below an x86
> +machine has 16 Gbytes of RAM in 4 memory banks, even banks belong to node 0
> +and odd banks belong to node 1::
> +
> +
> + 0 4G 8G 12G 16G
> + +-------------+ +-------------+ +-------------+ +-------------+
> + | node 0 | | node 1 | | node 0 | | node 1 |
> + +-------------+ +-------------+ +-------------+ +-------------+
> +
> + 0 16M 4G
> + +-----+-------+ +-------------+ +-------------+ +-------------+
> + | DMA | DMA32 | | NORMAL | | NORMAL | | NORMAL |
> + +-----+-------+ +-------------+ +-------------+ +-------------+
> +
> +In this case node 0 will span from 0 to 12 Gbytes and node 1 will span from
> +4 to 16 Gbytes.
> +
> .. _nodes:
>
> Nodes
>
> base-commit: e076f253283c3e55a128fa9665c0e6cd8146948d
> --
> 2.35.1
>
--
Sincerely yours,
Mike.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v3] docs/mm: Physical Memory: add example of interleaving nodes
2023-02-21 6:52 ` Mike Rapoport
@ 2023-02-21 14:31 ` Jonathan Corbet
0 siblings, 0 replies; 5+ messages in thread
From: Jonathan Corbet @ 2023-02-21 14:31 UTC (permalink / raw)
To: Mike Rapoport
Cc: Andrew Morton, Bagas Sanjaya, David Hildenbrand, Johannes Weiner,
Lorenzo Stoakes, Matthew Wilcox (Oracle),
Mel Gorman, Michal Hocko, Vlastimil Babka, linux-doc,
linux-kernel, linux-mm
Mike Rapoport <rppt@kernel.org> writes:
> Ping?
It's in my queue. The docs tree has conflicts all over the place this
time around, so I closed things down a bit earlier than I otherwise
would have. I'm expecting to catch up a bit in the coming week.
Thanks,
jon
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v3] docs/mm: Physical Memory: add example of interleaving nodes
2023-02-13 15:44 [PATCH v3] docs/mm: Physical Memory: add example of interleaving nodes Mike Rapoport
2023-02-13 15:52 ` David Hildenbrand
2023-02-21 6:52 ` Mike Rapoport
@ 2023-03-14 18:54 ` Jonathan Corbet
2 siblings, 0 replies; 5+ messages in thread
From: Jonathan Corbet @ 2023-03-14 18:54 UTC (permalink / raw)
To: Mike Rapoport
Cc: Andrew Morton, Bagas Sanjaya, David Hildenbrand, Johannes Weiner,
Lorenzo Stoakes, Matthew Wilcox (Oracle),
Mel Gorman, Michal Hocko, Mike Rapoport, Vlastimil Babka,
linux-doc, linux-kernel, linux-mm
Mike Rapoport <rppt@kernel.org> writes:
> From: "Mike Rapoport (IBM)" <rppt@kernel.org>
>
> 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>
> ---
>
> v3:
> * Fix typos and wording (Matthew)
>
> v2: https://lore.kernel.org/all/20230212095445.1311627-1-rppt@kernel.org
> * Wording update (Bagas)
> * Add forgotten Suggested-by
>
> v1: https://lore.kernel.org/all/20230211102207.1267058-1-rppt@kernel.org
> Documentation/mm/physical_memory.rst | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)
Applied (finally). Thanks and apologies for the delay,
jon
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-03-14 18:55 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-13 15:44 [PATCH v3] docs/mm: Physical Memory: add example of interleaving nodes Mike Rapoport
2023-02-13 15:52 ` David Hildenbrand
2023-02-21 6:52 ` Mike Rapoport
2023-02-21 14:31 ` Jonathan Corbet
2023-03-14 18:54 ` Jonathan Corbet
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.