From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796310509; b=O3TK9GeOGBuRJxE5ZUsPBhCINOK7HhkmZAx8X78W3u4ZZQ5Z572xwGG0ycFjCd8dVHk0 aZrIjyeiy1w8KAAGMgsG5PDWYT6glW3ZR39LocZrhmwa6I0wGo9jU/hrcZA1GpUmOxVW0 cVOa+riUcgKy9TNoT/Mg1Y1sW7DKXHoG24qr5pDc9/asmCkkiydp9ZOzJSRsdAHacO4MG ga+5KCZ46fvGKgKtrpAaBbAblCXpeYnffkCSmssmiSs/cjmpdEAQjsbpc0SbsmYxr0LsT 3WfrXoGe0281YnnFpCyOyJWt3nErcsw5NmHUQNTiMveBwK0fFv1OMUBfVe/gS3G8SGw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796310509; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Transfer-Encoding; bh=YmsaTAiDowvmq6KF2ImkzFLUsmm37otxa9ZI4Oz7F0I=; b=VqduTbrqzrrl0KG2nxs0kNu+LK5JZW0t4Jv0I8qR83mQtbZZJSbfAfcgf24bqezgNvRt 8O7haAeVpT8n4FeZWvYCwE/YedYiRAV4XIuuR/yUyAmy7jidGbYkm7XfTlj4EhjbqeiPx xzmX2kdXeKgIt74iAv/iktXid6GoUkW2tMnKsVHwLGoC50d20UTSbHgbIwI1yFahH1DCA Ioiw0XladUF7A27BiDnkwxwaSpaNT2lOP3Y6ki/vFgcNV1bYPn7bhjCRDMrFDChlQQGbf 4OPckz6KCLa3CIsGefbsz+pNVJZFNmi2BxmsaBbq55MYplxuRfrpTYcLNKZyvoTWotQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=KasltqWt; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 649C1606A330; Thu, 3 Dec 2026 15:08:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=KasltqWt Received: by smtp.kernel.org (Postfix) with ESMTPSA id 024961F00893; Thu, 3 Dec 2026 15:08:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796310509; bh=YmsaTAiDowvmq6KF2ImkzFLUsmm37otxa9ZI4Oz7F0I=; h=From:To:Cc:Subject:Date; b=KasltqWtyzjZnqiMK13+GvTMQluql0zp33ZECJ2hceoPBVmMoxEC8XZBPYHsv+NL4 i7Zitl66ByJRP7gMOVvDOGcUPmfc3Wztbz5fLUs6CJ3OYX7BdTkW82u5qNPe+mAviW pzNeIvIaBSURhlrbtHgy+MbAWAHAoLvg2oXMO4nym4T6yR43G+w1sk8o1imsME0c5S 3n1L4NN6+3aRCM6p5JVvkfsjoACiMzBjtVeaGAqmyafUc8FxBSFDx80Fo58IBK0q5J QDuwU/ioz4VVIJv58SMhGb9DwM1/82lVxSh34pLRVQUgeE/oJhmouc5vkRL3Y8W+Ge XIcsVAZLyy7ww== From: SJ Park To: Andrew Morton Cc: SJ Park , Brendan Higgins , David Gow , damon@lists.linux.dev, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH v2 0/3] mm/damon: treat DAMOS core filters as a primary target selection method Date: Thu, 3 Dec 2026 07:08:16 -0800 Message-ID: <20261203150821.730276-1-sj@kernel.org> X-Mailer: git-send-email 2.47.3 X-Mailing-List: damon@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit DAMOS access pattern and core filters are treated as a primary and a secondary target region selection method, respectively. DAMOS target regions are initially selected with the access pattern. Later core filters are applied additionally when needed, in the middle of lower level operations. DAMOS quota goal type eligible_mem_bp is ignoring the core filters. Core filters are effectively applied on all places that damos_access_pattern is applied, except the eligible_mem_bp DAMOS quota goal type handling. Promote DAMOS core filters to a primary target selection method. Use it in the central high level place that the damos_access_pattern is handled. Split out damos_access_pattern to a function and call it directly from the eligible_mem_bp handling, to keep the old behavior. Remove unit tests that were too duplicated and will fail after the change, via patch 1. Make the promotion via patch 2. Clarify the changed eligible_mem_bp behavior on the kernel-doc comment, via patch 3. Changes from v1 - v1: https://lore.kernel.org/20261202151518.618069-1-sj@kernel.org - Restore eligible_mem_bp behavior. - Wordsmith commit message. Changes from RFC v2 - RFC v2: https://lore.kernel.org/20261201145302.91868-1-sj@kernel.org - Rebase to the latest mm-new. - Drop RFC. Changes from RFC - RFC: https://lore.kernel.org/20261130152242.90137-1-sj@kernel.org - Restore dasmos_test_apply_scheme_quota_sz(). - Rebase to the latest mm-new. SJ Park (3): mm/damon/tests/core-kunit: drop apply_scheme()-internal filter tests mm/damon/core: apply damos core filter in __damos_valid_target() mm/damon/api: clarify node_eligible_mem_bp is access pattern-eligible include/linux/damon.h | 5 +- mm/damon/core.c | 31 ++++-- mm/damon/tests/core-kunit.h | 210 ------------------------------------ 3 files changed, 23 insertions(+), 223 deletions(-) base-commit: 1a7610248a3802e38124ce66b07eef12277be9a0 -- 2.47.3