]> 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)
commit29207c5750fffb03eccfba3bce695e467bc8b29f
tree2077cacb9fcb45632ce47c34000e80cab4f3051e
parent5c3455669c92adbb09b50c78a2c342e245edb916
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