linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] mm: introduce per-order mTHP split counters
@ 2024-06-28 13:07 Lance Yang
  2024-06-28 13:07 ` [PATCH v2 1/2] mm: add " Lance Yang
  2024-06-28 13:07 ` [PATCH v2 2/2] mm: add docs for " Lance Yang
  0 siblings, 2 replies; 14+ messages in thread
From: Lance Yang @ 2024-06-28 13:07 UTC (permalink / raw)
  To: akpm
  Cc: dj456119, 21cnbao, ryan.roberts, david, shy828301, ziy, libang.li,
	baolin.wang, linux-kernel, linux-mm, Lance Yang

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@gmail.com

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



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

end of thread, other threads:[~2024-07-01 11:47 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-28 13:07 [PATCH v2 0/2] mm: introduce per-order mTHP split counters Lance Yang
2024-06-28 13:07 ` [PATCH v2 1/2] mm: add " Lance Yang
2024-07-01  0:02   ` Barry Song
2024-07-01  1:42     ` Lance Yang
2024-07-01  2:23     ` Baolin Wang
2024-07-01 10:36       ` Lance Yang
2024-07-01  8:18   ` Ryan Roberts
2024-07-01 10:37     ` Lance Yang
2024-06-28 13:07 ` [PATCH v2 2/2] mm: add docs for " Lance Yang
2024-06-29  3:08   ` Barry Song
2024-06-29 14:30     ` Lance Yang
2024-07-01  8:31   ` Ryan Roberts
2024-07-01 10:50     ` Lance Yang
2024-07-01 11:46       ` Ryan Roberts

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).