]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon/schemes: add 'LRU_PRIO' DAMOS action
authorSeongJae Park <sj@kernel.org>
Mon, 13 Jun 2022 19:22:56 +0000 (19:22 +0000)
committerakpm <akpm@linux-foundation.org>
Mon, 4 Jul 2022 01:08:42 +0000 (18:08 -0700)
commit52612e4b7248bd6a9d396f5675e128d8b5c167b3
tree2077cacb9fcb45632ce47c34000e80cab4f3051e
parent14218d76b32b75e55eff7d6c365f60cfb7ba410f
mm/damon/schemes: add 'LRU_PRIO' DAMOS action

This commit adds a new DAMOS action called 'LRU_PRIO' for the physical
address space.  The action prioritizes pages in the memory regions of the
user-specified target access pattern on their LRU lists.  This is hence
supposed to be used for frequently accessed (hot) memory regions so that
hot pages could be more likely protected under memory pressure.
Internally, it simply calls 'mark_page_accessed()'.

Link: https://lkml.kernel.org/r/20220613192301.8817-5-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/damon.h
mm/damon/ops-common.c
mm/damon/ops-common.h
mm/damon/paddr.c
mm/damon/sysfs.c