[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aXi_OhpzvSkoJK4R@localhost.localdomain>
Date: Tue, 27 Jan 2026 14:35:54 +0100
From: Oscar Salvador <osalvador@...e.de>
To: Li Zhe <lizhe.67@...edance.com>
Cc: muchun.song@...ux.dev, david@...nel.org, akpm@...ux-foundation.org,
linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] hugetlb: increase hugepage reservations when using
node-specific "hugepages=" cmdline
On Thu, Jan 22, 2026 at 11:50:02AM +0800, Li Zhe 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.
>
> Signed-off-by: Li Zhe <lizhe.67@...edance.com>
Acked-by: Oscar Salvador <osalvador@...e.de>
--
Oscar Salvador
SUSE Labs
Powered by blists - more mailing lists