linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] mm: add more kernel parameters to control mTHP
@ 2024-10-27 17:36 Maíra Canal
  2024-10-27 17:36 ` [PATCH 1/3] mm: fix the format of the kernel parameter ``thp_anon=`` Maíra Canal
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Maíra Canal @ 2024-10-27 17:36 UTC (permalink / raw)
  To: Jonathan Corbet, Andrew Morton, Hugh Dickins, Barry Song,
	David Hildenbrand, Ryan Roberts, Baolin Wang, Lance Yang
  Cc: linux-mm, linux-doc, linux-kernel, kernel-dev, Maíra Canal

This series introduces three patches related to the kernel parameters
controlling mTHP. The first patch is a straightforward documentation update,
correcting the format of the kernel parameter ``thp_anon=``.

The second and third patches focus on controlling THP support for shmem
via the kernel command line. The second patch introduces a parameter to
control the global default huge page allocation policy for the internal
shmem mount. The third patch implements a parameter similar to ``thp_anon=``,
but for shmem.

The goal of these changes is to simplify the configuration of systems that
rely on mTHP support for shmem. For instance, a platform with a GPU that
benefits from huge pages may want to enable huge pages for shmem. Having
these kernel parameters streamlines the configuration process and ensures
consistency across setups.

Regarding the third patch, I’m open to suggestions on how to reduce code
duplication between ``thp_anon=`` and ``thp_shmem=``. While I duplicated
the ``get_order_from_str()`` function, I realize this isn’t ideal and
would appreciate advice on where best to place the function.

Let me know your thoughts.

[1] https://lore.kernel.org/linux-mm/20240820105244.62703-1-21cnbao@gmail.com/

Best Regards,
- Maíra

Maíra Canal (3):
  mm: fix the format of the kernel parameter ``thp_anon=``
  mm: shmem: control THP support through the kernel command line
  mm: shmem: override mTHP shmem default with a kernel parameter

 .../admin-guide/kernel-parameters.txt         |  19 ++-
 Documentation/admin-guide/mm/transhuge.rst    |  25 ++-
 mm/shmem.c                                    | 147 +++++++++++++++++-
 3 files changed, 186 insertions(+), 5 deletions(-)

-- 
2.46.2



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2024-12-05 15:24 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-27 17:36 [PATCH 0/3] mm: add more kernel parameters to control mTHP Maíra Canal
2024-10-27 17:36 ` [PATCH 1/3] mm: fix the format of the kernel parameter ``thp_anon=`` Maíra Canal
2024-10-27 19:52   ` Barry Song
2024-10-27 20:36     ` Maíra Canal
2024-10-27 21:46       ` Barry Song
2024-10-28 12:22   ` David Hildenbrand
2024-10-27 17:36 ` [PATCH 2/3] mm: shmem: control THP support through the kernel command line Maíra Canal
2024-10-28  3:31   ` Baolin Wang
2024-10-27 17:36 ` [PATCH 3/3] mm: shmem: override mTHP shmem default with a kernel parameter Maíra Canal
2024-10-27 21:54   ` Barry Song
2024-10-28  1:21     ` Lance Yang
2024-10-28 10:09     ` Maíra Canal
2024-10-28 11:09       ` Barry Song
2024-10-28 11:34         ` Maíra Canal
2024-10-28 22:35           ` Barry Song
2024-10-29  0:31             ` Maíra Canal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox