From: Mike Rapoport <rppt@kernel.org>
To: Darren Hart <darren@os.amperecomputing.com>
Cc: "Zhouguanghui (OS Kernel)" <zhouguanghui1@huawei.com>,
Andrew Morton <akpm@linux-foundation.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-mm@kvack.org" <linux-mm@kvack.org>,
"xuqiang (M)" <xuqiang36@huawei.com>
Subject: Re: [PATCH] memblock: config the number of init memblock regions
Date: Wed, 25 May 2022 20:12:07 +0300 [thread overview]
Message-ID: <Yo5jZ6C4LMBmPRSd@kernel.org> (raw)
In-Reply-To: <Yo5dCF/Y9ijrMj5Z@fedora>
On Wed, May 25, 2022 at 09:44:56AM -0700, Darren Hart wrote:
> On Thu, May 12, 2022 at 09:28:42AM +0300, Mike Rapoport wrote:
> > On Thu, May 12, 2022 at 02:46:25AM +0000, Zhouguanghui (OS Kernel) wrote:
> > > 在 2022/5/11 14:03, Mike Rapoport 写道:
> > > > On Tue, May 10, 2022 at 06:55:23PM -0700, Andrew Morton wrote:
> > > >>
> > > >> Can we simply increase INIT_MEMBLOCK_REGIONS to 1024 and avoid the
> > > >> config option? It appears that the overhead from this would be 60kB or
> > > >> so.
> > > >
> > > > 60k is not big, but using 1024 entries array for 2-4 memory banks on
> > > > systems that don't report that fragmented memory map is really a waste.
> > > >
> > > > We can make this per platform opt-in, like INIT_MEMBLOCK_RESERVED_REGIONS ...
> > >
> > > As I described above, is this a general scenario?
> >
> > The EFI memory on arm64 is generally bad because of all those NOMAP
> > carveouts spread all over the place even in cases without memory faults. So
> > it would make sense to increase the number of memblock regions on arm64
> > when CONFIG_EFI=y.
>
> This seems like a reasonable approach. I would prefer not to have to increase
> the default for EFI arm64 systems (and all that entails with coordinating with
> distros, etc.). The point below about other arch's not needing this is a good
> one too. This seems like a reasonable way make the defaults work everywhere
> while only paying the price on the systems that require it.
There's already v2 of this patch:
https://lore.kernel.org/all/20220517114309.10228-1-zhouguanghui1@huawei.com
> --
> Darren Hart
> Ampere Computing / OS and Kernel
--
Sincerely yours,
Mike.
prev parent reply other threads:[~2022-05-25 17:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-11 1:05 [PATCH] memblock: config the number of init memblock regions Zhou Guanghui
2022-05-11 1:55 ` Andrew Morton
2022-05-11 6:03 ` Mike Rapoport
2022-05-12 2:46 ` Zhouguanghui (OS Kernel)
2022-05-12 6:28 ` Mike Rapoport
2022-05-25 16:44 ` Darren Hart
2022-05-25 17:12 ` Mike Rapoport [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Yo5jZ6C4LMBmPRSd@kernel.org \
--to=rppt@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=darren@os.amperecomputing.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=xuqiang36@huawei.com \
--cc=zhouguanghui1@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).