From: Thomas Prescher <thomas.prescher@cyberus-technology.de>
To: "akpm@linux-foundation.org" <akpm@linux-foundation.org>
Cc: "linux-mm@kvack.org" <linux-mm@kvack.org>,
"corbet@lwn.net" <corbet@lwn.net>,
"willy@infradead.org" <willy@infradead.org>,
"muchun.song@linux.dev" <muchun.song@linux.dev>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>
Subject: Re: [PATCH 1/2] mm: hugetlb: add hugetlb_alloc_threads cmdline option
Date: Mon, 24 Feb 2025 10:42:33 +0000 [thread overview]
Message-ID: <cf53e173c1b7e2c5f801e4acaa0447c94f53051d.camel@cyberus-technology.de> (raw)
In-Reply-To: <20250222184630.1f25865325eced9b0f37eb85@linux-foundation.org>
On Sat, 2025-02-22 at 18:46 -0800, Andrew Morton wrote:
>
> I'm all for auto-tuning but yeah, for a boot-time thing like this we
> require a boot-time knob.
>
> As is often (always) the case, the sad thing is that about five
> people
> in the world know that this exists. How can we tell our users that
> this new thing is available and possibly useful to them? We have no
> channel.
>
> Perhaps in your [2/2] we could be noisier?
>
> HugeTLB: allocation took 4242ms with
> hugepage_alloc_threads=42
>
> and with a facility level higher than KERN_DEBUG (can/should we use
> pr_foo() here, btw?). That should get people curious and poking
> around
> in the documentation and experimenting.
I completely agree with what you are saying. So for v2, I would:
a) change the default from 2 threads per node to 25% of the total
threads per node to make it faster for everyone
b) make it noisier by using pr_info instead of printk(KERN_DEBUG ...)
and also print the number of threads that are used
Anything that I am missing here?
next prev parent reply other threads:[~2025-02-24 10:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-21 13:49 [PATCH 0/2] Add a command line option that enables control of how many threads per NUMA node should be used to allocate huge pages Thomas Prescher via B4 Relay
2025-02-21 13:49 ` [PATCH 1/2] mm: hugetlb: add hugetlb_alloc_threads cmdline option Thomas Prescher via B4 Relay
2025-02-21 13:52 ` Matthew Wilcox
2025-02-21 14:16 ` Thomas Prescher
2025-02-23 2:46 ` Andrew Morton
2025-02-24 10:42 ` Thomas Prescher [this message]
2025-02-24 17:37 ` Frank van der Linden
2025-02-25 13:01 ` Thomas Prescher
2025-02-21 13:49 ` [PATCH 2/2] mm: hugetlb: log time needed to allocate hugepages Thomas Prescher via B4 Relay
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=cf53e173c1b7e2c5f801e4acaa0447c94f53051d.camel@cyberus-technology.de \
--to=thomas.prescher@cyberus-technology.de \
--cc=akpm@linux-foundation.org \
--cc=corbet@lwn.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=muchun.song@linux.dev \
--cc=willy@infradead.org \
/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