diff options
author | SeongJae Park <sj@kernel.org> | 2022-06-13 19:22:56 +0000 |
---|---|---|
committer | akpm <akpm@linux-foundation.org> | 2022-07-03 18:08:42 -0700 |
commit | 8cdcc532268df0893d9756f537cbce479f4c4831 (patch) | |
tree | 2077cacb9fcb45632ce47c34000e80cab4f3051e /mm/damon/ops-common.h | |
parent | 0e93e8bfd0b8b953038785109d0bab72280823f6 (diff) |
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>
Diffstat (limited to 'mm/damon/ops-common.h')
-rw-r--r-- | mm/damon/ops-common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/damon/ops-common.h b/mm/damon/ops-common.h index e790cb5f8fe0..52329ff361cd 100644 --- a/mm/damon/ops-common.h +++ b/mm/damon/ops-common.h @@ -14,3 +14,5 @@ void damon_pmdp_mkold(pmd_t *pmd, struct mm_struct *mm, unsigned long addr); int damon_pageout_score(struct damon_ctx *c, struct damon_region *r, struct damos *s); +int damon_hot_score(struct damon_ctx *c, struct damon_region *r, + struct damos *s); |