mm-damon-introduce-damon-based-lru-lists-sorting.patch removed from -mm tree
The quilt patch titled
Subject: mm/damon: introduce DAMON-based LRU-lists Sorting
has been removed from the -mm tree. Its filename was
mm-damon-introduce-damon-based-lru-lists-sorting.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: SeongJae Park <[email protected]>
Subject: mm/damon: introduce DAMON-based LRU-lists Sorting
Date: Mon, 13 Jun 2022 19:23:00 +0000
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.
---
mm/damon/Kconfig | 8 mm/damon/Makefile | 1 mm/damon/lru_sort.c | 546 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 555 insertions(+)
mm/damon/Kconfig renamed from mm/damon/Kconfig~mm-damon-introduce-damon-based-lru-lists-sorting +8 -0
@@ -92,4 +92,12 @@ config DAMON_RECLAIM reclamation under light memory pressure, while the traditional page scanning-based reclamation is used for heavy pressure. +config DAMON_LRU_SORT + bool "Build DAMON-based LRU-lists sorting (DAMON_LRU_SORT)" + depends on DAMON_PADDR + help + This builds the DAMON-based LRU-lists sorting subsystem. It tries to + protect frequently accessed (hot) pages while rarely accessed (cold) + pages reclaimed first under memory pressure. + endmenu
mm/damon/lru_sort.c new file +546 -0
546 lines not on this page · raw message
mm/damon/Makefile renamed from mm/damon/Makefile~mm-damon-introduce-damon-based-lru-lists-sorting +1 -0
@@ -6,3 +6,4 @@ obj-$(CONFIG_DAMON_PADDR) += ops-common. 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
_
Patches currently in -mm which might be from [email protected] are
docs-admin-guide-damon-add-a-document-for-damon_lru_sort.patch