summaryrefslogtreecommitdiff
path: root/mm/damon/Makefile
diff options
context:
space:
mode:
authorSeongJae Park <sj@kernel.org>2022-06-13 19:23:00 +0000
committerakpm <akpm@linux-foundation.org>2022-06-27 13:45:25 -0700
commit30762c5df7cd734e30a7d3d72e1081f08d248156 (patch)
treeabccfad9b4af280b311e711b7a5d4753de4ef60a /mm/damon/Makefile
parent1e0b62a76a8107128d7aca5280a06c5cecc0f582 (diff)
downloadlinux-next-30762c5df7cd734e30a7d3d72e1081f08d248156.tar.gz
mm/damon: introduce DAMON-based LRU-lists Sorting
Users can do data access-aware LRU-lists sorting using 'LRU_PRIO' and 'LRU_DEPRIO' DAMOS actions. However, finding best parameters including the hotness/coldness thresholds, CPU quota, and watermarks could be challenging for some users. To make the scheme easy to be used without complex tuning for common situations, this commit implements a static kernel module called 'DAMON_LRU_SORT' using the 'LRU_PRIO' and 'LRU_DEPRIO' DAMOS actions. It proactively sorts LRU-lists using DAMON with conservatively chosen default values of the parameters. That is, the module under its default parameters will make no harm for common situations but provide some level of efficiency improvements for systems having clear hot/cold access pattern under a level of memory pressure while consuming only a limited small portion of CPU time. Link: https://lkml.kernel.org/r/20220613192301.8817-9-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/Makefile')
-rw-r--r--mm/damon/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/damon/Makefile b/mm/damon/Makefile
index dbf7190b4144..3e6b8ad73858 100644
--- a/mm/damon/Makefile
+++ b/mm/damon/Makefile
@@ -6,3 +6,4 @@ obj-$(CONFIG_DAMON_PADDR) += ops-common.o paddr.o
obj-$(CONFIG_DAMON_SYSFS) += sysfs.o
obj-$(CONFIG_DAMON_DBGFS) += dbgfs.o
obj-$(CONFIG_DAMON_RECLAIM) += reclaim.o
+obj-$(CONFIG_DAMON_LRU_SORT) += lru_sort.o