Hi all, Currently, the split counters in THP statistics no longer include PTE-mapped mTHP. Therefore, we propose introducing per-order mTHP split counters to monitor the frequency of mTHP splits. This will help developers better analyze and optimize system performance. /sys/kernel/mm/transparent_hugepage/hugepages-<size>/stats split split_failed split_deferred --- Changes since v1 [1] ==================== - mm: add per-order mTHP split counters - Update the changelog - Drop '_page' from mTHP split counter names (per David and Ryan) - Store the order of the folio in a variable and reuse it later (per Bang) - mm: add docs for per-order mTHP split counters - Improve the doc suggested by Ryan [1] https://lore.kernel.org/linux-mm/20240424135148.30422-1-ioworker0@xxxxxxxxx Lance Yang (2): mm: add per-order mTHP split counters mm: add docs for per-order mTHP split counters Documentation/admin-guide/mm/transhuge.rst | 16 ++++++++++++++++ include/linux/huge_mm.h | 3 +++ mm/huge_memory.c | 19 ++++++++++++++----- 3 files changed, 33 insertions(+), 5 deletions(-) -- 2.45.2