Re: [PATCH v3 2/4] mm: shmem: control THP support through the kernel command line

From: Baolin Wang
Date: Wed Oct 30 2024 - 23:53:18 EST




On 2024/10/30 20:58, Maíra Canal wrote:
Add a new kernel command line to control the hugepage allocation policy
for the internal shmem mount, ``transparent_hugepage_shmem``. The
parameter is similar to ``transparent_hugepage`` and has the following
format:

transparent_hugepage_shmem=<policy>

where ``<policy>`` is one of the seven valid policies available for
shmem.

By configuring the default hugepage allocation policy for the internal
shmem mount, applications that use shmem, such as the DRM GEM objects,
can take advantage of mTHP before it's been configured through sysfs.

Signed-off-by: Maíra Canal <mcanal@xxxxxxxxxx>

The changes look good to me. With the commit message update pointed out by Andrew, feel free to add:
Reviewed-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>