Message ID | 20230213154447.1631847-1-rppt@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2420117wrn; Mon, 13 Feb 2023 07:54:08 -0800 (PST) X-Google-Smtp-Source: AK7set+M+vzhk2ryrDq7wgpQ0WmLyKi87o8NXwSyTu+I8VLZbntI/ixEYRF6POzC90LBSWW92hMo X-Received: by 2002:a50:cd48:0:b0:4aa:a76b:1ac7 with SMTP id d8-20020a50cd48000000b004aaa76b1ac7mr27036312edj.25.1676303648806; Mon, 13 Feb 2023 07:54:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676303648; cv=none; d=google.com; s=arc-20160816; b=TxlWnUoob8CRzA4XPCxohPLe24mOgqQ9gIWSlpdOlyH+S0VYn2VJWpxT8GjgA22lTG MmObv2MTJtyx7wnj1EPZCy4ddI1EYXC7kgFLUxH0EGkrcK26mi9z65LN+QLfUlEsbH/Y uRkUa/QxW0wKKj565angNvwoX525kgDkQPO/90GLeuhiiucc2QXErPTby6bzJWSpWLRd z8xF4C5iAjGwe55I4SL5WfYl06A2GnEUExp47+2Oua5CtePBc3/l+kHPFpLSSpZO4P2U nPyhXDHt9XPHuFOXEI1aWV1kfJ9yN/oyseDhGmM5ABWoNxuhoDkvKPxitRFVVW0579uF fndg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=3yfmU7w5WnXxIdKc8qwF5EZ6QHfPvsINd0zcYQdkJRk=; b=jmpN1GIRNc5EFMCTVGEs+wzHygzHxvqTnVNrbCjFEJmPkxeXWmVlz/5j4qoh87md+p horPb4frPnpJnS9jDT7UpDwDWL0wxmQMQLw7wPiMsEPZWYz+pCfSrEody9AC57siihCs YxOV5xknXSK4xF8IHRodQXz3ufDlw+CPxLhAEpjyz5YBvtfg4E250r3QxP+wpl1Utta0 3l/qmvjxuo2IuuryTVYySVqzNHeKVOvhLkWXOUypdRB/dX1koWEF0ahf4mQ2KCB9Q2de jIlFRG5ejhzm1/2urG3///p97AqFbeIMFX8+HrnMWUsSHAxbSrycUhAymsbT/je1a79/ kw/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oYFoV1C5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d2-20020a056402000200b004a08f89336dsi14594002edu.446.2023.02.13.07.53.45; Mon, 13 Feb 2023 07:54:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oYFoV1C5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231196AbjBMPpV (ORCPT <rfc822;tebrre53rla2o@gmail.com> + 99 others); Mon, 13 Feb 2023 10:45:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230127AbjBMPpE (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 13 Feb 2023 10:45:04 -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 88ADF193E5; Mon, 13 Feb 2023 07:45:02 -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 10A1E6118C; Mon, 13 Feb 2023 15:45:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B4F9C433EF; Mon, 13 Feb 2023 15:44:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1676303101; bh=3TCnaksRiCFT0Z0YvJMH4En9wOOliKkX6mIfVxch1/U=; h=From:To:Cc:Subject:Date:From; b=oYFoV1C5N4+99kOQgjte+Mu1C4C1loYygKcOeGLooD+7IDAvMRWOffEe4OTZYtGYX PzZnFN6/AMPLYvxYrnkkazkkqLSskGo7Xl0mSO1FNKJBPdlUiTRfGSVf3v+nWoOtk6 U8Oxds2TR89PHDtjOqGDuNyYVD0oQmmEAHBlRT9NdcEIePxQgazWKnu8H2qZSODwKp qFYxSU8p3IXWX1Jok49Y+3glLsUuIunphcHLOe1nGWgJn9d3bhCQcmrf1SWhHIV1tw sqW5rA9NWOHKgiKYunURqRH8yq0cCpQ7ryVTEQAxzekI3XXNKXQilk2Tqb+SkUtbvG IwoAiICoybG2g== From: Mike Rapoport <rppt@kernel.org> To: Jonathan Corbet <corbet@lwn.net> Cc: Andrew Morton <akpm@linux-foundation.org>, Bagas Sanjaya <bagasdotme@gmail.com>, David Hildenbrand <david@redhat.com>, Johannes Weiner <hannes@cmpxchg.org>, Lorenzo Stoakes <lstoakes@gmail.com>, "Matthew Wilcox (Oracle)" <willy@infradead.org>, Mel Gorman <mgorman@suse.de>, Michal Hocko <mhocko@kernel.org>, Mike Rapoport <rppt@kernel.org>, Vlastimil Babka <vbabka@suse.cz>, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH v3] docs/mm: Physical Memory: add example of interleaving nodes Date: Mon, 13 Feb 2023 17:44:47 +0200 Message-Id: <20230213154447.1631847-1-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757731774846522179?= X-GMAIL-MSGID: =?utf-8?q?1757731774846522179?= |
Series |
[v3] docs/mm: Physical Memory: add example of interleaving nodes
|
|
Commit Message
Mike Rapoport
Feb. 13, 2023, 3:44 p.m. UTC
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(+) base-commit: e076f253283c3e55a128fa9665c0e6cd8146948d
Comments
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>
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 >
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
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
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