Skip to content

check MGLRU promoted without hold page lock

Huan Yang linux-mm linux-trace-kernel lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tracing: mm: multigen-lru: fix mglru traceinclude/linux/vmstat.h include/trace/events/vmscan.h mm/vmscan.c+26 -70 replies
2/2mm: multi-gen LRU: move promoted folio out of lockinclude/linux/vmstat.h include/trace/events/vmscan.h mm/vmscan.c+7 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] check MGLRU promoted without hold page lock

This patchset add a new reclaim_stat named nr_promote to observe number folios which MGLRU promoted before shrink touch, and then show in mm_vmscan_lru_shrink_inactive. Also, fix nr_scanned in MGLRU trace into nr_taken. (patch1)

Base this trace, here are many folio promoted before shrink touch, so, due to the high frequence, move this check before hold page lock is better.(patch2)

Due to we will not actually touch this folio, nr_promote trace is unnecessary, remove this trace.

This patchset based on link:
https://lore.kernel.org/all/[email protected]/

Which have many mistake pointed by Yu Zhao.(thanks)

Huan Yang (2):
tracing: mm: multigen-lru: fix mglru trace
mm: multi-gen LRU: move promoted folio out of lock

 include/trace/events/vmscan.h |  3 ++-
 mm/vmscan.c                   | 31 ++++++++++++++++++++++---------
 2 files changed, 24 insertions(+), 10 deletions(-)
Signature · 1 line
2.34.1