Skip to content

Fix page_owner's use of free timestamps

Audra Mitchell linux-mm lkml 1 version Applied

Status from this message: [merged mm-stable] tools-mm-update-the-usage-output-to-be-more-organized.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 6 repliesApplied 5/5

Patches in v1 All 5 applied

#Subject and filesSizeRepliesApplied
1/5mm/page_owner: Remove free_ts from page_owner outputmm/page_owner.c+2 -21 replyApplied
2/5tools/mm: Remove references to free_ts from page_owner_sorttools/mm/page_owner_sort.c+12 -861 replyApplied
3/5tools/mm: Filter out timestamps for correct collationtools/mm/page_owner_sort.c+18 -71 replyApplied
4/5tools/mm: Fix the default case for page_owner_sorttools/mm/page_owner_sort.c+53 -81 replyApplied
5/5tools/mm: Update the usage output to be more organizedtools/mm/page_owner_sort.c+20 -131 replyApplied

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRafael AquiniVlastimil Babka
SeriesA-b
1/5R-b
2/5R-b
3/5A-b
4/5A-b
5/5A-b

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

Read the v1 thread

Cover letter [PATCH 0/5] Fix page_owner's use of free timestamps

While page ower output is used to investigate memory utilization, typically the allocation pathway, the introduction of timestamps to the page owner records caused each record to become unique due to the granularity of the nanosecond timestamp (for example):

Page allocated via order 0 ... ts 5206196026 ns, free_ts 5187156703 ns Page allocated via order 0 ... ts 5206198540 ns, free_ts 5187162702 ns

Furthermore, the page_owner output only dumps the currently allocated records, so having the free timestamps is nonsensical for the typical use case.

In addition, the introduction of timestamps was not properly handled in the page_owner_sort tool causing most use cases to be broken. This series is meant to remove the free timestamps from the page_owner output and fix the page_owner_sort tool so proper collation can occur.

Audra Mitchell (5):
mm/page_owner: Remove free_ts from page_owner output tools/mm: Remove references to free_ts from page_owner_sort tools/mm: Filter out timestamps for correct collation tools/mm: Fix the default case for page_owner_sort tools/mm: Update the usage output to be more organized

 mm/page_owner.c            |   4 +-
 tools/mm/page_owner_sort.c | 212 +++++++++++++++++--------------------
 2 files changed, 100 insertions(+), 116 deletions(-)
Signature · 1 line
2.41.0