From: "Li Zhe" <lizhe.67@bytedance.com>
To: <akpm@linux-foundation.org>
Cc: <david@kernel.org>, <linux-kernel@vger.kernel.org>,
<linux-mm@kvack.org>, <lizhe.67@bytedance.com>,
<muchun.song@linux.dev>, <osalvador@suse.de>
Subject: Re: [PATCH] hugetlb: increase hugepage reservations when using node-specific "hugepages=" cmdline
Date: Fri, 23 Jan 2026 11:14:00 +0800 [thread overview]
Message-ID: <20260123031400.37480-1-lizhe.67@bytedance.com> (raw)
In-Reply-To: <20260122141900.3eb028abe20f6c31808f9b5d@linux-foundation.org>
On Thu, 22 Jan 2026 14:19:00 -0800, akpm@linux-foundation.org wrote:
> On Thu, 22 Jan 2026 11:50:02 +0800 "Li Zhe" <lizhe.67@bytedance.com> wrote:
>
> > Commit 3dfd02c90037 ("hugetlb: increase number of reserving hugepages
> > via cmdline") raised the number of hugepages that can be reserved
> > through the boot-time "hugepages=" parameter for the non-node-specific
> > case, but left the node-specific form of the same parameter unchanged.
> >
> > This patch extends the same optimization to node-specific reservations.
> > When HugeTLB vmemmap optimization (HVO) is enabled and a node cannot
> > satisfy the requested hugepages, the code first releases ordinary
> > struct-page memory of hugepages obtained from the buddy allocator,
> > allowing their struct-page memory to be reclaimed and reused for
> > additional hugepage reservations on that node.
> >
> > This is particularly beneficial for configurations that require
> > identical, large per-node hugepage reservations. On a four-node, 384 GB
> > x86 VM, the patch raises the attainable 2 MiB hugepage reservation from
> > under 374 GB to more than 379 GB.
> >
>
> Thanks.
>
> I *think* the hugepages= documentation in
> Documentation/admin-guide/mm/hugetlbpage.rst is still up to date and
> complete, but can you please check it, see if there's somethig we should
> do?
After carefully re-reading the documentation on the "hugepages="
parameter, I did not see any points that could or should be optimized
regarding the number of reserved huge pages.
Thanks,
Zhe
next prev parent reply other threads:[~2026-01-23 4:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-22 3:50 Li Zhe
2026-01-22 3:53 ` Muchun Song
2026-01-22 22:19 ` Andrew Morton
2026-01-23 3:14 ` Li Zhe [this message]
2026-01-23 3:18 ` Andrew Morton
2026-01-27 13:35 ` Oscar Salvador
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=20260123031400.37480-1-lizhe.67@bytedance.com \
--to=lizhe.67@bytedance.com \
--cc=akpm@linux-foundation.org \
--cc=david@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=muchun.song@linux.dev \
--cc=osalvador@suse.de \
/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