mm-damon-core-introduce-damos_quota_goal_tuner_temporal.patch removed from -mm tree
The quilt patch titled
Subject: mm/damon/core: introduce DAMOS_QUOTA_GOAL_TUNER_TEMPORAL
has been removed from the -mm tree. Its filename was
mm-damon-core-introduce-damos_quota_goal_tuner_temporal.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/core: introduce DAMOS_QUOTA_GOAL_TUNER_TEMPORAL
Date: Mon, 9 Mar 2026 18:05:19 -0700
Introduce a new goal-based DAMOS quota auto-tuning algorithm, namely DAMOS_QUOTA_GOAL_TUNER_TEMPORAL (temporal in short). The algorithm aims to trigger the DAMOS action only for a temporal time, to achieve the goal as soon as possible. For the temporal period, it uses as much quota as allowed. Once the goal is achieved, it sets the quota zero, so effectively makes the scheme be deactivated.
---
include/linux/damon.h | 2 ++ mm/damon/core.c | 29 ++++++++++++++++++++++++----- 2 files changed, 26 insertions(+), 5 deletions(-)
include/linux/damon.h renamed from include/linux/damon.h~mm-damon-core-introduce-damos_quota_goal_tuner_temporal +2 -0
@@ -218,9 +218,11 @@ struct damos_quota_goal {/** * enum damos_quota_goal_tuner - Goal-based quota tuning logic. * @DAMOS_QUOTA_GOAL_TUNER_CONSIST: Aim long term consistent quota. +* @DAMOS_QUOTA_GOAL_TUNER_TEMPORAL: Aim zero quota asap. */ enum damos_quota_goal_tuner {DAMOS_QUOTA_GOAL_TUNER_CONSIST , +DAMOS_QUOTA_GOAL_TUNER_TEMPORAL , };/**
mm/damon/core.c renamed from mm/damon/core.c~mm-damon-core-introduce-damos_quota_goal_tuner_temporal +24 -5
@@ -2347,6 +2347,26 @@ static unsigned long damos_quota_score(sreturn highest_score; } +static void damos_goal_tune_esz_bp_consist (struct damos_quota *quota) +{ +unsigned long score =damos_quota_score (quota); + + quota->esz_bp =damon_feed_loop_next_input ( +max (quota->esz_bp,10000UL ), score); +} + +static void damos_goal_tune_esz_bp_temporal (struct damos_quota *quota) +{ +unsigned long score =damos_quota_score (quota); + +if (score >=10000 ) + quota->esz_bp =0 ; +else if (quota->sz) + quota->esz_bp = quota->sz *10000 ; +else + quota->esz_bp =ULONG_MAX ; +} +/* * Called only if quota->ms, or quota->sz are set, or quota->goals is not empty */
@@ -2361,11 +2381,10 @@ static void damos_set_effective_quota(st }if (!list_empty ("a->goals)) { -unsigned long score =damos_quota_score (quota); - - quota->esz_bp =damon_feed_loop_next_input ( -max (quota->esz_bp,10000UL ), - score); +if (quota->goal_tuner ==DAMOS_QUOTA_GOAL_TUNER_CONSIST ) +damos_goal_tune_esz_bp_consist (quota); +else if (quota->goal_tuner ==DAMOS_QUOTA_GOAL_TUNER_TEMPORAL ) +damos_goal_tune_esz_bp_temporal (quota); esz = quota->esz_bp /10000 ; }
_
Patches currently in -mm which might be from [email protected] are
mm-damon-sysfs-dealloc-repeat_call_control-if-damon_call-fails.patch