Skip to content

mm: count the number of anonymous THPs per size

Barry Song linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 Latest2 patches 2 repliesIn review 1 of 2 applied

Patches in v4 1 of 2 applied

#Subject and filesSizeRepliesApplied
1/2mm: count the number of anonymous THPs per sizeDocumentation/admin-guide/mm/transhuge.rst include/linux/huge_mm.h mm/huge_memory.c +3 more+37 -62 replies
2/2mm: count the number of partially mapped anonymous THPs per sizeDocumentation/admin-guide/mm/transhuge.rst include/linux/huge_mm.h mm/huge_memory.c+14 -00 repliesApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDavid Hildenbrand
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/2] mm: count the number of anonymous THPs per size

From: Barry Song <[email protected]>

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

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

-v4:
* collect David's acked-by, thanks!
* refine subjects, changelogs and docs according to David's comment, thanks very much!

-v3:
https://lore.kernel.org/linux-mm/[email protected]/
* collect David's acked-by, thanks!
* rename nr_split_deferred to meaningful name - nr_anon_partially_mapped, per David. Ryan, I assume you will like it after you come back :-)

-v2:
https://lore.kernel.org/linux-mm/[email protected]/
* don't rely on rmap to implement - 1, uses folio_free, split etc. Thanks for David's comment;
* rename sys counters and refine doc. Thanks for Ryan's comment;

-v1:
https://lore.kernel.org/all/[email protected]/

Barry Song (2):
mm: count the number of anonymous THPs per size
mm: count the number of partially mapped anonymous THPs per size

 Documentation/admin-guide/mm/transhuge.rst | 12 ++++++++++++
 include/linux/huge_mm.h                    | 16 ++++++++++++++--
 mm/huge_memory.c                           | 19 ++++++++++++++++---
 mm/migrate.c                               |  4 ++++
 mm/page_alloc.c                            |  5 ++++-
 mm/rmap.c                                  |  1 +
 6 files changed, 51 insertions(+), 6 deletions(-)
Signature · 1 line
2.39.3 (Apple Git-146)