Re: [PATCH v2] mm: Override mTHP "enabled" defaults at kernel cmdline

From: Baolin Wang
Date: Fri Aug 09 2024 - 04:49:54 EST




On 2024/8/8 18:16, Ryan Roberts wrote:
Add thp_anon= cmdline parameter to allow specifying the default
enablement of each supported anon THP size. The parameter accepts the
following format and can be provided multiple times to configure each
size:

thp_anon=<size>[KMG]:<value>

See Documentation/admin-guide/mm/transhuge.rst for more details.

Configuring the defaults at boot time is useful to allow early user
space to take advantage of mTHP before its been configured through
sysfs.

Signed-off-by: Ryan Roberts <ryan.roberts@xxxxxxx>

Make sense to me. Thanks.
Reviewed-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>