Re: [PATCH v3] docs: update THP admin guide about non-tmpfs filesystem support

From: David Hildenbrand
Date: Fri Apr 04 2025 - 15:16:23 EST


On 04.04.25 16:06, Pankaj Raghav (Samsung) wrote:
From: Pankaj Raghav <p.raghav@xxxxxxxxxxx>

THP support for non-tmpfs filesystem has been around for some time now.
Update the admin guide to reflect it.

While we are at it, move FilePmdMapped to previous paragraph for clarity,
and clarify ShmemPmdMapped & ShmemHugePage.

Signed-off-by: Pankaj Raghav <p.raghav@xxxxxxxxxxx>
Acked-by: David Hildenbrand <david@xxxxxxxxxx>
---

BTW, we should go over the whole document and bring it up to date. Interestingly, it starts with

"Performance critical computing applications dealing with large memory
working sets are already running on top of libhugetlbfs and in turn
hugetlbfs. Transparent HugePage Support (THP) is an alternative mean of
using huge pages for the backing of virtual memory with huge pages
that supports the automatic promotion and demotion of page sizes and
without the shortcomings of hugetlbfs.

Currently THP only works for anonymous memory mappings and tmpfs/shmem.
But in the future it can expand to other filesystems."

--
Cheers,

David / dhildenb