]> www.infradead.org Git - users/jedix/linux-maple.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)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 20 Jul 2022 00:15:06 +0000 (20:15 -0400)
commitdb420311181f677094f72dca46bc42376ef3879d
treec051d5e0de8d84dd9ee26ca08f9d4587fa76d2db
parentf5ce3e1f7817eda7f09a5282b737fa07e5689587
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