From nobody Fri Sep 25 11:05:06 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 8BFAB375F80; Sun, 13 Sep 2026 17:11:42 +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=1789319503; cv=none; b=m8olcH31fS1U+CzYQZ+1fu3AANNFZUDs95EDl0/S9589Cqm3hrMk9PHCClaGVLX2XC+FGNpvlIlQq41DSZs29tEHGur1SUF6JvAMoPWNXLxEK4kyPHY9dxikjEtC3sDP1cFNAeru2nXtVI7nH5EfcrQ7yj+Ba9+lOmR2Lql6BcM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789319503; c=relaxed/simple; bh=rKplGYxWCKFMa7GYxEp6v+ntDcuuIqtHQHXYrF7Fkeg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=abEA+HkYnGKTNI+EiAr7rGTI8bP0LajsW+6t0tGPDodGb1kgKtb8cn5fP4eA5E3McZp4uhI/oCsPEme7LqnZXtj8nNizFRYQ38QiyVCPyw34INp0HBMrO9Wnc3kyDL+AP7p2VSnEsOapz7zOM5q7Mnv79Q5wft+9g2EUD8/+CLg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Vp4KZOl3; 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="Vp4KZOl3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D24F1F0089C; Sun, 13 Sep 2026 17:11:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1789319502; bh=WKHC2ohfBCTfxJBQb1w+ZA1oqxl4Tap4PnGbWDCoJ/8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Vp4KZOl31dlS71Xlig/awbyEcGBsaOfBoJ+8S6UPztXW16Vw4bjbpuqrkKntVm8ss T8nGpBDS3+/5j9dkRdcMqgMO6s7KBndqZWWDcpWg/ZwDY3aq3TCBYUI+hF5X+BWxxM b9mnYwiDxLRZ0NrfxrZXw3Vf07NoBazywfbkNtH/dYOKuMlkTZm5aThKBvGIrM1r+K J0saQ5JhTpBXPyExoHEdo/nccOYpzLdWCYva1ntd5sVhiWhlDA/2NiilpDqzk8onrh X/S71liwj/HGPJJuaGxwMWGSgzVtOGrL/ZqQI8mmRzU+IhpoXqrylo08U4IYOQhsN0 CgyF/vHt3r4Tw== From: SJ Park To: Cc: SJ Park , damon@lists.linux.dev, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [RFC PATCH 1/8] mm/damon/api: introduce DAMON_FILTER_TYPE_HUGEPAGE_SIZE Date: Sun, 13 Sep 2026 10:11:23 -0700 Message-ID: <20260913171133.102366-2-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260913171133.102366-1-sj@kernel.org> References: <20260913171133.102366-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 a new data attribute probe filter type, hugepage_size. It will work for memory that is backed by a hugepage of a given size range. Add a new damon_filter_type enum DAMON_FILTER_TYPE_HUGEPAGE_SIZE to identify the type. Add two new fields in the damon_filter struct for saving the size range. Signed-off-by: SJ Park --- include/linux/damon.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/linux/damon.h b/include/linux/damon.h index 4be7d1df8e71f..bbb190b474015 100644 --- a/include/linux/damon.h +++ b/include/linux/damon.h @@ -783,12 +783,14 @@ struct damon_prep { * @DAMON_FILTER_TYPE_MEMCG: Specific memcg's pages. * @DAMON_FILTER_TYPE_PGIDLE_UNSET: Pgidle is unset. * @DAMON_FILTER_TYPE_PGIDLE_SET: Pgidle is set. + * @DAMON_FILTER_TYPE_HUGEPAGE_SIZE: Page is part of a hugepage. */ enum damon_filter_type { DAMON_FILTER_TYPE_ANON, DAMON_FILTER_TYPE_MEMCG, DAMON_FILTER_TYPE_PGIDLE_UNSET, DAMON_FILTER_TYPE_PGIDLE_SET, + DAMON_FILTER_TYPE_HUGEPAGE_SIZE, }; =20 /** @@ -798,6 +800,8 @@ enum damon_filter_type { * @matching: Whether this filter is for the type-matching ones. * @allow: Whether the @type-@matching ones should pass this filter. * @memcg_id: Memcg id of the question if @type is DAMON_FILTER_MEMCG. + * @range_min: Minimum value of range arguments. + * @range_max: Maximum value of range arguments. */ struct damon_filter { enum damon_filter_type type; @@ -805,6 +809,10 @@ struct damon_filter { bool allow; union { u64 memcg_id; + struct { + unsigned long range_min; + unsigned long range_max; + }; }; /* private: */ /* Siblings list. */ --=20 2.47.3 From nobody Fri Sep 25 11:05:06 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 D1B3137204E; Sun, 13 Sep 2026 17:11:42 +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=1789319504; cv=none; b=Ja+86Pw32QYvw/7MLje+j2fx1ipY0NNRVsCUyYsrGOPbIjNIxefDWlyHmpvE76zNEMGaRQO8IrtTYugbiVf9v6FidOi/Tu1mKy8nmwBLkY2SurrAP1bsuO/LZ6pe7wIfakOf6RwtjVLsC+E/pLl2gtuitBdvppToA3uVL6DHmIk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789319504; c=relaxed/simple; bh=ObgMoYABrldXrXdU0sL5fWI1QVVyakXAVpf6lagOAG0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=izLHrqpS4O3LUe0lUsOm8ZQ3z2nYTCxDB7KqwlobA2V1XVl/25HzwEIVXCJD7EDOjUCdEkDQLBe8rQHYeSV/z8u4Pl2o56TVaczpXl9pT6CokBzwlJYIplw7r7GVfJh7Pp3ReaAJsdkQ6c1Q2tL0mkTJ1cgukSyuHN36y01WRIU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OFquwlYb; 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="OFquwlYb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 922871F00893; Sun, 13 Sep 2026 17:11:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1789319502; bh=1THrGcC3ePDhKbhiSZYXQDRdyryWEO/KzCpY2oKcSSQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=OFquwlYbr3QhoekrU4ZORdHQzsMivjK9VhJLQOFwTV2/tyoqge9b20QuSi2SrIkmf tankTfYXLBtNg9ykTMR4C3w9d3IDZ6yVZaWKz1P52cqx4HyNaSYSF8zMs065FPxrLf 5bvWM/0fYlwAxXfuyFwwN5Q/82r+L/V1kZY28e3OPEe3XPdFeOXqtxHsABIXe1mTGu uJdp6pt7JRapCttdg8fO0xHrLCpM7WSO37fLpXHwUz0Ueq9aCNlXgcjhat/JF7YWMO beBSSkAg+BJgs17kxpT5JlH3MQgdOM5xueePt+o614YbJIjb2UkR7m29DH3ro/p/0C y4oQ1Z0NEqXXg== 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/8] mm/damon/core: commit hugepage_size type damon filter Date: Sun, 13 Sep 2026 10:11:24 -0700 Message-ID: <20260913171133.102366-3-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260913171133.102366-1-sj@kernel.org> References: <20260913171133.102366-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 data attribute probe filters commit logic for the new hugepage_size filter type. Since it needs to carry the size range of the hugepage, update the logic to update the size range fields of the commit destination filter struct. While doing that, validate the given range and propagate an error if it is invalid. Add the error handling in the callers, too. Signed-off-by: SJ Park --- mm/damon/core.c | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/mm/damon/core.c b/mm/damon/core.c index 5212bfb8f85f2..e2b41a434cd2b 100644 --- a/mm/damon/core.c +++ b/mm/damon/core.c @@ -1818,7 +1818,7 @@ static int damon_commit_preps(struct damon_probe *dst= , struct damon_probe *src) return 0; } =20 -static void damon_commit_filter(struct damon_filter *dst, +static int damon_commit_filter(struct damon_filter *dst, struct damon_filter *src) { dst->type =3D src->type; @@ -1828,23 +1828,33 @@ static void damon_commit_filter(struct damon_filter= *dst, case DAMON_FILTER_TYPE_MEMCG: dst->memcg_id =3D src->memcg_id; break; + case DAMON_FILTER_TYPE_HUGEPAGE_SIZE: + if (src->range_max < src->range_min) + return -EINVAL; + dst->range_min =3D src->range_min; + dst->range_max =3D src->range_max; + break; default: break; } + return 0; } =20 static int damon_commit_filters(struct damon_probe *dst, struct damon_probe *src) { struct damon_filter *dst_filter, *next, *src_filter, *new_filter; - int i =3D 0, j =3D 0; + int i =3D 0, j =3D 0, err; =20 damon_for_each_filter_safe(dst_filter, next, dst) { src_filter =3D damon_nth_filter(i++, src); - if (src_filter) - damon_commit_filter(dst_filter, src_filter); - else + if (src_filter) { + err =3D damon_commit_filter(dst_filter, src_filter); + if (err) + return err; + } else { damon_destroy_filter(dst_filter); + } } =20 damon_for_each_filter_safe(src_filter, next, src) { --=20 2.47.3 From nobody Fri Sep 25 11:05:06 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 6A7C337C927; Sun, 13 Sep 2026 17:11:43 +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=1789319504; cv=none; b=kYqVE3D8CbR9/kW3Ht7XNkdVucDB8fqcVrqwjvXTvxpQnE23A+cagFT+lIt5vTGZl4TOSBB1sJVXFtdw7LR8Bvv0CRrzCVtLY5XzePfpQgHwNLF2KVb9bmpDjfy7H2hZeiIPwUIoDNu2pZqoxGmJoPDMYpTN9VTrk2NVOnyp3L4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789319504; c=relaxed/simple; bh=D6BHBRxeaxnmXjOk/qO0eNxWnxIZGdfq5CY6QwIgMmU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IejMv/O/egeyQplpMxu+kPe0f54TOYD6BOL/xUxmKltVDuUxkos8aCjbl7FpK0IHOuywMYd7g52BtxM+ib9gVimlHdb534jaFnTB+GjCzi4qhqlet9cECihJxGn5r9bJVAQBSDLNZ4aPNUPLXCNvUenSMYI7FOYc/upqptDg+OI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CtpSJuGT; 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="CtpSJuGT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE3931F00898; Sun, 13 Sep 2026 17:11:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1789319503; bh=WsrL2oFK9840WoIrM7QJPBsnHu9HVCMK1ZcOyqnJN44=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=CtpSJuGTPgqTlFmj05Uz0j8VHGqk2zb3TqX9YBZ1LJs8dgeSMQoqsxMQTrEiSVHJd oskQcoOPLIJzBYIVOPfGFwIbteGteElEN4qaABZ3KK6WUoXy56rwVsMSlRfHK/l4d4 0T8lkofqxYK48n0Nj+jJxv/75zFEP+gmLLYEEn67AO1dnB6CWCOfwbE7pAx/yV+v56 a5W5+HcLAdeCzBlV6v7I3AtvLRbYr4QTdqp3kTi3yIaaApNbDkBROGxXLY/hFXb9MB Nyr/+tn0womjaocaw7Hg5e4myo4WsM5P1sABle6dqmQZjzM6k9RZkrAIf/CZumeu/w j2/Irfe8hNaRA== 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/8] mm/damon/ops-common: support hugepage_size damon filter matching Date: Sun, 13 Sep 2026 10:11:25 -0700 Message-ID: <20260913171133.102366-4-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260913171133.102366-1-sj@kernel.org> References: <20260913171133.102366-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 ops-common data attribute filter matching logic to support hugepage_size filter type. Signed-off-by: SJ Park --- mm/damon/ops-common.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mm/damon/ops-common.c b/mm/damon/ops-common.c index c36cc39cd2c70..77366f42b3e5b 100644 --- a/mm/damon/ops-common.c +++ b/mm/damon/ops-common.c @@ -536,6 +536,7 @@ bool damon_ops_filter_match(struct damon_filter *filter= , struct folio *folio) { bool matched =3D false; struct mem_cgroup *memcg; + size_t folio_sz; =20 switch (filter->type) { case DAMON_FILTER_TYPE_ANON: @@ -558,6 +559,15 @@ bool damon_ops_filter_match(struct damon_filter *filte= r, struct folio *folio) matched =3D filter->memcg_id =3D=3D mem_cgroup_id(memcg); rcu_read_unlock(); break; + case DAMON_FILTER_TYPE_HUGEPAGE_SIZE: + if (!folio) { + matched =3D false; + break; + } + folio_sz =3D folio_size(folio); + matched =3D filter->range_min <=3D folio_sz && + folio_sz <=3D filter->range_max; + break; default: break; } --=20 2.47.3 From nobody Fri Sep 25 11:05:06 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 888F137DAD5; Sun, 13 Sep 2026 17:11:43 +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=1789319504; cv=none; b=A1dxxwNocreNNzXz2JErkf6OXBW75A830o5vCd0741SiQsaVCzxdC9NeSj7wG4N3Ylt+8pmlWhPSb7bu6lmlDXq0BayBOkuy2gVYJ74p4Z5gtPGH0gh/fBV7zqSdg7pCm7yPaBAIVUYdKPfroIHKAW61HHPvuu1e7tAGLpYiS5I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789319504; c=relaxed/simple; bh=KW791MgCtRerwlblO2XlLUV0YVIRvjv/GWAiew+3j6k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rB6SDlyKcQ1wd1Rav12X+Re6HTYDN+WDanxCGQQM69VeLFMIpCEydH/oFJU07hyzIVEdAtzTMqw1HDJIKYSdkVUlsC91SCxzw0as5yqcGqhJVVCB1dFTcAqjcC4wJVOdg0/QKbvBP3wzpeVMhe2kY13WJTXE/fkbv41kl7ZYgrE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GKMbsFDj; 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="GKMbsFDj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 395611F00899; Sun, 13 Sep 2026 17:11:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1789319503; bh=g5VdpOGRYXrXyCrSePa8puxBW/6Uq97itYKIwT0a6WQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=GKMbsFDjsk0u/gctNgobRRhsNbFFlyhomMGdfqv5r6WhRQfy16vAkNgCzshYrdGic YwMbXcfhEwCEUOt2A6dyc1oSTb7Jew697SjPC9FFAVAIT7q6Bv0cDmV1nFQT+hu5TZ Ih0jq27BTVP25eEUy0I58dEiLrpB0iKpM0lnN9YZj2uoOI8CQ3TeLwA68erQ36KQzv KYxAbt38lh8r7In1fxT9VTMZ05hgjJE0affBtB9FHR9g4I0Q1+KgU79UbKOPwsd59g gyzWeGmkBBgMBcr4MH8WQunGxgryZsGqlW1sVaNoUl6c+STZBlGjrrx14Tqs3OJ7WU 7lpC0PxLUpocg== 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 4/8] mm/damon/sysfs: add min,max files under probe filter directory Date: Sun, 13 Sep 2026 10:11:26 -0700 Message-ID: <20260913171133.102366-5-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260913171133.102366-1-sj@kernel.org> References: <20260913171133.102366-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" In future, DAMON sysfs interface will support data attribute probe filter types that have range arguments like the newly added hugepage_size type filter. To prepare such supports, add two new DAMON sysfs files, min and max, under the probe filter directory. Signed-off-by: SJ Park --- mm/damon/sysfs.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/mm/damon/sysfs.c b/mm/damon/sysfs.c index 51fa506c879b0..8e8d89b8ed981 100644 --- a/mm/damon/sysfs.c +++ b/mm/damon/sysfs.c @@ -975,6 +975,8 @@ struct damon_sysfs_filter { bool matching; bool allow; char *path; + unsigned long range_min; + unsigned long range_max; }; =20 static struct damon_sysfs_filter *damon_sysfs_filter_alloc(void) @@ -1127,6 +1129,44 @@ static ssize_t path_store(struct kobject *kobj, return count; } =20 +static ssize_t min_show(struct kobject *kobj, + struct kobj_attribute *attr, char *buf) +{ + struct damon_sysfs_filter *filter =3D container_of(kobj, + struct damon_sysfs_filter, kobj); + + return sysfs_emit(buf, "%lu\n", filter->range_min); +} + +static ssize_t min_store(struct kobject *kobj, + struct kobj_attribute *attr, const char *buf, size_t count) +{ + struct damon_sysfs_filter *filter =3D container_of(kobj, + struct damon_sysfs_filter, kobj); + int err =3D kstrtoul(buf, 0, &filter->range_min); + + return err ? err : count; +} + +static ssize_t max_show(struct kobject *kobj, + struct kobj_attribute *attr, char *buf) +{ + struct damon_sysfs_filter *filter =3D container_of(kobj, + struct damon_sysfs_filter, kobj); + + return sysfs_emit(buf, "%lu\n", filter->range_max); +} + +static ssize_t max_store(struct kobject *kobj, + struct kobj_attribute *attr, const char *buf, size_t count) +{ + struct damon_sysfs_filter *filter =3D container_of(kobj, + struct damon_sysfs_filter, kobj); + int err =3D kstrtoul(buf, 0, &filter->range_max); + + return err ? err : count; +} + static void damon_sysfs_filter_release(struct kobject *kobj) { struct damon_sysfs_filter *filter =3D container_of(kobj, @@ -1148,11 +1188,19 @@ static struct kobj_attribute damon_sysfs_filter_all= ow_attr =3D static struct kobj_attribute damon_sysfs_filter_path_attr =3D __ATTR_RW_MODE(path, 0600); =20 +static struct kobj_attribute damon_sysfs_filter_min_attr =3D + __ATTR_RW_MODE(min, 0600); + +static struct kobj_attribute damon_sysfs_filter_max_attr =3D + __ATTR_RW_MODE(max, 0600); + static struct attribute *damon_sysfs_filter_attrs[] =3D { &damon_sysfs_filter_type_attr.attr, &damon_sysfs_filter_matching_attr.attr, &damon_sysfs_filter_allow_attr.attr, &damon_sysfs_filter_path_attr.attr, + &damon_sysfs_filter_min_attr.attr, + &damon_sysfs_filter_max_attr.attr, NULL, }; ATTRIBUTE_GROUPS(damon_sysfs_filter); --=20 2.47.3 From nobody Fri Sep 25 11:05:06 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 E2AD737FF48; Sun, 13 Sep 2026 17:11:43 +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=1789319505; cv=none; b=cuS2hR/+uYzLtyVHCUOev/efLugUMVk0CqPSdmT4nrRmMYA/cpSl41fZsW/zSOR8CEk6un7cssABhDOsZ6UumKQgKEou6OxQ9/+ZNlF6gsJLhtDyDbrvyEdTGwxwdOER4B4kYGOip2fHgA7GvoH5q+pONnEiUrL+naqA448d7SY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789319505; c=relaxed/simple; bh=hGYrlp8BUYEplerJ3NeTyfTllMHPJtU0fdxbw3cZ6Do=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XEBrBHQEO3j1rvwy6w0q0THyDEzo2OxXltK5hHEzsBs5Hrhk04/T+f1NBEP/GMmIyltbm9g6xeDXnClcc8bPCQaPxNBPArigYNGSC84lKPN8lxf1QUH5DUYumKQ5yAes7D2rB87af2JoTCGLOn/cYqW5DCkwn/Aaj33DqzwUBV0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=grjHdB5J; 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="grjHdB5J" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86F431F0089B; Sun, 13 Sep 2026 17:11:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1789319503; bh=Gmq/rX+sVM9Hs+BxObGYka5NbSCER5H2QYTBCAxyvwk=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=grjHdB5JfSV2S4KoV2DSG4jMiq0joP+rFzG0kUDEkqoe2qnjvkezksPoFAR0VQ4F+ 7MHIEqYiUD29o/RdHRBk4hDizlFMTIR1y8At9bnv1fzjobBrG4ksf5SkpXRyD/QTDi t30d4OqTbr623uGPYSY4AkHnAdpoJAjN9GP3iA585BITW2qfUTvGyxXVNBXzm6/69M ILGigpq6yNpquSS4LLqVmn70/ikuRUKSaxCWNzFItZt6YU7PEhpAY//MdUnxkoZ38B hfOvqmAthmwIkaQ9Fq4b8BokXBzbOYjmKng0L9Sz6ta4UyCpTXCbW7ZnF/KVoGLfXi VIRkJDccJkdUA== 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 5/8] mm/damon/sysfs: support hugepage_size probe filter Date: Sun, 13 Sep 2026 10:11:27 -0700 Message-ID: <20260913171133.102366-6-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260913171133.102366-1-sj@kernel.org> References: <20260913171133.102366-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 DAMON sysfs interface to support hugepage_size probe filter. Allows hugepage_size user string input to the filter type file. Pass the size range argument that users set via min/max files under the probe filter directory to the DAMON core. Signed-off-by: SJ Park --- mm/damon/sysfs.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mm/damon/sysfs.c b/mm/damon/sysfs.c index 8e8d89b8ed981..43519afb9eb7f 100644 --- a/mm/damon/sysfs.c +++ b/mm/damon/sysfs.c @@ -1007,6 +1007,10 @@ damon_sysfs_filter_type_names[] =3D { .type =3D DAMON_FILTER_TYPE_PGIDLE_SET, .name =3D "pgidle_set", }, + { + .type =3D DAMON_FILTER_TYPE_HUGEPAGE_SIZE, + .name =3D "hugepage_size", + }, }; =20 static ssize_t type_show(struct kobject *kobj, @@ -2273,6 +2277,9 @@ static int damon_sysfs_set_filters(struct damon_probe= *probe, damon_destroy_filter(filter); return err; } + } else if (filter->type =3D=3D DAMON_FILTER_TYPE_HUGEPAGE_SIZE) { + filter->range_min =3D sys_filter->range_min; + filter->range_max =3D sys_filter->range_max; } damon_add_filter(probe, filter); } --=20 2.47.3 From nobody Fri Sep 25 11:05:06 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 8427E38239E; Sun, 13 Sep 2026 17:11:44 +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=1789319506; cv=none; b=ntiKIq9tMiH0j8V0pMbGfrTTNJGsbIDOHdofhbw87pB6AQw8C9W7g3smgJYGkToegxzcyxu3lacyhRDKErit57gHgigQXq+LEu4jMc+nDjzLAm6WDg9zBhRN1ZswOEse6wrW8g912KEsfvqtvg4EVGbVyGsXFgrJxyN+ae6e6bE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789319506; c=relaxed/simple; bh=6622FqAoJyylnw82hdIzdoflo9b7IhzEAZqdmcHMO9w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nIgoTb/QyI5LoyOJFw7mcIxvgGYGnaPhQGzZ/6AxWuauBvwK2C2zktSxIh7HaVWsgK9Um5lJp7ATd3kF25ahE0UkqMoBumDEadPO3lp0E0H+orE443hodMcxpI1vakNmTZyvhoRov1SDn1rP2EivYtiAeT5QmalCcphTPbZidZ0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Dtc1pxec; 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="Dtc1pxec" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3F971F0089A; Sun, 13 Sep 2026 17:11:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1789319504; bh=KlTkThYMNDC2bLrO2MA1hCJuFVsV7BXLwZ+Px5RpEUU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Dtc1pxeclo0Lzcvm9Ju7ImpdlIkpMR4zxG8Q16pBT2V9rK9BFgtLMIVk+r0rEZVdu qqyso3lFo9zmZi9YJZPOExTH4wxs/vwm9MrdyNv8OWVDpNrFZIIvlAD3GMU7K9VTio Xq1c3CkLRHzkmLkfcHamvMWiEIudHAgcvmMvFiWmh2c3967ddN/9mK6zcfp5eHsVcq CiJqWcQODsLk6ErNRibLkv/6vIkgq6PwDtPe100ETqHERavMVWA1albjSPn0L4iCuy LpnATobtsRv46Z6mBZq6BT4vPjR/CplutCIFOnnkh/yL9HZkRlcYXV7qzoev/kT4Dl oGN8J/Jwbu73Q== 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/8] Docs/mm/damon/design: update for hugepage_size probe filter Date: Sun, 13 Sep 2026 10:11:28 -0700 Message-ID: <20260913171133.102366-7-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260913171133.102366-1-sj@kernel.org> References: <20260913171133.102366-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 hugepage_size data attribute probe filter type. Signed-off-by: SJ Park --- Documentation/mm/damon/design.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/mm/damon/design.rst b/Documentation/mm/damon/des= ign.rst index 707170bcd1b33..0a86792f90a18 100644 --- a/Documentation/mm/damon/design.rst +++ b/Documentation/mm/damon/design.rst @@ -300,6 +300,8 @@ filter types. Currently below filter types are support= ed. - ``pgidle_unset``: Matches if the page for the memory is marked as not access-idle. - ``pgidle_set``: Matches if the page for the memory is marked as access-i= dle. +- ``hugepage_size``: Matches if the page for the memory is a part of a hug= epage + of a given size range. =20 If such probes are registered, DAMON executes the probes for each region's sampling memory when it does the access :ref:`sampling --=20 2.47.3 From nobody Fri Sep 25 11:05:06 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 32E9B37EFE5; Sun, 13 Sep 2026 17:11:45 +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=1789319506; cv=none; b=u0RzBINYG1nzzU+X57SzYryiBBOinNZ2+aFlP3ROeqDuCzs+5GlhCtdUZIbbu34kTy5rzEeWTnqm0uIr4CKvAGc1GDbPb/B6B8W8TUANxeWB2F2l7kJju/wn0uJHeyQHnyXMJy2OseicK7RO0tfcTJF0iKcFxCEKmp8UTCGkhHE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789319506; c=relaxed/simple; bh=5Ih8qSxrx+1FoiQrZrDyi0m7BSRP8d4efVZQoDuXGTw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=iZPrx5/6pp+KUnhL/IAWsNjNU5snTLX1sFjFxVZtYSbvGSDswWthQFlXGhZmqx9RRTs5hC9s9NiY57rrbwMk3k7wixiMSAxGsJQ7x//QWfX0ZXGaIJ8oJjBmDMCKmlY6JVyPB/qwii+1sl3TExE0mzO41Crie5+GdxCXt7vYgog= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eyXD0N+n; 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="eyXD0N+n" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E4031F0089F; Sun, 13 Sep 2026 17:11:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1789319505; bh=9PbkWTjWrdG2mF2OjLqwQA4JbmDDau4Exk+WU0SHNwM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=eyXD0N+nDjWX6B6by7NPh5tYhxW4OybmmpxYZ/OlK0iuABcaP0AaYqhjBb6sX1zwL YPPPHERZaWrDknS0ebG29avVbQndRd1wicddhQQYzIkz1xeq7EEL37H4rnHVrygHqs loh6mS31S5CPMG2C32+RYyhrsl9OEguPyX76tuDVZtRVwLuT6ppyFIetb/A6lScmZ2 N6NfWY9wcLCQMtiN8KIr3B/gxWdShiqTYN9S5/JfJMAmAyMJaBBTVDVSrCHmMUVPuU pyZCg6Gx+5GRsllDp+tCOxWaqxvFmxwHqFrgu6C4tdWbeQKHDfqn99lS6CHiW7V9Zc fngHZponMfbcA== 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 7/8] Docs/admin-guide/mm/damon/usage: update for hugepage_size Date: Sun, 13 Sep 2026 10:11:29 -0700 Message-ID: <20260913171133.102366-8-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260913171133.102366-1-sj@kernel.org> References: <20260913171133.102366-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 hugepage_size data attribute filter type. Signed-off-by: SJ Park --- Documentation/admin-guide/mm/damon/usage.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/admin-guide/mm/damon/usage.rst b/Documentation/a= dmin-guide/mm/damon/usage.rst index d3e37400367bd..6b80bce5d678d 100644 --- a/Documentation/admin-guide/mm/damon/usage.rst +++ b/Documentation/admin-guide/mm/damon/usage.rst @@ -78,7 +78,7 @@ comma (","). =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/prep_action =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 ... =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 = =E2=94=82 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 =E2=94=82 0/type,matching,allow,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/type,matching,allow,path,min,max =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 ... =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 =E2=94=82 =E2=94=82 =E2=94=82 :ref:`targets `/nr_targets @@ -308,6 +308,8 @@ Writing a number (``N``) to the file creates the number= of child directories named ``0`` to ``N-1``. Each directory represents each filter and works i= n a way similar to that for :ref:`DAMOS filter `. When the fil= ter ``type`` is ``memcg``, ``path`` file acts as ``memcg_path`` for :ref:`DAMOS +filter `. When the filter ``type`` is ``hugepage_size``, +``min`` and ``max`` files acts as files of the same names for :ref:`DAMOS filter `. =20 .. _sysfs_targets: --=20 2.47.3 From nobody Fri Sep 25 11:05:06 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 B78E3381AF4; Sun, 13 Sep 2026 17:11:45 +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=1789319507; cv=none; b=shM3oK8DH7t7mBYQsEV2VWHPdhn/K0slK8pma4bZpE/F6+qJSYIayRx8nsJp+dUcqCxTew0f4VScZGsKMTFShwlJwrhHG88QJnr5A9CeG+pLb6BrrJW2bKYhY6KfKBg80qKHcXrG+nuJAL7FYnWkf9H/rlEph9UvBLfa+aJnYGY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789319507; c=relaxed/simple; bh=mdrTtuzWyI8F7lQlAtoXmlw72idaeRcZ7fA3+Z9qesQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SZNMs7rRZ8p1TyxpUOpdyzmMZAiBh5OfNL6NZRGzLVnrXBj/zKHjmw/s8nZUBkrDtTeCcJVcISyNbgX3HialKv+y04CpUbl+RvYVQYEVxJjaWevncoSo2GHlx9Zja/pzsZvWBccA7sFhRZbJqkFt4vYb5PF/A/djACnHafvhzX4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=P6gSeTUK; 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="P6gSeTUK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3DB4D1F0089C; Sun, 13 Sep 2026 17:11:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1789319505; bh=Pe5PEKflMlDglfugpw4os1GpkWtazCvp49h5WT4n+gE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=P6gSeTUKsG11V9uhk7LsqB578BcXzLMFYphgDpOIiVFzH+hHnp67d8IjxUQzCMr4Z 01qlj/34N6Wr8HpoWCyHYkzMVWQ2NacJUEjKjfi5v/U1SGc9EUYPlJZ0EjDqnnqvbL LExKoy8MrzuQpRUGqGHVya0PV4IkCquNSXT/yxEWNmYg7rtgDQhIqMxFUwvTbfqqY+ kobMevhlQ/26Q0V9VDb0HffkzDg/NUu83N1ty1ynf9HtEVqcer5T7zIMWyCntlVvXL bYw3iEk0ivP5ujlSb2KncFU+reVfMCaAyjJTwyDkm7o8Bge5GReDlWH0iZoTO8bZJl 0Hrq8qPjbgI5w== 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 8/8] Docs/ABI/damon: update for hugepage_size probe filter Date: Sun, 13 Sep 2026 10:11:30 -0700 Message-ID: <20260913171133.102366-9-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260913171133.102366-1-sj@kernel.org> References: <20260913171133.102366-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" For the newly added hugepage_size data attribute probe filter, two new sysfs files are added for the size range. Update DAMON ABI document for the new files. Signed-off-by: SJ Park --- Documentation/ABI/testing/sysfs-kernel-mm-damon | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-kernel-mm-damon b/Documentatio= n/ABI/testing/sysfs-kernel-mm-damon index ad21f58f3c912..55df688ea596f 100644 --- a/Documentation/ABI/testing/sysfs-kernel-mm-damon +++ b/Documentation/ABI/testing/sysfs-kernel-mm-damon @@ -206,6 +206,20 @@ Description: If 'memcg' is written to the 'type' file,= writing to and reading from this file sets and gets the path to the memory cgroup of the interest. =20 +What: /sys/kernel/mm/damon/admin/kdamonds//contexts//monitoring_att= rs/probes/

/filters//min +Date: Sep 2026 +Contact: SJ Park +Description: If 'hugepage_size' is written to the 'type' file, writing to = and + reading from this file sets and gets the minimum size of the + huge page of the interest. + +What: /sys/kernel/mm/damon/admin/kdamonds//contexts//monitoring_att= rs/probes/

/filters//max +Date: Sep 2026 +Contact: SJ Park +Description: If 'hugepage_size' is written to the 'type' file, writing to = and + reading from this file sets and gets the maximum size of the + huge page of the interest. + What: /sys/kernel/mm/damon/admin/kdamonds//contexts//monitoring_att= rs/probes/

/filters//matching Date: May 2026 Contact: SJ Park --=20 2.47.3