From nobody Thu Oct 2 16:29:31 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D72CE21FF48; Mon, 15 Sep 2025 01:58:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757901494; cv=none; b=jcQGQ8h8a1AQakdZiSOpBp6iBkTwrHhIR8493TZiD9Jr965jnHkljNdNGZQNXAAc1f40BR9vrsxIwjMjTtqQIGsaJwWO9Ozz7RZyHL23ZAqHn0NH9WMlv2D+q63o2uf8DvZ1m7X9NMyy11L5jmWexQ8xVsCE2uHls8jiXQx9vDc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757901494; c=relaxed/simple; bh=LPyFMKB43zMlbHRsGJfXl3nVz2GmOh2C7PouLJ938HM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=U+hB0sXjCdETIhPr8GVtJQDEpLgeCl1N9Mfof910xRLwRYRxQbJTZFvQJlfdtozdBJi4sIl6c15AZcKNeMtxDwkRGlSUZVYfwCQ1nhu1fKry1eRJ6ZbIChkpTSSJUli47da/j516GgiBOL4IxUSOqIBqBLwSIgZXywgmhZd6DrI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DvG8ia4q; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DvG8ia4q" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C31CC4CEF0; Mon, 15 Sep 2025 01:58:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1757901493; bh=LPyFMKB43zMlbHRsGJfXl3nVz2GmOh2C7PouLJ938HM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DvG8ia4qP38O3NEYaj64HpSn7dn2Ni8E73J+n/o/qiKCt9lL2wdZ+8AeAegbzg4gW aR7iX7LuMoaliorim7TJQ42HGMNIJ6cPJp3hfa5IBm5HBYXqRxR7DKqmbwOALUnrJt A6JP1Fgen11hlDQhrUlLmbVcKU1QP2azOug0XQUf5NmMeegrjy+5DXCIqFuc2AfbuV zWxau/gxB1FW9xmbOU+xmQkkf6HWLv59i4K0Iky1VVflnkJm58lkyCUMQpBNFNkLKQ qXIkN17/to6ZB2MUz8VXNlwIgQQPb+K2Cno1KtZx5r1RmPWggl9i7GmiHUzmymcTN8 Jz70PbzrgdzTg== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , damon@lists.linux.dev, kernel-team@meta.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 1/6] mm/damon/core: reset age if nr_accesses changes between non-zero and zero Date: Sun, 14 Sep 2025 18:58:02 -0700 Message-Id: <20250915015807.101505-2-sj@kernel.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250915015807.101505-1-sj@kernel.org> References: <20250915015807.101505-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" DAMON resets the age of a region if its nr_accesses value has significantly changed. Specifically, the threshold is calculated as 20% of largest nr_accesses of the current snapshot. This means that regions changing the nr_accesses from zero to small non-zero value or from a small non-zero value to zero will keep the age. Since many users treat zero nr_accesses regions special, this can be confusing. Kernel code including DAMOS' regions priority calculation and DAMON_STAT's idle time calculation also treat zero nr_accesses regions special. Make it unconfusing by resetting the age when the nr_accesses changes between zero and a non-zero value. Signed-off-by: SeongJae Park Reviewed-by: Joshua Hahn --- mm/damon/core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mm/damon/core.c b/mm/damon/core.c index be5942435d78..996647caca02 100644 --- a/mm/damon/core.c +++ b/mm/damon/core.c @@ -2261,6 +2261,9 @@ static void damon_merge_regions_of(struct damon_targe= t *t, unsigned int thres, damon_for_each_region_safe(r, next, t) { if (abs(r->nr_accesses - r->last_nr_accesses) > thres) r->age =3D 0; + else if ((!r->nr_accesses && r->last_nr_accesses) || + (r->nr_accesses && !r->last_nr_accesses)) + r->age =3D 0; else r->age++; =20 --=20 2.39.5 From nobody Thu Oct 2 16:29:31 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D732E220F5C; Mon, 15 Sep 2025 01:58:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757901494; cv=none; b=Nf4bc6AND9JcMlgX3xTnK0NQH++nKEsDme4O4HS59r19adWWVc9OvjGzQqnHVZGdVVrkrTDHnI6lRIv8YfGQ/ncYxJwXOsp3e5jP4yAS/roXldvJ5O3artKGsN7o+F6NvWCOlzI2xTnUDyR4O09BOMcsqUeNIHGJ1Kw0HdJQUFo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757901494; c=relaxed/simple; bh=lwwcDoDvfbiO59qIbS3KSPJx7Imyoi3zWNGgCLtUpbA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=illH8M2Tvm/LLIzgFu7g0uRFShD7H5zzGmySmMBIhe7rcC19oazZXZJ3ksGmM/ksNHW1CfuPAmSXlJnBfcp2AjXoCa6k2ET9/j+ReQjHSdlLZyqJCCe93D18Q56SKN0AULpSF9e4DcQeaTe1qlpcNCeZtZy5+22NNudK1V/zX5E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZSIXbF3H; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZSIXbF3H" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 364D4C4CEF7; Mon, 15 Sep 2025 01:58:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1757901494; bh=lwwcDoDvfbiO59qIbS3KSPJx7Imyoi3zWNGgCLtUpbA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZSIXbF3HQeUNsua7xhtgFRxmM6uwD27cHJsPA39zVIJ/+b3Ow/J4bj0OOcEX4fJ4G Y+XpVVmglbAYHNkFqCHnhQU18w8/VG3Q5/hEmJDoRjpNFBW7URJ1069oRmhd0/Ia2/ Z7ZW8nqBQwozDkEZrLk6VcJUsvdzrDCpNlO7raHromB0ltWaAI7bx+bEUojsG91SS4 F4ZcgZ3YDVafcHivFxGBBPSvOV2/pmgQsoRvkR3RR+OZCtezxsKQLiFqLDhWyQVM0g jrnAT9GqKej3Z0pySZC0hFxbsYR8YnNAdBHE8m0HBH9rA/NoXUYwDzymi63vEshrw7 J4p0cL7kj7BXw== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , damon@lists.linux.dev, kernel-team@meta.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 2/6] mm/damon/core: set effective quota on first charge window Date: Sun, 14 Sep 2025 18:58:03 -0700 Message-Id: <20250915015807.101505-3-sj@kernel.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250915015807.101505-1-sj@kernel.org> References: <20250915015807.101505-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" The effective quota of a scheme is initialized zero, which means there is no quota. It is set based on user-specified time/quota/quota goals. But the later value set is done only from the second charge window. As a result, a scheme having a user-specified quota can work as not having the quota (unexpectedly fast) for the first charge window. In practical and common use cases the quota interval is not too long, and the scheme's target access pattern is restrictive. Hence the issue should be modest. That said, it is apparently an unintended misbehavior. Fix the problem by setting esz on the first charge window. Fixes: 1cd243030059 ("mm/damon/schemes: implement time quota") # 5.16.x Signed-off-by: SeongJae Park --- mm/damon/core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mm/damon/core.c b/mm/damon/core.c index 996647caca02..84de1cea5440 100644 --- a/mm/damon/core.c +++ b/mm/damon/core.c @@ -2142,8 +2142,10 @@ static void damos_adjust_quota(struct damon_ctx *c, = struct damos *s) return; =20 /* First charge window */ - if (!quota->total_charged_sz && !quota->charged_from) + if (!quota->total_charged_sz && !quota->charged_from) { quota->charged_from =3D jiffies; + damos_set_effective_quota(quota); + } =20 /* New charge window starts */ if (time_after_eq(jiffies, quota->charged_from + --=20 2.39.5 From nobody Thu Oct 2 16:29:31 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 DBA9E22B5AD; Mon, 15 Sep 2025 01:58:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757901496; cv=none; b=GX6cpkVIieOQnu8+c+538hwDZrscbY+//8REx8bxH7mvRp5ImmApYfP9zBLK/K9lDvw8Pv962Al6obO6isUd8jKGdi6bbAYCVkPekNSJHNlHmKokHf2et+RC63uBs+202cdQHPJUtkIolVFQoE4Rd9HuzxqI1iLM0frz0T8SRiI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757901496; c=relaxed/simple; bh=nGvVrC45Vt9+6E5tO/9Zsq1bOPvFtQ8UtnVHJOeO4A4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=f7Nk+GHP2VLQ3glFRPwjXd4WsU6UYyR22S5Yviaqs0ahdrnmgiTaZnGflBAI41gG6EsfWyY0cALc4rd33oOWGcMewh8SYRnm03hcDUDIwJfpzHzXl3zH+N4CwXZwgURmggtwEs+ZrLXwCS6fsF7PCX48lAK6mf3HQ0U2r7xVUCA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LZ/a/13l; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LZ/a/13l" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4DD88C4CEF0; Mon, 15 Sep 2025 01:58:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1757901495; bh=nGvVrC45Vt9+6E5tO/9Zsq1bOPvFtQ8UtnVHJOeO4A4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LZ/a/13l/K1JrCtefJnoQGLam5FR90aUMxEBXcPo0pELUkzQl4QrS7ftW9oXrJLi8 pWAoUwc0TlelI102Agga97Ef8ZDzF7aVSKqyMeeQ5KDOFGcHD9+Y7U7U0dtR/BJdGV crJbVH/nQ6DMcg9zGbuj9W7O0t9Fq2yHw6CWkQ89jdo7rIzA1XjE7eksYZoKEDdSqX WmIX0rW+eVn26eQKBvwXJTbgDvjGGXgmRIrkjf8iBNKvI7cVlBJtlTHhiSeH5Y4cG/ Wk0LxcLfvHmZQ3ZRmSAWcnXxWjfu868XaqaR8H4K8JmqVUQBPyPJrsWJkesyatSjw+ jxS1ZjVbZ5kaw== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , damon@lists.linux.dev, kernel-team@meta.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 3/6] mm/damon/lru_sort: use param_ctx correctly Date: Sun, 14 Sep 2025 18:58:04 -0700 Message-Id: <20250915015807.101505-4-sj@kernel.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250915015807.101505-1-sj@kernel.org> References: <20250915015807.101505-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" damon_lru_sort_apply_parameters() allocates a new DAMON context, stages user-specified DAMON parameters on it, and commits to running DAMON context at once, using damon_commit_ctx(). The code is, however, directly updating the monitoring attributes of the running context. This doesn't cause a real user problem but apparently this is an unintentional mistake that can cause code review confusions and future real problems. Fix the wrong use of the parameter context. Fixes: a30969436428 ("mm/damon/lru_sort: use damon_commit_ctx()") Signed-off-by: SeongJae Park Reviewed-by: Joshua Hahn --- mm/damon/lru_sort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/damon/lru_sort.c b/mm/damon/lru_sort.c index 14d31009c09e..ab6173a646bd 100644 --- a/mm/damon/lru_sort.c +++ b/mm/damon/lru_sort.c @@ -219,7 +219,7 @@ static int damon_lru_sort_apply_parameters(void) goto out; } =20 - err =3D damon_set_attrs(ctx, &damon_lru_sort_mon_attrs); + err =3D damon_set_attrs(param_ctx, &damon_lru_sort_mon_attrs); if (err) goto out; =20 --=20 2.39.5 From nobody Thu Oct 2 16:29:31 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 DBB0122B8A9; Mon, 15 Sep 2025 01:58:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757901497; cv=none; b=U9VmuBT3uPbKdJESgYbMK/32O7I/JUiphL7ep1BpoA52WKxJPVSBcWO5mBHqtvkJI2pNBJsBZDMsmbFx6+YifDmTmQfYxLG/xotw+QB3dgIQvzWW1AnqdF0hv++OyhTJ3om0nfMlDVo1tSBy+9JYXUN9SO5qyZfWM0qdmQnI2tc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757901497; c=relaxed/simple; bh=3+9qSsAlg4qC3YbAA//ENyr9S8mCKrCXEpzivdstPoU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=uxwoz8ZiNCH/l6IRNA8IKORNagjsMyFTNzzwjkKLgCa/LNfyI4jwMfaBQJHK3ND4PtsA1bSTHCaX3q5IwMz2JWr5Awa8mChBiZRD0u8Xy+gPPsT6o7i4a4KZU0/WRNWQQzidfMzaTVgQIgTNjhuJtvpxvaDyvn/Pz/Ws9oxcWto= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DXHmoBRO; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DXHmoBRO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 602C0C4CEF5; Mon, 15 Sep 2025 01:58:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1757901496; bh=3+9qSsAlg4qC3YbAA//ENyr9S8mCKrCXEpzivdstPoU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DXHmoBROJvMUvju390O3mU1he2Ful7Ud2Rx4qCKVAXCT2HixYfZFUBVk5mP8DWBK0 dPD6lB7bseP7avTwOdWTmAHf9tIPRRzV0NA725P9X3wnzFqQ/m2ykRBJDHYah1V71x dWLQ2MWIqxE9Ybeu8yttGKAf5eYZKh3rPHT+70mI4EnN/1xag2HAjL2tsTYt+H/9YX wk2psPIYwXKb8etxdZ2DJFGgF7+PH6woObe2ym2A4J2AT6axT+Qo+TXZdEi4bli60r kv8bv5n0Mfk5kCF3gDPT7dtQqW45b9BoryfbsCvplZxtTZK7GbNRa6CIONumtJeKji cHOCrjNcNxMIQ== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , "Liam R. Howlett" , David Hildenbrand , Jonathan Corbet , Lorenzo Stoakes , Michal Hocko , Mike Rapoport , Suren Baghdasaryan , Vlastimil Babka , damon@lists.linux.dev, kernel-team@meta.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 4/6] Docs/mm/damon/maintainer-profile: update community meetup for reservation requirements Date: Sun, 14 Sep 2025 18:58:05 -0700 Message-Id: <20250915015807.101505-5-sj@kernel.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250915015807.101505-1-sj@kernel.org> References: <20250915015807.101505-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" DAMON community meetup was having two different kinds of meetups: reservation required ones and unrequired ones. Now the reservation unrequested one is gone, but the documentation on the maintainer-profile is not updated. Update. Signed-off-by: SeongJae Park Reviewed-by: Joshua Hahn --- Documentation/mm/damon/maintainer-profile.rst | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/Documentation/mm/damon/maintainer-profile.rst b/Documentation/= mm/damon/maintainer-profile.rst index 5cd07905a193..58a3fb3c5762 100644 --- a/Documentation/mm/damon/maintainer-profile.rst +++ b/Documentation/mm/damon/maintainer-profile.rst @@ -89,18 +89,13 @@ the maintainer. Community meetup ---------------- =20 -DAMON community is maintaining two bi-weekly meetup series for community -members who prefer synchronous conversations over mails. +DAMON community has a bi-weekly meetup series for members who prefer +synchronous conversations over mails. It is for discussions on specific t= opics +between a group of members including the maintainer. The maintainer share= s the +available time slots, and attendees should reserve one of those at least 24 +hours before the time slot, by reaching out to the maintainer. =20 -The first one is for any discussion between every community member. No -reservation is needed. - -The seconds one is for discussions on specific topics between restricted -members including the maintainer. The maintainer shares the available time -slots, and attendees should reserve one of those at least 24 hours before = the -time slot, by reaching out to the maintainer. - -Schedules and available reservation time slots are available at the Google= `doc +Schedules and reservation status are available at the Google `doc `_. There is also a public Google `calendar `_ --=20 2.39.5 From nobody Thu Oct 2 16:29:31 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 C9ACA2405EB; Mon, 15 Sep 2025 01:58:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757901499; cv=none; b=KRFC/5iNwcQZoFg2MBBCaKvNqroyuLI5wcQXwngvnv6TQxm7rDkL4vRgCGPQ7lD2qH4vzXvzrrtotJxiayQfuC4chrWytLPLT/6ic4Efd1N/Sq0Iz7Bi5HWMIlEtul5MsHSdpFXne+nhT//ZFbIfOBm6bwUYdONZcKoG7fRTyxo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757901499; c=relaxed/simple; bh=DAVCpI32krZKX7tAL5BJ72tG+a8Y+Yz9N/KNa3xRsxs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=hvrLfDThkV2EGhJNOjk1/NLj4MsuIfD1w8sCzik0IUukduGUT4CMTYY7I0xlwyW7boGi+Tw6eRMt0a/FfyzWTY1UTqv8RCa0O8EWLOVHbaR3cFnaBC9BVrvR0aJTw4VJ9xEoJ53jSX4GA6U+tgk0E9B5BgvRouSQXYYjAWmFzrw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=G5MLt3OX; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="G5MLt3OX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A4D1C4CEF0; Mon, 15 Sep 2025 01:58:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1757901497; bh=DAVCpI32krZKX7tAL5BJ72tG+a8Y+Yz9N/KNa3xRsxs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G5MLt3OXROpxw7J/b2AaPOt6R/868NrvNrr1mvdCZr7cI5wc6vhu0FGpNglEiz3f9 xTYFFjKsXM6lKnhvnnl1Pw5AA/4ExAJ0pEPn8E0oKcW/eTRFr4y/pGWMDtx2vSP02t B/KhoKiWrPb2qtEYa1vX23oRqcBUEKMFPyQ9D4d56J6s31Sy9aGvCx0XJ9IrTByv0X mc1KNcJ8ho6ByaGYL+J33n6qqth7KPs0VNSGTStEHeIs0NrXiyHPE64sf//xtzAb9F n1ESaGXEsqVz+McdvMeZ4yXeqrY80RxDM37WhgogzrzgD/bi+6oSE/ar49zJ754zzB wLOwGmZDi4+WA== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , "Liam R. Howlett" , David Hildenbrand , Jonathan Corbet , Lorenzo Stoakes , Michal Hocko , Mike Rapoport , Suren Baghdasaryan , Vlastimil Babka , damon@lists.linux.dev, kernel-team@meta.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 5/6] Docs/admin-guide/mm/damon/start: add --target_pid to DAMOS example command Date: Sun, 14 Sep 2025 18:58:06 -0700 Message-Id: <20250915015807.101505-6-sj@kernel.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250915015807.101505-1-sj@kernel.org> References: <20250915015807.101505-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" The example command doesn't work [1] on the latest DAMON user-space tool, since --damos_action option is updated to receive multiple arguments, and hence cannot know if the final argument is for deductible monitoring target or an argument for --damos_action option. Add --target_pid option to let damo understand it is for target pid. [1] https://github.com/damonitor/damo/pull/32 Signed-off-by: SeongJae Park --- Documentation/admin-guide/mm/damon/start.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/admin-guide/mm/damon/start.rst b/Documentation/a= dmin-guide/mm/damon/start.rst index ede14b679d02..ec8c34b2d32f 100644 --- a/Documentation/admin-guide/mm/damon/start.rst +++ b/Documentation/admin-guide/mm/damon/start.rst @@ -175,4 +175,4 @@ Below command makes every memory region of size >=3D4K = that has not accessed for =20 $ sudo damo start --damos_access_rate 0 0 --damos_sz_region 4K max \ --damos_age 60s max --damos_action pageout \ - + --target_pid --=20 2.39.5 From nobody Thu Oct 2 16:29:31 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2EAE7242D7B for ; Mon, 15 Sep 2025 01:58:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757901500; cv=none; b=SUFg3zfWviJY6c00GpW/iT/QwewWyCZRcxV/pqbmk4MVsGS/SSYciJznegVV/vpf88oOS+tGOUd7vmycGu5Jrhzj3nNpzsNZH2pGiYlPRe0XfrVorYqT4W7qTNOv3FoFi3Bit17oGkVsqtOxvx6o8WmYM6pu+1yG13Hi3so6Sxc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757901500; c=relaxed/simple; bh=tG/+3LKYF2FSnLVHXLho3ONEf7Ek8I7B7tVYfXji6YQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=qIAMwCN1xi257AYM6jOBiQM+kUVU0r+eOuqJCOlh9N8xU9EVPzPIyu+4AVoZhhTtJh9m9y8saCZZMFO1vlberK105CxrygIh9GNWp7zGoqnxw3h8jXmHAAdsr5Ks5NgIXse6nGBm/qO3hYGjCNcFbNOa+RBzAyk49W0d3DHc42I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SMhkqNfd; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SMhkqNfd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A127C4CEFC; Mon, 15 Sep 2025 01:58:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1757901498; bh=tG/+3LKYF2FSnLVHXLho3ONEf7Ek8I7B7tVYfXji6YQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SMhkqNfd6to+CzSXDYZsuRKahWPQW48UDCRpnqV24zGixc6e7uJsA3rjnGLStLyNa WqC7vYM6VdNbv2oqW7iSA8iTLGwaZgyD90C0MPl3SUdwhAAqIl3ACCYs0YFqR5Ik4L kw3+gaW63asJg1DV5hWO1fRRA8XY+jKkalDNvq/F3qOgN+Mi0Lo9lAlVVDVzXV8TCs W8vz0whqujmKarvV4Lh9Jrro85Dwwbc2lzMvVyOO9aGQ6DwbuR1BQ8hJ9e+EJ4t542 lsXA8VykTYta83P1D2OHogtlsPPjZfoHMfhSXPxED/LbaotkwmKxDCiRzq9/CmloBP vjLzhZZMfbwlg== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , kernel-team@meta.com, linux-kernel@vger.kernel.org Subject: [PATCH 6/6] MAINTAINERS: rename DAMON section Date: Sun, 14 Sep 2025 18:58:07 -0700 Message-Id: <20250915015807.101505-7-sj@kernel.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250915015807.101505-1-sj@kernel.org> References: <20250915015807.101505-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" DAMON section name is 'DATA ACCESS MONITOR', which implies it is only for data access monitoring. But DAMON is now evolved for not only access monitoring but also access-aware system operations (DAMOS). Rename the section to simply DAMON. It might make it difficult to understand what it does at a glance, but at least not spreading more confusion. Readers can further refer to the documentation to better understand what really DAMON does. Signed-off-by: SeongJae Park --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 4c8bbf70a3c7..ca8e3d18eedd 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6738,7 +6738,7 @@ S: Maintained W: https://docs.dasharo.com/ F: drivers/platform/x86/dasharo-acpi.c =20 -DATA ACCESS MONITOR +DAMON M: SeongJae Park L: damon@lists.linux.dev L: linux-mm@kvack.org --=20 2.39.5