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=1796428005; b=u4Ti4Y5/uz4BpnUYKF2+mMk7j2h3C3M4Zb2BQIVtBiCd2Tx2Y2yP6w/DmrdJ0K1uLRXX nJJzkfXxoraDw6ljLmyUM0vqIqNux5Xjl8dxiQu7cdv5hK25p748AllGlBAFH8xbS0IwE e94rMGWZ7pJWwBG15e0CSNX0+bI0PPVGf/zwM5JRag1bSFTZrVMo98WFBAKxW/Q2dATfa g8coEiPeVeZ2cL4aeVySHIbNM5wbZXk+yIEY+CoQ1WdQBssyRsfRZFfb3MDoE061XeHvF aFerj1Dg+yptGOY+vb2BSPt8zmYDZ1jaV0kUqfmCJwn83slE1m1XfKB1zIB6KeO596Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796428005; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Transfer-Encoding; bh=TnGeyffT1ixuWLHSHRVS8VIPasXWNlBYC3jyWL20sAk=; b=yyfIbsZMUtaglKUUuQn+wz0wTQW8Ueulc+fyxxDWgj+qq9dsHMaroePY1siFDXEJXUP2 uwl5kJUYOv82C13JOUugRmW+aprNOmzl9ygmc4XN9dRI4zAbnzXv+iNa7Z1bqZbq5Xqr8 nTlIEYS+/MIEdXFeQz+itup7AbR3RX41fGjvqrIlrR96+Cyv+AG4mxwg7QvEVGoh7ad8Q n1VHfx0jplc0aAFQ/IbH8nyZgVJYDQmUcfgAlwPwdHC6yTFhJ4o5CtmsFrLXJlf/g2U7K MT3vYvt5sVlniz+cqqpq//moGjX+OUSfr6V7sg429qVkjgtjsRADpTp3RlScjguzVkQ== 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=fSrWnLov; 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 3DF83606A32D; Fri, 4 Dec 2026 23:46:44 +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=fSrWnLov Received: by smtp.kernel.org (Postfix) with ESMTPSA id 861E51F00A06; Fri, 4 Dec 2026 23:46:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796428004; bh=TnGeyffT1ixuWLHSHRVS8VIPasXWNlBYC3jyWL20sAk=; h=From:To:Cc:Subject:Date; b=fSrWnLovjy1xzdYhoR84AeNNs5L40OZiufNVMdZ8VRdeSTovbQpy4tkcrx1r4UMcI GrtXnJqnIjLsKp3IlIF+0wUwKRnqbbUYnvO6jHkXxhtDEdJVms1ZM1srR7BIFdRRl0 qZjXlOHRTXdgD6IBx3L6hO3REvkVPMrNQf+fIkCjfFGn8edc8HpRaHSKrc1sd2/IQS W9ZMuueWtnNOyj2irTMc8QwYtt8ru4P1lI9e7nhTCjeyitGdS/Cr3fG3s6nbrG7mSy r0xdOr7m/yRgiBYvnO1Nk7qvU3UkKwvv+BDwmxdho9ycNO+T5ChJRGkwxXfSI/xbKx H8emK7u0d+1dA== 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 v3 0/3] mm/damon: treat DAMOS core filters as a primary target selection method Date: Fri, 4 Dec 2026 15:46:32 -0800 Message-ID: <20261204234637.93274-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 v2 - v2: https://lore.kernel.org/20261203150821.730276-1-sj@kernel.org - Test damos_access_pattern before core filters. - Remove redundant sz assignment in damos_apply_scheme(). - Fixup commit message about damos_valid_target() parameters change. 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, 22 insertions(+), 224 deletions(-) base-commit: d0d65ff2e433e741c23715e8359c4a248d432179 -- 2.47.3