mm-damon-lru_sort-support-young-page-filters.patch removed from -mm tree
The quilt patch titled
Subject: mm/damon/lru_sort: support young page filters
has been removed from the -mm tree. Its filename was
mm-damon-lru_sort-support-young-page-filters.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/lru_sort: support young page filters
Date: Tue, 13 Jan 2026 07:27:11 -0800
DAMON monitors access patterns at the region level, and hence there could be some page level mismatches. A few hot pages could be located in cold regions, and vice versa. Young page filters can be useful for doing additional page level access checks before applying some DAMOS action.
DAMON_LRU_SORT is not using young page filters, though. Add a parameter for using it.
---
mm/damon/lru_sort.c | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+)
mm/damon/lru_sort.c renamed from mm/damon/lru_sort.c~mm-damon-lru_sort-support-young-page-filters +41 -0
@@ -42,6 +42,21 @@ static bool commit_inputs __read_mostly;module_param (commit_inputs, bool,0600 );/* +* Filter [non-]young pages accordingly for LRU [de]prioritizations. +* +* If this is set, check page level access (youngness) once again before each +* LRU [de]prioritization operation. LRU prioritization operation is skipped +* if the page has not accessed since the last check (not young). LRU +* deprioritization operation is skipped if the page has accessed since the +* last check (young). The feature is enabled or disabled if this parameter is +* set as ``Y`` or ``N``, respectively. +* +* Disabled by default. +*/ +static bool filter_young_pages__read_mostly ; +module_param (filter_young_pages, bool,0600 ); + +/* * Access frequency threshold for hot memory regions identification in permil. * * If a memory region is accessed in frequency of this or higher,
@@ -193,6 +208,28 @@ static struct damos *damon_lru_sort_new_return damon_lru_sort_new_scheme (&pattern,DAMOS_LRU_DEPRIO ); } +static int damon_lru_sort_add_filters (struct damos *hot_scheme, +struct damos *cold_scheme) +{ +struct damos_filter *filter; + +if (!filter_young_pages) +return 0 ; + +/* disallow prioritizing not-young pages */ + filter =damos_new_filter (DAMOS_FILTER_TYPE_YOUNG , false, false); +if (!filter) +return -ENOMEM ; +damos_add_filter (hot_scheme, filter); + +/* disabllow de-prioritizing young pages */ + filter =damos_new_filter (DAMOS_FILTER_TYPE_YOUNG , true, false); +if (!filter) +return -ENOMEM ; +damos_add_filter (cold_scheme, filter); +return 0 ; +} +static int damon_lru_sort_apply_parameters (void ) {struct damon_ctx *param_ctx;
@@ -240,6 +277,10 @@ static int damon_lru_sort_apply_parametedamon_set_schemes (param_ctx, &hot_scheme,1 );damon_add_scheme (param_ctx, cold_scheme); + err =damon_lru_sort_add_filters (hot_scheme, cold_scheme); +if (err) + goto out; + err = damon_set_region_biggest_system_ram_default(param_target, &monitor_region_start, &monitor_region_end,
_
Patches currently in -mm which might be from [email protected] are
selftests-damon-sysfs_memcg_path_leaksh-use-kmemleak.patch selftests-damon-wss_estimation-test-for-up-to-160-mib-working-set-size.patch selftests-damon-access_memory-add-repeat-mode.patch selftests-damon-wss_estimation-ensure-number-of-collected-wss.patch selftests-damon-wss_estimation-deduplicate-failed-samples-output.patch mm-damon-remove-damon_operations-cleanup.patch mm-damon-core-cleanup-targets-and-regions-at-once-on-kdamond-termination.patch mm-damon-core-cancel-damos_walk-before-damon_ctx-kdamond-reset.patch mm-damon-core-process-damon_call_control-requests-on-a-local-list.patch mm-damon-document-damon_call_control-dealloc_on_cancel-repeat-behavior.patch mm-damon-core-rename-damos_filter_out-to-damos_core_filter_out.patch mm-damon-rename-damon_min_region-to-damon_min_region_sz.patch mm-damon-rename-min_sz_region-of-damon_ctx-to-min_region_sz.patch docs-mm-damon-index-simplify-the-intro.patch docs-mm-damon-design-link-repology-instead-of-fedora-package.patch docs-mm-damon-design-document-damon-sample-modules.patch docs-mm-damon-design-add-reference-to-damon_stat-usage.patch docs-admin-guide-mm-damon-usage-introduce-damon-modules-at-the-beginning.patch docs-admin-guide-mm-damon-usage-update-stats-update-process-for-refresh_ms.patch docs-mm-damon-maintainer-profile-fix-wrong-maitnainers-section-name.patch docs-mm-damon-maintainer-profile-remove-damon-tests-perf-suggestion.patch maple_tree-start-using-maple-copy-node-for-destination-fix.patch