From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3604FC61DA3 for ; Tue, 21 Feb 2023 06:52:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233374AbjBUGwv (ORCPT ); Tue, 21 Feb 2023 01:52:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233372AbjBUGwt (ORCPT ); Tue, 21 Feb 2023 01:52:49 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6751825299; Mon, 20 Feb 2023 22:52:40 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DE6EF60EFD; Tue, 21 Feb 2023 06:52:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78312C433D2; Tue, 21 Feb 2023 06:52:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1676962359; bh=NxMBFmaYBDitbmp1sO4gaUOd+V6XgSphzGaJlOKkQig=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VHHLlnmf59g/vXjw7M/rQj5zhZe/8s4jGc/vNh/o1BGK5L/nk/7KvWGJA39yK2m06 2ZmE1Q4dVqbaI++nAOWwLmbOtIqpPCUqCZFaFvGCUIYKFjiGgLXi0wNiLLM6zrcUUm 1KC0LJYWTyxAzUyoIR3Kxo6/XqVWEKOqJ2wJtmmMoIHXKsC65JCBnfUkEcnW9UfNVe o/tm1pPNw4OhgRTjhiWw2lbLZsqAyJGROQ/FCZa8JXJ3ZCtI3WeEEuNEv/MWsQwl9A H9QKNSB2VFEJyecJVOXZQVQM1CGSqUXMsPkZMcCw9m43nbjlz6TOsqezoqEsI00qt6 CTkH2EjRogxLg== Date: Tue, 21 Feb 2023 08:52:25 +0200 From: Mike Rapoport 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@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v3] docs/mm: Physical Memory: add example of interleaving nodes Message-ID: References: <20230213154447.1631847-1-rppt@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230213154447.1631847-1-rppt@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org Ping? On Mon, Feb 13, 2023 at 05:44:47PM +0200, Mike Rapoport wrote: > From: "Mike Rapoport (IBM)" > > 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 > Signed-off-by: Mike Rapoport (IBM) > --- > > 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.