Re: [PATCH 1/2] mm: hugetlb: add hugetlb_alloc_threads cmdline option

From: Matthew Wilcox
Date: Fri Feb 21 2025 - 08:56:31 EST


On Fri, Feb 21, 2025 at 02:49:03PM +0100, Thomas Prescher via B4 Relay wrote:
> Add a command line option that enables control of how many
> threads per NUMA node should be used to allocate huge pages.

I don't think we should add a command line option (ie blame the sysadmin
for getting it wrong). Instead, we should figure out the right number.
Is it half the number of threads per socket? A quarter? 90%? It's
bootup, the threads aren't really doing anything else. But we
should figure it out, not the sysadmin.