From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-179.mta1.migadu.com (out-179.mta1.migadu.com [95.215.58.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF0A334A78F for ; Thu, 22 Jan 2026 03:54:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769054085; cv=none; b=ZXxhyHiyb5VVuRY0jSNW8uNP75xQOYZPWWJhV4XX3mwZbULwT73zDCvS1uDaWP3aBEtiYnZell/kzDSu4o/gw+Gk65Kp9plgd+hTgsk+5MdIfHzGpNH5TB/u0EEFk73JhVBLYbkvf5SZ43Uc0RIYvtIMA3M3vXjAroVGhk41vSQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769054085; c=relaxed/simple; bh=cQIeXVj5hlP7WYbEKNbppAs9YQWBcMLHN0QFayVpIJE=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=kECzc6s2eQWv/oMSfzsnYGn61WRlaVLKEQsbGwN8cERADpG8to7+opPGzFaruTGCgOuu1wm52YHm2boYO5VVJ1rN2XkrOR59O769N+sFP7fPiyq/JiRhX3E8x7vy3YtM5P1QB3kYNXdSn4LyplRYx/CCPe9BFcctRs4ZUnyS7rU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=iBiWSJOE; arc=none smtp.client-ip=95.215.58.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="iBiWSJOE" Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1769054078; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ji0CigumA7jfO9ppIET7zL2OUFQ+Uh5oYQd0iOYkPNM=; b=iBiWSJOElCJig6scRE+IEEvD2/hQIcBtsIFSHTrOZNRNk+kV6fLeA+5Yeb1NFnIhlSYWXe GjXZarukkNQAbzlmh8Uv8K06w58xTKNK6qXzREHFLZx87oydMw4ecE6xrnnsVLIZ3Mpq/f XSEFgusUPBi8lX8f5m9RbDnqEalBCKg= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.300.41.1.7\)) Subject: Re: [PATCH] hugetlb: increase hugepage reservations when using node-specific "hugepages=" cmdline X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20260122035002.79958-1-lizhe.67@bytedance.com> Date: Thu, 22 Jan 2026 11:53:59 +0800 Cc: osalvador@suse.de, david@kernel.org, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: <460D009E-AC58-4AF2-AF43-A1C38570CDFB@linux.dev> References: <20260122035002.79958-1-lizhe.67@bytedance.com> To: Li Zhe X-Migadu-Flow: FLOW_OUT > On Jan 22, 2026, at 11:50, 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 Reviewed-by: Muchun Song