From nobody Thu Sep 24 23:31:51 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 33D813AD53F; Fri, 18 Sep 2026 14:28:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789741717; cv=none; b=nmoS/FIh9NNP802jbeiUeIuA4ZvoVPztBXz4BKlaR78XuzPWTYlRDD6+3wI8byT6DkRj1PvMJJAftE18/hGf/cIx5t3bXzm4P6PJqSuFwPDiaK80z0EdNYGNqSxF7SV1Bi2YbQ7YedkkvmH4NTcQEDbwhpPnvEVXpaKodt0vCh4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789741717; c=relaxed/simple; bh=8MzCWvlHieDINCqR5+czAozZfPHIuo7j88iy0ae8w9g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=p/WlcJFehPxAgmthZzbin6Lp7n+UYPwZqgpNXzrTee88+wv0Vw6pBDd9fpt02BmBmWmsG13GP/v0CNrwVLXvxcPP6rTYJFsWQLX6OnH5XNQw2FxHwlUQlyQeobWMXs3r+94P1MQcKdAdZ/hypmBpYEXh98XaGYNhLRD2KRDWEZ4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Igi3UyRl; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Igi3UyRl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB7471F00899; Fri, 18 Sep 2026 14:28:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1789741716; bh=YDElM6FF7RUmZ+/ENlqzK5UOqsMZpif0jqIreTeTKcI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Igi3UyRlFW/WKsgtQw8ZOmhcBYN2xquwJjMhs3uktX2GXilu0crpt0zJB0h1av/rW VKrUcQPx02cFjFb9mlC/sueBvyLHxw5zLhnxNgAqbBbWpJkN4lV5h2u2tcQjaq1lUF FoAi3Z5Fit87CP6jpBXJzRetkeO3odXYy37tUDJcgPvEdOCgmV9vREGZHR/7FWhlNd XqQ4/20lvjiigthiqd1LnchkaLmHUX4liD/wv+5Yp6trhWvhqEII/3RiPfTbKIH1yF AKTxjv36CJlPTDCJIPntrS3YHknh9qkGUiLh/oSu2NuqtX+Bl9Gg0e7EpxwZXYDDdG Y886/2P7eWoxw== From: SJ Park To: Cc: SJ Park , Andrew Morton , damon@lists.linux.dev, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [RFC PATCH 1/7] mm/damon/core: introduce damos_quota_goal->complement Date: Fri, 18 Sep 2026 07:28:20 -0700 Message-ID: <20260918142827.85303-2-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260918142827.85303-1-sj@kernel.org> References: <20260918142827.85303-1-sj@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Introduce damos_quota_goal->complement for specifying whether to use a complemented value of the given goal target metric. Add the field to the data structure and implement essential core support. Handle the flag in the quota goal commit and current quota goal metric value retrieval. Signed-off-by: SJ Park --- include/linux/damon.h | 2 ++ mm/damon/core.c | 14 ++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/include/linux/damon.h b/include/linux/damon.h index 844b175120f09..78b227875287d 100644 --- a/include/linux/damon.h +++ b/include/linux/damon.h @@ -175,6 +175,7 @@ enum damos_quota_goal_metric { /** * struct damos_quota_goal - DAMOS scheme quota auto-tuning goal. * @metric: Metric to be used for representing the goal. + * @complement: Use the complement of the metric. * @target_value: Target value of @metric to achieve with the tuning. * @current_value: Current value of @metric. * @nid: Node id. @@ -197,6 +198,7 @@ enum damos_quota_goal_metric { */ struct damos_quota_goal { enum damos_quota_goal_metric metric; + bool complement; unsigned long target_value; unsigned long current_value; /* metric-dependent fields */ diff --git a/mm/damon/core.c b/mm/damon/core.c index 4687b909d42c9..98cf6bab9fc6e 100644 --- a/mm/damon/core.c +++ b/mm/damon/core.c @@ -1224,6 +1224,7 @@ static int damos_commit_quota_goal( if (!src->target_value) return -EINVAL; dst->metric =3D src->metric; + dst->complement =3D src->complement; dst->target_value =3D src->target_value; if (dst->metric =3D=3D DAMOS_QUOTA_USER_INPUT) dst->current_value =3D src->current_value; @@ -3239,6 +3240,19 @@ static void damos_set_quota_goal_current_value(struc= t damon_ctx *c, default: break; } + if (!goal->complement) + return; + + /* updte current_value to complemented value */ + + /* for user_input, users set complemented value on their own */ + if (goal->metric =3D=3D DAMOS_QUOTA_USER_INPUT) + return; + if (goal->metric =3D=3D DAMOS_QUOTA_SOME_MEM_PSI_US) + goal->current_value =3D s->quota.reset_interval * 1000 - + goal->current_value; + else + goal->current_value =3D 10000 - goal->current_value; } =20 /* Return the highest score since it makes schemes least aggressive */ --=20 2.47.3 From nobody Thu Sep 24 23:31:51 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5F8353ADB92; Fri, 18 Sep 2026 14:28:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789741718; cv=none; b=k4LyXZMyuaaYFjTT7BYnRJggWgn5ZXbX4Q3nyTqLZ44WgTALUWZPoO3wfStmVJWX36vZsl9e+AT/WqaMZu5ySCjP/9vrK4ZbcuoE5iAFDt6eQKYRFHxApzmIRgdpS5aee+IFMevtZidjhSunjVoxDXKdmEDn3Zdw3llGPckrZho= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789741718; c=relaxed/simple; bh=wcNQD02NWM5kpDQW3NJvmqfePIn+1nQdgyKgwC5zdIs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VBF4uSxATzFsptCR7hSCmBTowLzrkIllLSb1miDfVkYEu822wm2La2V+BBBliAMcKnzasVG/ds7Ow0qY5UCshOa7+FByqy8QCkrgIo+owu8VRIywiGlK04fq4mwRIxQZshcvQlvZX2Sm+M8jMmfVCE366oAnv1qXwZ64M+TbIHs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AmIvreAT; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AmIvreAT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20EB21F00898; Fri, 18 Sep 2026 14:28:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1789741716; bh=hEFjA8z+KJes+owFGdbLwOS9W6UIyuQasfZo8hVa5rw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=AmIvreATOgN8z2RKAyV2SGTl+crvAkb85W0y4EnHdkLp7cyBJ6u8lWCANkKXDQExR q8UIKS7d35PuTNz94+KdA/7z5GHFeZT2hGOPWP+357LCvQ2fhzPwJ+l63dTw2fRQ+3 2hK3Xb2qWc34GXXhIvIsFMrSn20aStnCiHFN6E5e+o2g5Q7UaSl+Ja1gX1s/Bwaj1t f6ozF0MUlZf6hOJsZ2przoFuX/IWEHir6dIKz7rTEAyXjDeZQKrHby0iIgv20AjnX9 fl9F+p+KJt9YxDgoVrXUn5aoNLDJI33RPFtNDpGWEffAJRUdt9MIDLOi7PiRf+Uh/K /B8pUFzKyZO7Q== From: SJ Park To: Cc: SJ Park , Andrew Morton , damon@lists.linux.dev, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [RFC PATCH 2/7] mm/damon: add complement argument to damos_new_quota_goal() Date: Fri, 18 Sep 2026 07:28:21 -0700 Message-ID: <20260918142827.85303-3-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260918142827.85303-1-sj@kernel.org> References: <20260918142827.85303-1-sj@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" damos_quota_goal->complement needs to be manually set by each API callers. It is easy to make mistakes. Extend the quota goal constructor, damos_new_quota_goal() to receive and set the complement flag value. Also update all callers to use the new signature. Signed-off-by: SJ Park --- include/linux/damon.h | 2 +- mm/damon/core.c | 7 ++++--- mm/damon/lru_sort.c | 5 +++-- mm/damon/reclaim.c | 5 +++-- mm/damon/sysfs-schemes.c | 2 +- mm/damon/tests/core-kunit.h | 2 +- samples/damon/mtier.c | 2 +- 7 files changed, 14 insertions(+), 11 deletions(-) diff --git a/include/linux/damon.h b/include/linux/damon.h index 78b227875287d..b310c40d6cebd 100644 --- a/include/linux/damon.h +++ b/include/linux/damon.h @@ -1098,7 +1098,7 @@ bool damos_filter_for_ops(enum damos_filter_type type= ); void damos_destroy_filter(struct damos_filter *f); =20 struct damos_quota_goal *damos_new_quota_goal( - enum damos_quota_goal_metric metric, + enum damos_quota_goal_metric metric, bool complement, unsigned long target_value); void damos_add_quota_goal(struct damos_quota *q, struct damos_quota_goal *= g); void damos_destroy_quota_goal(struct damos_quota_goal *goal); diff --git a/mm/damon/core.c b/mm/damon/core.c index 98cf6bab9fc6e..567db7e1f1d4d 100644 --- a/mm/damon/core.c +++ b/mm/damon/core.c @@ -691,7 +691,7 @@ void damos_destroy_filter(struct damos_filter *f) } =20 struct damos_quota_goal *damos_new_quota_goal( - enum damos_quota_goal_metric metric, + enum damos_quota_goal_metric metric, bool complement, unsigned long target_value) { struct damos_quota_goal *goal; @@ -700,6 +700,7 @@ struct damos_quota_goal *damos_new_quota_goal( if (!goal) return NULL; goal->metric =3D metric; + goal->complement =3D complement; goal->target_value =3D target_value; if (metric =3D=3D DAMOS_QUOTA_SOME_MEM_PSI_US) goal->last_psi_total =3D U64_MAX; @@ -1262,8 +1263,8 @@ int damos_commit_quota_goals(struct damos_quota *dst,= struct damos_quota *src) damos_for_each_quota_goal_safe(src_goal, next, src) { if (j++ < i) continue; - new_goal =3D damos_new_quota_goal( - src_goal->metric, src_goal->target_value); + new_goal =3D damos_new_quota_goal(src_goal->metric, false, + src_goal->target_value); if (!new_goal) return -ENOMEM; err =3D damos_commit_quota_goal(new_goal, src_goal); diff --git a/mm/damon/lru_sort.c b/mm/damon/lru_sort.c index 273efa3c913ed..64e086985eb55 100644 --- a/mm/damon/lru_sort.c +++ b/mm/damon/lru_sort.c @@ -233,12 +233,13 @@ static int damon_lru_sort_add_quota_goals(struct damo= s *hot_scheme, =20 if (!active_mem_bp) return 0; - goal =3D damos_new_quota_goal(DAMOS_QUOTA_ACTIVE_MEM_BP, active_mem_bp); + goal =3D damos_new_quota_goal(DAMOS_QUOTA_ACTIVE_MEM_BP, false, + active_mem_bp); if (!goal) return -ENOMEM; damos_add_quota_goal(&hot_scheme->quota, goal); /* aim 0.2 % goal conflict, to keep little ping pong */ - goal =3D damos_new_quota_goal(DAMOS_QUOTA_INACTIVE_MEM_BP, + goal =3D damos_new_quota_goal(DAMOS_QUOTA_INACTIVE_MEM_BP, false, 10000 - active_mem_bp + 2); if (!goal) return -ENOMEM; diff --git a/mm/damon/reclaim.c b/mm/damon/reclaim.c index 42a2c9cb13431..014b0779ea6dd 100644 --- a/mm/damon/reclaim.c +++ b/mm/damon/reclaim.c @@ -233,7 +233,7 @@ static int damon_reclaim_apply_parameters(void) damon_set_schemes(param_ctx, &scheme, 1); =20 if (quota_mem_pressure_us) { - goal =3D damos_new_quota_goal(DAMOS_QUOTA_SOME_MEM_PSI_US, + goal =3D damos_new_quota_goal(DAMOS_QUOTA_SOME_MEM_PSI_US, false, quota_mem_pressure_us); if (!goal) goto out; @@ -241,7 +241,8 @@ static int damon_reclaim_apply_parameters(void) } =20 if (quota_autotune_feedback) { - goal =3D damos_new_quota_goal(DAMOS_QUOTA_USER_INPUT, 10000); + goal =3D damos_new_quota_goal(DAMOS_QUOTA_USER_INPUT, false, + 10000); if (!goal) goto out; goal->current_value =3D quota_autotune_feedback; diff --git a/mm/damon/sysfs-schemes.c b/mm/damon/sysfs-schemes.c index bfb6f0bc3f213..06af417bc9a2f 100644 --- a/mm/damon/sysfs-schemes.c +++ b/mm/damon/sysfs-schemes.c @@ -2869,7 +2869,7 @@ static int damos_sysfs_add_quota_score( if (!sysfs_goal->target_value) continue; =20 - goal =3D damos_new_quota_goal(sysfs_goal->metric, + goal =3D damos_new_quota_goal(sysfs_goal->metric, false, sysfs_goal->target_value); if (!goal) return -ENOMEM; diff --git a/mm/damon/tests/core-kunit.h b/mm/damon/tests/core-kunit.h index df84d9cc7d204..e8290a2c6f343 100644 --- a/mm/damon/tests/core-kunit.h +++ b/mm/damon/tests/core-kunit.h @@ -929,7 +929,7 @@ static void damos_test_commit_quota_goals_for(struct ku= nit *test, * damos_commit_quota_goals() will kfree() the dst goals. * Make it kfree()-able. */ - goal =3D damos_new_quota_goal(dst_goals[i].metric, + goal =3D damos_new_quota_goal(dst_goals[i].metric, false, dst_goals[i].target_value); if (!goal) goto out; diff --git a/samples/damon/mtier.c b/samples/damon/mtier.c index 27dc88bdf7a0e..a2e311082cd4b 100644 --- a/samples/damon/mtier.c +++ b/samples/damon/mtier.c @@ -163,7 +163,7 @@ static struct damon_ctx *damon_sample_mtier_build_ctx(b= ool promote) damon_set_schemes(ctx, &scheme, 1); quota_goal =3D damos_new_quota_goal( promote ? DAMOS_QUOTA_NODE_MEM_USED_BP : - DAMOS_QUOTA_NODE_MEM_FREE_BP, + DAMOS_QUOTA_NODE_MEM_FREE_BP, false, promote ? node0_mem_used_bp : node0_mem_free_bp); if (!quota_goal) goto free_out; --=20 2.47.3 From nobody Thu Sep 24 23:31:51 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C01EF3B1ED0; Fri, 18 Sep 2026 14:28:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789741718; cv=none; b=fWz4asnZtlTITiylF06XhIHw3/SuTwDhUUyxWTQRL6waBnm1CBtDdF47HlOwCjoB8mlA2oGUxTaeWCM+LRhmjpfGC9aCwTAggdcB99wfXsPDkpfiXQ7NlxPZ5D+rvDQSmcZI+QXhFdDO7BV5OI608Lxr/dUyHh3IHvhIz3UGGYs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789741718; c=relaxed/simple; bh=HjBlbB9cQ9AY2BIG0hpY09SGHxT1AW2xqARHgHIt4H8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LsW0ZohXiWvcIzZq0UAuMPkxMZ8536Q5V97JyyA188/TVGWYs/HdaZYiqNWffDvI/DRrOOLjOKAJ4kmNksC/HmXa/2ek+fjB0IppRQzyBKxCmdN0JT8EOQHds72Oq0Qk2vXgrflTVfQEqecuMB5lV8wR1F4x1nUyj1x1ZXfVuuI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CcmwbUsz; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CcmwbUsz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 69D3C1F0089B; Fri, 18 Sep 2026 14:28:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1789741716; bh=mdugPBiHc8ArlRBJbW3eu//HjQmVTaFB93kqP3fmOG8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=CcmwbUszFWpBfQa1iQ2t21vlxzKgrEOnkDWYeuu/C2mXRSzEFyAUbBViytuXt+N83 mcvTXeJnZ0S4vTwLZ94shlAVPFgKS8Tgbsv1c7/O40ixcxwZ+H3yVPh3jBlitnMSOi kavYPgIxBPBFBZg35FJCGj8W0ze0edZx2+tRS2wi03cPhu2fQw/CK4uz6YxFkYTDfV xH3hcJ+EnjQd2jbsvJhoAUTue8m/YSb4Ve7yAhrulsaJJaLbOAvSgHWWgTrUsmJ4HS NmR/BcidKZnpmR7XKZ6JkP8nnTnELMjKdwzwtaSXhj84MSNtK7ZENSM0HFfavTv/mC huZj73M295NDQ== From: SJ Park To: Cc: SJ Park , Andrew Morton , damon@lists.linux.dev, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [RFC PATCH 3/7] mm/damon/sysfs-schemes: support quota goal complement flag Date: Fri, 18 Sep 2026 07:28:22 -0700 Message-ID: <20260918142827.85303-4-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260918142827.85303-1-sj@kernel.org> References: <20260918142827.85303-1-sj@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add a new sysfs file, complement, under the quota goal directory. It works for setting and getting the quota goal metric complement flag value. Signed-off-by: SJ Park --- mm/damon/sysfs-schemes.c | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/mm/damon/sysfs-schemes.c b/mm/damon/sysfs-schemes.c index 06af417bc9a2f..8f083611741fd 100644 --- a/mm/damon/sysfs-schemes.c +++ b/mm/damon/sysfs-schemes.c @@ -1220,6 +1220,7 @@ static const struct kobj_type damon_sysfs_watermarks_= ktype =3D { struct damos_sysfs_quota_goal { struct kobject kobj; enum damos_quota_goal_metric metric; + bool complement; unsigned long target_value; unsigned long current_value; int nid; @@ -1316,6 +1317,30 @@ static ssize_t target_metric_store(struct kobject *k= obj, return -EINVAL; } =20 +static ssize_t complement_show(struct kobject *kobj, + struct kobj_attribute *attr, char *buf) +{ + struct damos_sysfs_quota_goal *goal =3D container_of(kobj, + struct damos_sysfs_quota_goal, kobj); + + return sysfs_emit(buf, "%c\n", goal->complement ? 'Y' : 'N'); +} + +static ssize_t complement_store(struct kobject *kobj, + struct kobj_attribute *attr, const char *buf, size_t count) +{ + struct damos_sysfs_quota_goal *goal =3D container_of(kobj, + struct damos_sysfs_quota_goal, kobj); + bool complement; + int err =3D kstrtobool(buf, &complement); + + if (err) + return err; + + goal->complement =3D complement; + return count; +} + static ssize_t target_value_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) { @@ -1424,6 +1449,9 @@ static void damos_sysfs_quota_goal_release(struct kob= ject *kobj) static struct kobj_attribute damos_sysfs_quota_goal_target_metric_attr =3D __ATTR_RW_MODE(target_metric, 0600); =20 +static struct kobj_attribute damos_sysfs_quota_goal_complement_attr =3D + __ATTR_RW_MODE(complement, 0600); + static struct kobj_attribute damos_sysfs_quota_goal_target_value_attr =3D __ATTR_RW_MODE(target_value, 0600); =20 @@ -1438,6 +1466,7 @@ static struct kobj_attribute damos_sysfs_quota_goal_p= ath_attr =3D =20 static struct attribute *damos_sysfs_quota_goal_attrs[] =3D { &damos_sysfs_quota_goal_target_metric_attr.attr, + &damos_sysfs_quota_goal_complement_attr.attr, &damos_sysfs_quota_goal_target_value_attr.attr, &damos_sysfs_quota_goal_current_value_attr.attr, &damos_sysfs_quota_goal_nid_attr.attr, @@ -2869,7 +2898,8 @@ static int damos_sysfs_add_quota_score( if (!sysfs_goal->target_value) continue; =20 - goal =3D damos_new_quota_goal(sysfs_goal->metric, false, + goal =3D damos_new_quota_goal(sysfs_goal->metric, + sysfs_goal->complement, sysfs_goal->target_value); if (!goal) return -ENOMEM; --=20 2.47.3 From nobody Thu Sep 24 23:31:51 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D90D3AF662; Fri, 18 Sep 2026 14:28:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789741718; cv=none; b=XoO2hLwHu/70LRjb3AylqRpWC1//MR5x2GP02F5rbvcpXRWx5IQpzWDMX+JMS0VGpRzop1gfVMRDfBVGVyy78KGkYbh4/GuDHPNIWnuXbL6Z9FnqT3IXpf3hoxt2zQMb+XfCkNnVxVF19RWmDKJdSDMFbbc3PgPVts5xX/0EnO8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789741718; c=relaxed/simple; bh=GDXvN/oUdxtfz8ODbwp2BnCBx7mlLzYNo2acZWvIxyk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NN/ul0uF5Om84CL+t5ppziG0aOgWq0TMWGXvBcm5prib56vKp6Zw/8PCbRPcfptMxIII9O2qNpEu3wHbQq6B++J23dgLIQnUROSLrp78sSgUaW6O7PvAcz6d+zWOP29J2qoTyOxINZcYqBWIZLwcNJ8x1MjxLo4/nCzS2HwVZL8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=U3UKdxmk; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="U3UKdxmk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B28071F0089A; Fri, 18 Sep 2026 14:28:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1789741717; bh=yRWBrRHzXRD4yV6zK3pssB5trIwz9nJ/p0K/bKugcGc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=U3UKdxmkO5xWdreA65UuGBv1dqMomRvgd54gkrZ8RGNPAlQjZAq+HKNGLEcYZQdbE 7FlyQwK7gtWLhJdK+doRYKhEDNLUliIW6k7PyptSPoUO0cuxoq+Fme7pGTKaxWfBSL gHas31tt1h9X4+SvaTrHq9RL8a35T82XKwc0oj6+Tep7ja5PVwwdhwXFIadaRuQ7tt knun83sYAYvGf4A+FOw8JMPrtT6Pz+/iN+j5GrXLKzVQoTjnFEa6vXE5FS5Zl2RwN1 zf03kLTVzXa6oPA87qFQqd2OEkjZ61EV+erS0KYZKfnzaFcYg04rXISNChyqAb2eWf Nl19yQJQ3PYHA== From: SJ Park To: Cc: SJ Park , Andrew Morton , Brendan Higgins , David Gow , damon@lists.linux.dev, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org Subject: [RFC PATCH 4/7] mm/damon/tests/core-kunit: test quota_goal->complement commit Date: Fri, 18 Sep 2026 07:28:23 -0700 Message-ID: <20260918142827.85303-5-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260918142827.85303-1-sj@kernel.org> References: <20260918142827.85303-1-sj@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Extend existing DAMOS quota goal commit unit test to test the complement flag. Set the source complement flag and confirm the destination is updated to the given input. Signed-off-by: SJ Park --- mm/damon/tests/core-kunit.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/damon/tests/core-kunit.h b/mm/damon/tests/core-kunit.h index e8290a2c6f343..a2504e96954f7 100644 --- a/mm/damon/tests/core-kunit.h +++ b/mm/damon/tests/core-kunit.h @@ -819,6 +819,7 @@ static void damos_test_commit_quota_goal_for(struct kun= it *test, damos_commit_quota_goal(dst, src); =20 KUNIT_EXPECT_EQ(test, dst->metric, src->metric); + KUNIT_EXPECT_EQ(test, dst->complement, src->complement); KUNIT_EXPECT_EQ(test, dst->target_value, src->target_value); if (src->metric =3D=3D DAMOS_QUOTA_USER_INPUT) KUNIT_EXPECT_EQ(test, dst->current_value, src->current_value); @@ -862,6 +863,7 @@ static void damos_test_commit_quota_goal(struct kunit *= test) damos_test_commit_quota_goal_for(test, &dst, &(struct damos_quota_goal){ .metric =3D DAMOS_QUOTA_USER_INPUT, + .complement =3D true, .target_value =3D 789, .current_value =3D 12}); damos_test_commit_quota_goal_for(test, &dst, --=20 2.47.3 From nobody Thu Sep 24 23:31:51 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C77B344A3FE; Fri, 18 Sep 2026 14:28:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789741719; cv=none; b=uJL9J4bSz4yEh3xWbISKvBGDpbhdPLgqTw+7SBp4HRHBIWJ+bCN7PyispSx+mv0F/1DRxd/X/PVn9zI61DAy0VyYjG1qGc38kgfSyIrtruEkAz/XUlNnJtANhB7WU76KerZ5pjYCKgYzLOhuVEYoHMexdrZOKFPJAi98tn84bVM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789741719; c=relaxed/simple; bh=plGbdbehTitQph8PfjL4EU6xReU3ILvw6sBrO0FSP4A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Nq9+Gpvg3YAgzp6AlKVEta2c3FNuQ6f0mDy/kA6NOOfKj+Vw2/r459nfEPp0j0kAbHvXckeqKlSvZQhAv6qoDrZasK7c8KsQBO8gThyZwUhMsHiNJJJrfwXHOJoZdaxTM4soNjcRiwelhtKpKGftC8OCajz3wqRyhT8ZgJiHScw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TuycTjiV; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TuycTjiV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 264691F0089C; Fri, 18 Sep 2026 14:28:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1789741717; bh=tnIaLQ3JqTQKlYGtXSLMaRVuIin07S/F5Nx3QIjWklQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=TuycTjiVoeVMzOYC+QdjBjiq2BtWAOT6mVWKFFYP1Q43SZJ2ylFR9x/qtM3GZAT+h zjOFGtdgHcHNpp+9JwBfJTsNLBbFG2CZqKSUTHTEf7E6RrX08oaAiqv0tqrhCTraDE 6J2OVhxJYCIL4mIpl1F8U9fscvpS5y04kEKEGEe1ebq8On3ygxfxwPw787L5pZN7I5 j/RofLP4S0KKXUwUaOXn/3kOObyFeb2QH4164d5Qv7xMPS+LoKHc498YgRdZyGtP7y 1Igmc9WPRZ60staPoaoDWecFA5qWlwLfiqX5l4/7ep0D4/UnudyPmXl3LxV21brM83 bvpdf1PGF+ceA== From: SJ Park To: Cc: SJ Park , "Liam R. Howlett" , Andrew Morton , David Hildenbrand , Jonathan Corbet , Lorenzo Stoakes , Michal Hocko , Mike Rapoport , Randy Dunlap , Shuah Khan , Suren Baghdasaryan , Vlastimil Babka , damon@lists.linux.dev, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [RFC PATCH 5/7] Docs/mm/damon/design: document damos quota goal complement flag Date: Fri, 18 Sep 2026 07:28:24 -0700 Message-ID: <20260918142827.85303-6-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260918142827.85303-1-sj@kernel.org> References: <20260918142827.85303-1-sj@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Update DAMON design document for the newly added damos quota goal metric value complement flag. Signed-off-by: SJ Park --- Documentation/mm/damon/design.rst | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Documentation/mm/damon/design.rst b/Documentation/mm/damon/des= ign.rst index e82390e77a70a..c82be80738c45 100644 --- a/Documentation/mm/damon/design.rst +++ b/Documentation/mm/damon/design.rst @@ -702,10 +702,10 @@ There are two such tuning algorithms that users can s= elect as they need. that the zero quota is a valid quota, and therefore ``qt_exceeds`` :ref:= `stat ` will keep increasing in this case. =20 -The goal can be specified with five parameters, namely ``target_metric``, -``target_value``, ``current_value``, ``nid`` and ``path``. The auto-tuning -mechanism tries to make ``current_value`` of ``target_metric`` be same to -``target_value``. +The goal can be specified with six parameters, namely ``target_metric``, +``complement``, ``target_value``, ``current_value``, ``nid`` and ``path``.= The +auto-tuning mechanism tries to make ``current_value`` of ``complement``-ed +``target_metric`` be same to ``target_value``. =20 - ``user_input``: User-provided value. Users could use any metric that th= ey has interest in for the value. Use space main workload's latency or @@ -733,6 +733,11 @@ mechanism tries to make ``current_value`` of ``target_= metric`` be same to - ``hugepage_mem_bp``: Total huge page to total used memory ratio in bp (1/10,000). =20 +``complement`` is a boolean parameter that determines whether to use +complemented value of the target metric. For example, if ``complement`` i= s set +and target metric is ``active_mem_bp``, it is effectively same to +``inactive_mem_bp``. + ``nid`` is optionally required for ``node_mem_used_bp``, ``node_mem_free_b= p``, ``node_memcg_used_bp``, ``node_memcg_free_bp`` and ``node_eligible_mem_bp`= ` to point the specific NUMA node. --=20 2.47.3 From nobody Thu Sep 24 23:31:51 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3A9283ADBA2; Fri, 18 Sep 2026 14:28:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789741721; cv=none; b=GONE6z5y9e1Qw5Pld99aEbBf0ywmZXqV+y6zAuX+6aGu4tdoqcUEiDI+royTQW1vMU+kT8hP2DA+vVc3Y3ua/J2B4lgCIa+YaIozepnmegDfeTuPOGJNoS/jsZ/QHKEEMJEJiTOYRjFRLz63Wd9/9aPRHsfk138TJk79YcqqOjc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789741721; c=relaxed/simple; bh=gvWivKJrBcvzrhXEPZl+KFvgVzhjqhYKz1YE68nQPT8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=g14IGNgr74Qvc2oX6pvudDWOfQu759DMRJ5mlXp6n92vN6eHEIcKPN6/oXcWuF4jbEzUEFyKOOiDqOwqAUwQphJIVvvCK9u+oxiHmyuFgnOqKBH61uqMjJs6lLVE+o3Le0guik8Ty8lMdg7ZUHG8zNlUyCg/QxbntgNsKXdcOJM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SEUWR5a/; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SEUWR5a/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C357E1F000FF; Fri, 18 Sep 2026 14:28:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1789741718; bh=Bt0Ss6VwiTdxRd8z9BHv5kIasgwcGn+W/TUI9MdlD/0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=SEUWR5a/rmlvytL1rFznwx3B2avdQl+r+GOMSLRlO0dkl8R1MFZqT00Tucd4QulRg BX2Wc2aElZ0hFss7sHihs4M6J87ArZ2MHySM1nz3RlU0qzTIsla7LL5t4j+WiF2Rkb GaH9bQ/oeWwp+2MqfeLRFwNigMfou5vQRwFpjrn1IvGuPA7avaheYo1dL66zFSk0vm 6xzjYBIL+C1jJsb0HB4CCuEvvgoNdw9GBhly9YK18zwtdwoYzACm12jVVraE5l4bNe yB0LPwO9N5xTpnzFFRitXW3ZmCJK8qkUsgF7a6J7A0gsomXWJUUBFE2fgN/boJI9oe ZYyp1P7dNrUTg== From: SJ Park To: Cc: SJ Park , "Liam R. Howlett" , Andrew Morton , David Hildenbrand , Jonathan Corbet , Lorenzo Stoakes , Michal Hocko , Mike Rapoport , Randy Dunlap , Shuah Khan , Suren Baghdasaryan , Vlastimil Babka , damon@lists.linux.dev, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [RFC PATCH 6/7] Docs/admin-guide/mm/damon/usage: update for quota goal complement file Date: Fri, 18 Sep 2026 07:28:25 -0700 Message-ID: <20260918142827.85303-7-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260918142827.85303-1-sj@kernel.org> References: <20260918142827.85303-1-sj@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Update DAMON usage document for the newly added quota goal metric complement sysfs file. Signed-off-by: SJ Park --- Documentation/admin-guide/mm/damon/usage.rst | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Documentation/admin-guide/mm/damon/usage.rst b/Documentation/a= dmin-guide/mm/damon/usage.rst index ba47255448564..b3f2e591fb7e4 100644 --- a/Documentation/admin-guide/mm/damon/usage.rst +++ b/Documentation/admin-guide/mm/damon/usage.rst @@ -98,7 +98,8 @@ comma (","). =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 = fail_charge_num,fail_charge_denom =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 = =E2=94=82 weights/sz_permil,nr_accesses_permil,age_permil =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 = =E2=94=82 :ref:`goals `/nr_goals - =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 = =E2=94=82 =E2=94=82 0/target_metric,target_value,current_value,nid,path + =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 = =E2=94=82 =E2=94=82 0/target_metric,complement,target_value, + =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 = =E2=94=82 =E2=94=82 current_value,nid,path =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 = :ref:`watermarks `/metric,interval_us,high,mid,low =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 = :ref:`{core_,ops_,}filters `/nr_filters =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 = =E2=94=82 0/type,matching,allow,memcg_path,addr_start,addr_end,damon_target= _idx,min,max @@ -493,11 +494,11 @@ to ``N-1``. Each directory represents each goal and = current achievement. Among the multiple feedback, the best one is used. =20 Each goal directory contains five files, namely ``target_metric``, -``target_value``, ``current_value``, ``nid``, and ``path``. Users can set= and -get the five parameters for the quota auto-tuning goals that specified on = the -:ref:`design doc ` by writing to and -reading from each of the files. Because the kernel does not update -``current_value``, reading it only makes sense when ``target_metric`` is +``complement``, ``target_value``, ``current_value``, ``nid``, and ``path``. +Users can set and get the six parameters for the quota auto-tuning goals t= hat +specified on the :ref:`design doc `= by +writing to and reading from each of the files. Because the kernel does not +update ``current_value``, reading it only makes sense when ``target_metric= `` is ``user_input``. Note that users should further write ``commit_schemes_quota_goals`` to the ``state`` file of the :ref:`kdamond directory ` to pass the feedback to DAMON. --=20 2.47.3 From nobody Thu Sep 24 23:31:51 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E3814DE70B; Fri, 18 Sep 2026 14:28:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789741721; cv=none; b=BYgNKnPgeGHzEz43yWzl4MuaGCYpWYNVpnP20kX+0wGAbREyo2AVOqUv4RgxRtBpg8704KAIBD1mb+tcrsNIKrDFJDJqLwnPaVGt8iNBwTwYDt7H/AkrJ71t1r3KntcQHJmAMNJ5XxkFdz/dGzwRmCRvjll80+nZ5yojnEtSu0U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789741721; c=relaxed/simple; bh=Pb4vQOwoTY3vtPIlZG9IlsF4JwrmT0eEOny9/u07eTM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WxPM4xnKbLIp7tbFreDSrNTvB4ezAZilojYhIQ/QTQti20QI1UCoegpohJ1r7cf431O9ws/YYVw2oNfP+fexfvRjSr34XRA/r0dZ6BnWa1l6T5mpFFGdKfQxg9jpDFeZyE519gg3WRGpmWH84gX4N7KIRUcaZzKlbuAfshZNqx8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Bj3bNF3Y; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Bj3bNF3Y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FA861F00899; Fri, 18 Sep 2026 14:28:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1789741718; bh=X1sX9mUyRN7/6GImxCu2dritOfCzk+oOrOznq8LURqo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Bj3bNF3YnTkRyExK4aA81r+y4I01gJoc/vxkdx1RVsUyacvvlrZdyvJfIakTUMpJN J3ox1PGyg+j89n1Yx7wpx6bi1eRAsmVr8GvhfrmcCtzsyu9DiuUy5KBwNg5k14Gg3J N9Z0xEpgg2oQA+rjor9/eJ1diN2Ts7vLOjoOw4bYbxeuBIsEnuGcsXIRFrAbLJ671i PpTyuwEyehc23uPdwc1OKBgr7Dvr5vu3583rZLiPTl/qTzta0e1QOm631IxhbPWLE9 aHW3zqDiahqQ8IE8yBsKAC3mrWwPFKVJi5GKmQKoH+RheG/AbGx5jXChAB0g80sb5f wwE5m3Mqsfxvw== From: SJ Park To: Cc: SJ Park , "Liam R. Howlett" , Andrew Morton , David Hildenbrand , Lorenzo Stoakes , Michal Hocko , Mike Rapoport , Suren Baghdasaryan , Vlastimil Babka , damon@lists.linux.dev, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [RFC PATCH 7/7] Docs/ABI/damon: update for quota goal metric complement sysfs file Date: Fri, 18 Sep 2026 07:28:26 -0700 Message-ID: <20260918142827.85303-8-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260918142827.85303-1-sj@kernel.org> References: <20260918142827.85303-1-sj@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Update DAMON ABI document for the newly added damos quota goal metric complement sysfs file. Signed-off-by: SJ Park --- Documentation/ABI/testing/sysfs-kernel-mm-damon | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-kernel-mm-damon b/Documentatio= n/ABI/testing/sysfs-kernel-mm-damon index 55df688ea596f..4acb2015c2f4f 100644 --- a/Documentation/ABI/testing/sysfs-kernel-mm-damon +++ b/Documentation/ABI/testing/sysfs-kernel-mm-damon @@ -375,6 +375,12 @@ Contact: SJ Park Description: Writing to and reading from this file sets and gets the quota auto-tuning goal metric. =20 +What: /sys/kernel/mm/damon/admin/kdamonds//contexts//schemes//qu= otas/goals//complement +Date: Sep 2026 +Contact: SJ Park +Description: Writing to and reading from this file sets and gets whether to + use the complement value of the quota auto-tuning goal metric. + What: /sys/kernel/mm/damon/admin/kdamonds//contexts//schemes//qu= otas/goals//target_value Date: Nov 2023 Contact: SJ Park --=20 2.47.3