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=1796052170; b=xJjNbS5FpIefoXJXwRcCCHYRyShMMLjzxPuLimFPmdBYhyplBksoCJwaHpGBnvoDbW9G fXXjCwsdgP+C3zOhgTFz0eeR3QMK5yEyupGDmXoVeIoQmMSIjhB5RTJyP4gXzKCE+pKw9 KWUXORGQJZeUFDEb4fhe2hD8mZ5Y0ujCWew2AQcMtXCjnDWLmX9rOUQHjZxZ6joSxnc/G 3zvOhrzv4qbjmdC6cOVhB/BIatwKTx0I5rxWK/V5aHfPy3PY0tzbGu7L4q6rdpJpPM3qI 7D9HL+niQvYTqEHmTXHcoLL8Hs9zCDBst2/y6VmV9QRN8yZgdLs2dpC1U+dkvQ2vmSA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796052170; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Transfer-Encoding; bh=kdGB5rzNKvmWEe4PTuytwclBYlf2FYs/mdD7i6faPVA=; b=zdKy5zBndqy4GVfcQ2vu81Dilz+wbieNmn2OI1UCQydJGANww9ZT18CUY5bbihqVr4Dj gpWjDM6X2KeRkgY7CE3uSWjmL6DbmIQFp9XUeaHJMTC25PYdZi8zp6XFiR//PINF+kCLJ TDBfRTkKC33ct2uviKoNqyNeAkBnwdjyoLA7mCvgvQZYOjgWRrLvmYipV59MtBxBqK1x6 bOSDT1USsHDd8H2Q9WdzLNzqzY812fX9WM17rp8slGptF0oju8j2qWcaVewYMFq+5pDAF OEXXPkghs3TZlUcL5EwGJ5bD2+O9WaKX33fCQR8p3dWL0HbgoZcslkN9829Qxg1M4QQ== 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=MoItVSve; 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 235D4606A31C; Mon, 30 Nov 2026 15:22:50 +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=MoItVSve Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9351D1F00897; Mon, 30 Nov 2026 15:22:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796052170; bh=kdGB5rzNKvmWEe4PTuytwclBYlf2FYs/mdD7i6faPVA=; h=From:To:Cc:Subject:Date; b=MoItVSveJkpurVjMfy4H7Z+8ptVvM4eRVbTcfy9bkwh6Im+aL0Pkgrmr/23XLB2Fz uXEK6pQXXC7ME01bR8OrtS1QohLRKvoWnx+pSpvuU7zshxx2aMEqblV0heBXwBYQ/v 4l9h0qBFHi1xOzTSZLMxNFmbcoNF1/UXLX/KFOAzyMPe7a/tQO9Gfp9a8d2S3jnSjg FfE+kv+yZkK4s0qWYkWW5ypmTydegBhG9jLWD+chENmiKSOQOjoD+w3r6LW5efSF97 ZjDLD6rBay5gB35hOQMD7miuUlsmG1JW5TcRESqLVK4Nw7E6P3WeCMNx/9jgTxA5SI myAGdwqBMfx1A== From: SJ Park To: Cc: SJ Park , Andrew Morton , Brendan Higgins , David Gow , Jonathan Corbet , Randy Dunlap , Shuah Khan , damon@lists.linux.dev, kunit-dev@googlegroups.com, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org Subject: [RFC PATCH 0/3] mm/damon: treat DAMOS core filters as a primary target selection method Date: Mon, 30 Nov 2026 07:22:38 -0800 Message-ID: <20261130152242.90137-1-sj@kernel.org> X-Mailer: git-send-email 2.47.3 X-Mailing-List: linux-doc@vger.kernel.org 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 selection method, respectively. DAMOS target regions are initially selected with the access pattern, and later evaluated for the core filters only when needed, in the middle of lower level operations. DAMOS quota goal type eligible_mem_bp is ignoring the core filters. There is no real reason to treat DAMOS core filters as a secondary method, though. DAMOS stats treat core filter rejections the same to access pattern-based rejections. The core filters are effectively applied for every operation. The duplicated handling of the filters in each operation only makes it easy to mistake. Promote DAMOS core filters to a primary target selection method. Use it in the central high level place that DAMOS access pattern is handled. One consequence of this change is the behavioral change of eligible_mem_bp DAMOS quota goal type. It was ignoring core filters. This change makes it aware of core filters. It is difficult to imagine real users that depend on the old behavior. And the new behavior is more intuitive in my opinion. 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 design document, via patch 3. SJ Park (3): Revert "mm/damon/tests/core-kunit: test the size charged for a filter-trimmed region" mm/damon/core: apply damos core filter in __damos_valid_target() Docs/mm/damon/design: update node_eligible_mem_bp for changed behavior Documentation/mm/damon/design.rst | 4 +- mm/damon/core.c | 26 +-- mm/damon/tests/core-kunit.h | 316 ------------------------------ 3 files changed, 17 insertions(+), 329 deletions(-) base-commit: 0bbbdf85abf48b019cb8dd7a6e87f0a8995fdcd2 -- 2.47.3