[PATCH RFC 0/2] mm: collect the number of anon mTHP

From: Barry Song
Date: Wed Aug 07 2024 - 21:05:20 EST


From: Barry Song <v-songbaohua@xxxxxxxx>

Knowing the number of anon mTHPs in the system is crucial for performance
analysis. It helps in understanding the ratio and distribution of
mTHPs versus small folios throughout the system.

Additionally, partial unmapping by userspace can lead to significant waste
of mTHPs over time and increase memory reclamation pressure. We need this
information for comprehensive system tuning.

Barry Song (2):
mm: collect the number of anon large folios
mm: collect the number of anon large folios partially unmapped

Documentation/admin-guide/mm/transhuge.rst | 10 ++++++++++
include/linux/huge_mm.h | 16 ++++++++++++++--
mm/huge_memory.c | 8 ++++++++
mm/rmap.c | 3 +++
4 files changed, 35 insertions(+), 2 deletions(-)

--
2.34.1