mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-29 15:14:18 +08:00
40e983cca9
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>
10 lines
313 B
Makefile
10 lines
313 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
obj-y := core.o
|
|
obj-$(CONFIG_DAMON_VADDR) += ops-common.o vaddr.o
|
|
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
|