From nobody Thu Sep 24 12:50:46 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 6026648122F; Wed, 23 Sep 2026 10:15:08 +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=1790158513; cv=none; b=eKwlFaou5tTzFjozrUMPZOKKLE18f7AEM9QYtOQmWEObb8zDcVfCPMTLv2KLxetfUXlKhCpiwpfc5hI/lA0APshzpq69ALS8xloksZPJRRlvp01tru3sHjM+qfFwy0VNczsQcRckNl7bP5daiGqa7iiYKgVj8toRzhE7MKYoP2o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790158513; c=relaxed/simple; bh=qYzWp6VHP/HR+yWUpjZx2lyqgT5Lv+oRVspqenmMkOw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rRrRneGfK5uJgbTxpNwGR3b8RXnl5F+UIDorkkIdT+bfv5ohEbJEAyNV6S+teCX6uFfcziQVyyWfSyK89nmvz48Pm2qw3a2CnvHeXxMU9WHnadNr32gUQs9vZwlXG2OqOaxEM4v9EReZum4+wOA60iI37Wi0ZVToLbw1OIVQ69c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gLsYsRuH; 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="gLsYsRuH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A5D71F00893; Wed, 23 Sep 2026 10:15:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1790158504; bh=Le0M5MU2vZNaokYjxTmQGl7234V19KAd0AEz359SlAY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=gLsYsRuH3maXMLxmsRhxQSiF9J5/Gx19cMgqQyWx4F82RCnG5QdLrzPQBS77+m3fQ WHlqZ8KDbcYIkq8UZFDvvbUaNQcbXrmFRnu5VqdlAMFF61GFwQXbE4EgrtmDBW63qa 7a6mKZ9LYajFcXr21026JxtlCkXI88nsCIO9T1nGQBvgOkBe0TRxZvN86gqR9Eoyd0 lnoO3vwu1j6IwIaqxPCQJB0u2tE60W9gdghX2t3A0OAhmST8VqDpoi0vaMKBVFX5uT +xcRAPPiIQiWpeECHM0S+IGUFbwqWFb2X+kvas0Z0vajqSnYTh7vBEYHgMUzlnvZfu 2Z1P487s0yx4A== 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 v3 1/7] mm/damon/core: introduce damos_quota_goal->complement Date: Wed, 23 Sep 2026 03:14:46 -0700 Message-ID: <20260923101454.5748-2-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260923101454.5748-1-sj@kernel.org> References: <20260923101454.5748-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 | 26 +++++++++++++++++++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/include/linux/damon.h b/include/linux/damon.h index 6a29dc2ac8db..42234839ce29 100644 --- a/include/linux/damon.h +++ b/include/linux/damon.h @@ -169,6 +169,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. @@ -191,6 +192,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 566960659e4a..836cf0d0de6f 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; @@ -2960,10 +2961,18 @@ static void damos_set_psi_current_val(u64 now_psi_t= otal, struct damos_quota_goal *goal, struct damos *s) { u64 last_psi_total =3D goal->last_psi_total; + unsigned long val; =20 goal->last_psi_total =3D now_psi_total; if (last_psi_total !=3D U64_MAX) { - goal->current_value =3D now_psi_total - last_psi_total; + val =3D now_psi_total - last_psi_total; + if (goal->complement) { + if (val < s->quota.reset_interval * 1000) + val =3D s->quota.reset_interval * 1000 - val; + else + val =3D 0; + } + goal->current_value =3D val; return; } /* uninitialized last_psi_total; make no effect this round */ @@ -3255,6 +3264,21 @@ 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; + /* damos_set_psi_current_val() handles complement flag itself */ + if (goal->metric =3D=3D DAMOS_QUOTA_SOME_MEM_PSI_US) + return; + if (goal->current_value < 10000) + goal->current_value =3D 10000 - goal->current_value; + else + goal->current_value =3D 0; } =20 /* Return the highest score since it makes schemes least aggressive */ --=20 2.47.3 From nobody Thu Sep 24 12:50:46 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 6049C4825C4; Wed, 23 Sep 2026 10:15:08 +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=1790158520; cv=none; b=uO55zd6yiAK6oZB2SLVbx4aNOn1DJeVg8Y6VIJWD57T9nl4nN3Dontbotg47QzfcVCIUVz1ji0dTrquXaGU3otmDcNZzwdzsikjXDbPb9DJ3ZEczFRFwFWSsn+PxkOj2Lg6iXvb94qNQLBoDYpuzTVVJYYCQel0YjKt9qtyNF24= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790158520; c=relaxed/simple; bh=5Tj3LVlMj7cDJSkUi2XwL0AUJow6JnNF1/pFQCKA+IY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pINq0BRYg7C1kga2Sp4Uyvh73C4RFx0qIYAh4MYy782IgIkGDeX2Di11k+S0A2YCTNmhWWNSq4FUKaWlp+gKMuk37YIeY27Kt1puyy91vh37A962Yvh5nMhM8cV5xqBhKtsSdLUbdFIoeUqGqu4A8qYavi1yZo94QjjCnIb4y4k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mRtnpVrO; 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="mRtnpVrO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B93D1F00898; Wed, 23 Sep 2026 10:15:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1790158506; bh=WEuyieJBBXR7WJiAJGyTdd6YUGmVUYQh7HDuCpd0o2w=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=mRtnpVrOhhAfIZMikXbAAB1clrMbd3FSeLHUsKfGyP0cRd2z90unaewZ9bRcqe44H flTJBLNkv60xldmCTvk7KdPnr+FZyuhc5J5oNj/JLwjkbh8S+nrwe36t60FcDOSYoC 0CiDhAH3AkIfp49OxfJv9YH9hd4DIwbrpqPRZl/bh7hnHtjsR9XD26PF1+VH6xsNWq M9TNvMzLKYZrRU2sDgu67AjKNUmKpA7TagEYqYV9fpXtEewFMnXVg4iLzz+cvm+AsA LkyNKYC9sIG47zzduRUm3u/3mMoSPJ4qWhH3mVuH46t8a6FHoz8R/sZdTPHYyUVqyb Wlf1y/zzwQ+Dw== 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 v3 2/7] mm/damon/core: add complement argument to damos_new_quota_goal() Date: Wed, 23 Sep 2026 03:14:47 -0700 Message-ID: <20260923101454.5748-3-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260923101454.5748-1-sj@kernel.org> References: <20260923101454.5748-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 | 1 + samples/damon/mtier.c | 2 +- 7 files changed, 14 insertions(+), 10 deletions(-) diff --git a/include/linux/damon.h b/include/linux/damon.h index 42234839ce29..63050eb2206a 100644 --- a/include/linux/damon.h +++ b/include/linux/damon.h @@ -1090,7 +1090,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 836cf0d0de6f..2dc7031a5672 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, + src_goal->complement, 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 273efa3c913e..64e086985eb5 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 42a2c9cb1343..014b0779ea6d 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 bfb6f0bc3f21..06af417bc9a2 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 caf582882f5f..72dfb9c595a4 100644 --- a/mm/damon/tests/core-kunit.h +++ b/mm/damon/tests/core-kunit.h @@ -972,6 +972,7 @@ static void damos_test_commit_quota_goals_for(struct ku= nit *test, * Make it kfree()-able. */ goal =3D damos_new_quota_goal(dst_goals[i].metric, + dst_goals[i].complementfalse, dst_goals[i].target_value); if (!goal) goto out; diff --git a/samples/damon/mtier.c b/samples/damon/mtier.c index 27dc88bdf7a0..a2e311082cd4 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 12:50:46 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 B29D647DD50; Wed, 23 Sep 2026 10:15:14 +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=1790158536; cv=none; b=P4I2BP60gwviwskFcaEwCT4DeS4oNyXsyAhJ29etbI5Oqvv13fQgG4JYjyUIO1lU/95O36gfH6Sa6NCPeJ7RTs3bab67tihfuQ5SC7KvTMiiSVXjmBt9C0EkZkMVF7DS1X7d82EEEB+VGMLeDv0O1izv+zIAw9ErExAg/TX5aJE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790158536; c=relaxed/simple; bh=c79D70eyw1T2juEsK4YQjmcQoXzAL9pxRWlhbxUlMFA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mBeD/vkTE0A2rdfeLOQFMMsK48EDNH3RLuMGcOI1jVPqH4nitCfSY1m3jiRydvuH2rwV9PrneqZP+70B/x6BylEIw82o/Cvk67WI8kVKSNN6kZFWmi9SKLVM6lNW+7FY1KteHGKje7bXmgnClIhPOarAhzuY4JnIZlgG/kEuaBw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ezQ/1aZF; 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="ezQ/1aZF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2B861F00899; Wed, 23 Sep 2026 10:15:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1790158508; bh=Vdshcv/mUOg+wTQtdfCd8vXc9tZN4VpaqOf6VvBPPR8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ezQ/1aZFalTx1tc4WE5blL0sFdIGueOVa2fVvXYtcl4tnQjsZpVE6/3DZmYKpS2j2 AlOsmVC0ztXMRHfdOqVCQ8wFy0oPhA5HjanbrKDHGLeFksOIhhjkMMYORRYruvDDr/ W5jQERYzL4cgj7JwdZHzJZH3ClcEkANRBYkgLxJQdDqJCE6s8WlDLeQIefj1PKvNdl 2xH1mhb8R9SBg/8JMX0nQlKK7xxkvVeEYg7eyi8Rol1rAgGmwXcj7X+3td7qmPefuI 2yr1fbxck3+wxbv4y4bWR2lP0BI7N521e8EIOPO1qmBHEgJ7RftGcOigq+Q0nKW+Ik O2lWBP2mnZiyA== 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 v3 3/7] mm/damon/sysfs-schemes: support quota goal complement flag Date: Wed, 23 Sep 2026 03:14:48 -0700 Message-ID: <20260923101454.5748-4-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260923101454.5748-1-sj@kernel.org> References: <20260923101454.5748-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 06af417bc9a2..8f083611741f 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 12:50:46 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 39FEF470433; Wed, 23 Sep 2026 10:15:13 +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=1790158521; cv=none; b=EenWVsjOOxl5V0zpoLW10NXKbdVpAK1EQlJA2D9GSKaGck2XdB1pA27SWRR4Qdjr5erknwRfXoSAyQsh2MPIwwL1pQ8L6haH3ahzDGhN+QQptpup+qVHdlpc5/CsX0Zrf5jDrKT7QOUTkSyqXytt67zRJYnWrZukcUdXBXgFhuU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790158521; c=relaxed/simple; bh=2NG2VfGFk0r9dWmBXWLbaQ/ZCUEaA/xPBsh57g7HauI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tqtI5PJ/C+9viUnNz/OgUbI6QWd1wS4Sd0Uk++sbSltw9GCaPOd2Ff7BZnspLfuhqkylYxVFJEmgKNxO3bvN/ScbvDGxan9WWjYNFs9CX/5epidRmDRP8XcUYMDmXSOvhpRR14t2cEdQkMnbQZvslrvD1SImLmwDqcQ6aOz+dKY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UnImGiUN; 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="UnImGiUN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADA431F0089A; Wed, 23 Sep 2026 10:15:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1790158511; bh=k7YELTFQNH7j9BvemS3D+5shFIScXDKY2I62M6OGUww=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=UnImGiUN2/myjs8Neflq48mmgdjZYYc4VUBwwh2d5bAoxr1jP23mCfwMS147zHAm8 9RfCTWuUfbGB0E20WzRr1BQs3W2SnLuaQ6+Hm8athKeteLLdgCwOZjNxh7aHwlWR+C OV+DejIdfvd2tlhLIKviB67wyTwKopviC3Flv1Keae97Q6obY0leVmd5hdIjQG6jRV 7ZB/VYTs+yCx9uIS6AUZ9VY9xuNEQm1xje2pWk9Hk+ODKIgMuhn7cRrCJBewR0Urxa tN1jILP0idlevObPsRWYCsQ9EM9kDCxBu/1WUfvRG97iCyUssBhigUWNZ0QeWqpNjZ ntTWsFGili3HQ== 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 v3 4/7] mm/damon/tests/core-kunit: test quota_goal->complement commit Date: Wed, 23 Sep 2026 03:14:49 -0700 Message-ID: <20260923101454.5748-5-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260923101454.5748-1-sj@kernel.org> References: <20260923101454.5748-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 72dfb9c595a4..ce15e693bc0e 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 12:50:46 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 9D3D8282F17; Wed, 23 Sep 2026 10:15:17 +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=1790158529; cv=none; b=ZQ80od2VyLKJtWLPar8TQMRa3T0SQbDtppziMjMFQA+nlcWwZGGwuQ7SCoKttfbHjyy+Z+oW5QFR5hjcPjWv9/oYWwnmczD2CrvdJY7HDO8hm5B2k8hX4eH46EPkcYGOHbbRkiUH/RvdtIstsbqcv1udsH8G5YV2vJIKWV4P5go= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790158529; c=relaxed/simple; bh=vuSmGx+d+J/LvI88LPH30k0DyNekzcAX8xyBFZF+tx4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TjourysS9FrnVOWOmfCQmB9rJ+FDRlZAws9iGM1ZVMbtQxSVPoivLcrvmtqY8mI2BWtmy6b6yPgh5tgnRyi6FvkrHVr9ayYrIG3IZKvFS03TusAJFGG5Xag6Bn/Ja3J/2BuKhynnazLVPULB1omGnUF4Aey5uXMg/GR1VnJLjCc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QGnSIAF+; 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="QGnSIAF+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C44C91F0089B; Wed, 23 Sep 2026 10:15:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1790158515; bh=s7JRcQFcD/nLSCcRzyB24nV92nZBWi01kt7jJ+1f3Ug=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=QGnSIAF+YAH7QPIIk+YoBktEsy9/RjQmeN5BIv8wzE96jANMKcwFC7A5bMccseKTU RkllXwBOdg5qOJvjV9pNFCiPRCsra8Rej7BXiy4tjyL+4r+uUr2dQBlQw4Jq0Cbg5n +W2tWXmflDSfXKCKYY0vEFo06nTMfc/BKcHDkoujHj4GdxJ2rgni5vU1jf2zqp3AJh /352QzvBMr4n6lXut8kPaUxNvWKIQK5DktQiBhgdS3OiothQ2q1ggHdwpMdFTOojGH rCHsU63C70Q4q5BinpYcQhKOg/sNGDuByxlgqOiDfqjoKNkU/e1kkTd9NSUb2f1fr5 CTh2xnLPxs0lg== 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 v3 5/7] Docs/mm/damon/design: document damos quota goal complement flag Date: Wed, 23 Sep 2026 03:14:50 -0700 Message-ID: <20260923101454.5748-6-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260923101454.5748-1-sj@kernel.org> References: <20260923101454.5748-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 | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Documentation/mm/damon/design.rst b/Documentation/mm/damon/des= ign.rst index e82390e77a70..5cd651b1b7aa 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,13 @@ 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``. ``complement`` is no-op when the target metric type = is +``user_input``. For the metric type, the user should be able to emit +complemented metric values on their own. + ``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 12:50:46 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 72A1D3C1D4D; Wed, 23 Sep 2026 10:15:20 +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=1790158535; cv=none; b=n3vPYyNhUhx5njvEW4K9koNk8UmGWQc6tBsv9DovvijKw2khgj46IjyOIdVEa5oQj/tWL4u8m9/KIRJ7QDX/0767vYCvsITrIK4ZMXQaGm5enUpNaUetOa+1JOi0CqGmiCcRqaRJHmdf+eVtosLLBsDdRFNTwJskeklAenoUYCA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790158535; c=relaxed/simple; bh=gZY0WC5GuA2NKx7eNcJuwSntEMh4sHKln3KfjzFkkBk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=RoUYbRoHZJRnPBadS7MCVqB83TDMOecivgCfJT0AtI/d0E2ZQ7rh18TPg/t17TEWfNcMm1o+64hHeKXgcpp5WuDiWuJrURFPxWTa02vyVw8kOuznL9x5ELf4zUl4txGv29i9nXMQSidoaVtVjQqIX/lzEqr8BBNASn6Tt1AkRow= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WXAMQy+E; 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="WXAMQy+E" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1E7B1F000FF; Wed, 23 Sep 2026 10:15:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1790158519; bh=E1gVvDIreHP8ao0G8tKQqDlYq/j2WrsMakNo62d+qXY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=WXAMQy+ECbR9upWSg5m7sfptdxReQTIJ+VcV8tEJtuZHBX5pPtdQQpUtBNHBp0Doc tzioFXHYc4MDnaTQjR0PajdwPQJJomUI1kHaClLcMCwHuDpXHcecx0ULs5i16aTTIh IUGraDUXbnGj8gkxEIIxNRnKzw4keHrB3w/lRqMQgj07CVgVhT5vw8b9AtDU2Lp28g IP1JqzstB5ADjIPJFGYhQf8kSUKkKDYL1OjaCG2EyknvacasEJa0xvaUOmCYhpOtYg jguxHJo2h2mFKHLUqNcHypdy6g9MhMFgJVtFlE2wCxm4NSIWdjcXJeMXKIgP+wYjIo w68cHUpPMmaew== 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 v3 6/7] Docs/admin-guide/mm/damon/usage: update for quota goal complement file Date: Wed, 23 Sep 2026 03:14:51 -0700 Message-ID: <20260923101454.5748-7-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260923101454.5748-1-sj@kernel.org> References: <20260923101454.5748-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 | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Documentation/admin-guide/mm/damon/usage.rst b/Documentation/a= dmin-guide/mm/damon/usage.rst index ba4725544856..3d43954c7046 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 @@ -492,12 +493,12 @@ number (``N``) to the file creates the number of chil= d directories named ``0`` 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 +Each goal directory contains six files, namely ``target_metric``, +``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 12:50:46 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 D9D5F480DCB; Wed, 23 Sep 2026 10:15:23 +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=1790158533; cv=none; b=RAmMmo8FoPFdilUvNBVjjuadcnfvUvdgJfVFeTIkLf3FrbOh9WCoiweqhIQfqcG6oDZ/pXsy+SfLwrOdChnF2bTth2pyySK+Ro971Vabey3dj36sJGq5/5Ji19WgVTLgEsDuKbHYGC7EZMksuw5bNsK7ezLBaNHpPxix6K4URo0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790158533; c=relaxed/simple; bh=o3QDdkDlP/1QqDJR/fSZcv74VaLo/7o5nrPfRMjgD/0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qhRjnDbNcS3xYPf89jH4dAuoiL2/ctb7I+ozfbrGTlzY9YU0oXGd2LKKHXEeqsSIGhWOOovDVKFO3rcusbweoIOlcM2S1csqolIVXWICIGZM3cH4yhz/wc/kkzKD6vN1fCNujZIKZUzgcSCJX/WYLwaFZkpumNMI5uuTVdfviMg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SxdmR5D+; 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="SxdmR5D+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 835391F0089C; Wed, 23 Sep 2026 10:15:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1790158522; bh=mS1OGjGueuh9xRDDJo/iscVAdMoJD4YdolHQuoVSGCo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=SxdmR5D+x+a9bjNYIJJa/xFr9r7VnWhtn0QxulWtSOsE+AwFogqEJVKZvIyUpmGQH ASLdwYCFNlUevU4cH5uIs4t4rNCZBQ1rWyASxledL8j2vcizNDStdITTgd1goMYU9F 9c7/P3vMPbYt+kjRyUkAaPpTQvxjPuQhpu92Usn+sJGtyku7oSGb3ao7eN4Ajs+FFG KqLgdz4Oq23CMS2TlK0MMeer5IBCpqTNipCx5SfxkUs4sI2GZnt0b3XWNFHKSlU9YR 0l3ulKcf3z9LuKJW0vrTjlfj03AuAB8NRNh1htNjpfozXY918ZbFjLFe6sM2DXelSP A0cInBCAC/+ZQ== 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 v3 7/7] Docs/ABI/damon: update for quota goal metric complement sysfs file Date: Wed, 23 Sep 2026 03:14:52 -0700 Message-ID: <20260923101454.5748-8-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260923101454.5748-1-sj@kernel.org> References: <20260923101454.5748-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 55df688ea596..4acb2015c2f4 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