From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 855393559FA for ; Tue, 27 Jan 2026 13:35:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769520960; cv=none; b=IgWOLaV71RpTCbSTxUqU40xKHlBswgivd7Kv+r1j0gnIOtbR2kEYqiOQuCsNQAIfGosMfH3UsCzQyXNykAV6fiW/I7c5qHDrJiwB9sKK8xg2CEvRVhgPz3KPTYuVhLdSPf8/iloIxGJ8TccT8QsTUQu40ZawGxf4RnwOi7FSOvY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769520960; c=relaxed/simple; bh=KIUwkAFK1EB8grSEtaob4VO0+jOAqqrkaJMld89lw1Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UQrMzn8iTXkbfgkwMbL8Y7jlzdjvM6io6E4BOqCjzE/R46Pp0pv1FdzJmJ6AYPaC4K1ISNYXzW5P8pvW8KTWYS7/Klb1wIsh5zR2wINMw+1DVBoEx5b4R3nBAxQ0U182v8YqsGTYFEnPUlFJkz3SivLgRoKwpERawuKIU6NX/tI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=PRSg+kr8; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=PCh5v4X2; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=GOf1JvuU; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=gErQOfvd; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="PRSg+kr8"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="PCh5v4X2"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="GOf1JvuU"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="gErQOfvd" Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 5A4A15BCF1; Tue, 27 Jan 2026 13:35:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1769520957; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qGSkFsS5q5/IupBbK/Dkx87ZeTM99oZFQDwExaxRbT4=; b=PRSg+kr8tDobgqqofxkpf2pz5ngV66cFavvfUgwA6E70eBXxSf8Hy8YyMWnvn5LIIIfGyK QubXsEfyXcpCGds+J5lF27R5fqlEbp0eF+B+mrAsKAuu+ZGWCVigqFenBAWNJFrg9mOwW8 k4BqiAdJGM+DNA/RGJh8FffG3YCANIg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1769520957; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qGSkFsS5q5/IupBbK/Dkx87ZeTM99oZFQDwExaxRbT4=; b=PCh5v4X2tujchYfgzDlTWBsha+28mIRfHEhLKPfQ/oK9BLCPxuo++fJthlUOTEQdJ7EyW3 5Y9txRSZ5ldev+CA== Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=GOf1JvuU; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=gErQOfvd DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1769520956; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qGSkFsS5q5/IupBbK/Dkx87ZeTM99oZFQDwExaxRbT4=; b=GOf1JvuUCHT4XH2uV+Bw4qHhiZBu9msALMPz/W5gMsTlwzqokhRjEcilEE2NwYcXfxRp9F FSS+QO4EKu5Vg5/Wbj2Y9ySu/nmSlJ6eohbVoU5eKj7YvPi+i8kAN6unAfQRME7ho3Zg/G PwFE4d8+D6Lrg0tC+vlz9qAUtgtCKAw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1769520956; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qGSkFsS5q5/IupBbK/Dkx87ZeTM99oZFQDwExaxRbT4=; b=gErQOfvdzgALl1KnFdrGnIKjfyOr+Lt+jOEMLpC/4du29A99B4V/dmeXG7zskbN8Q2p3Pq C9Zj4B3C9ng0pLAQ== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id E1F713EA61; Tue, 27 Jan 2026 13:35:55 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id JIxxNDu/eGmREgAAD6G6ig (envelope-from ); Tue, 27 Jan 2026 13:35:55 +0000 Date: Tue, 27 Jan 2026 14:35:54 +0100 From: Oscar Salvador To: Li Zhe Cc: muchun.song@linux.dev, david@kernel.org, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] hugetlb: increase hugepage reservations when using node-specific "hugepages=" cmdline Message-ID: References: <20260122035002.79958-1-lizhe.67@bytedance.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260122035002.79958-1-lizhe.67@bytedance.com> X-Spam-Score: -4.51 X-Spamd-Result: default: False [-4.51 / 50.00]; BAYES_HAM(-3.00)[99.99%]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-1.000]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:104:10:150:64:97:from]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; FUZZY_RATELIMITED(0.00)[rspamd.com]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_TLS_ALL(0.00)[]; DNSWL_BLOCKED(0.00)[2a07:de40:b281:106:10:150:64:167:received,2a07:de40:b281:104:10:150:64:97:from]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_FIVE(0.00)[6]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:106:10:150:64:167:received]; MISSING_XM_UA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DKIM_TRACE(0.00)[suse.de:+]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim,suse.de:email,localhost.localdomain:mid] X-Spam-Level: X-Rspamd-Action: no action X-Rspamd-Queue-Id: 5A4A15BCF1 X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Spam-Flag: NO 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 Acked-by: Oscar Salvador -- Oscar Salvador SUSE Labs