mbox series

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

Message ID 20231020084358.463846-1-link@vivo.com (mailing list archive)
Headers show
Series check MGLRU promoted without hold page lock | expand

Message

Huan Yang Oct. 20, 2023, 8:43 a.m. UTC
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/20231018082104.3918770-1-link@vivo.com/

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(-)