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=1796259216; b=2clJU4HKCUMH6u2lSm6AMyb0ojLXUtWPkdxxuk8FcQQAAJuZpsWBBbsimBqQNcqV8zmj ysrmfbRDz1XpeofCyxmeXjGc62wdrYLA3JfqkNPaL1xi3Kz04gssN3wEFkdBqn+pTPFbu ZcjKsSrTYooLnan/VPAKX2YfrIPcq7KKk0vEw2XdFK8cEzolsKaZnfBAJb/rdJFLTtCI9 JM+T1M5sn/nDLYpnDCGSTXTSxuUJUcqY/unDqFGs3nAaSCH+XSdAsdKTeY6kgHyRhQOxq oc37ayT8Rk4OmiC7hI9LFV5O4Al2uUk10sYChkydaUAhL1BRpfpGbMviNdZ86lFokrw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796259216; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding; bh=gMszZIqiiYuVNGWfw6bZPAhTjv2Qr/5v0uNTU1PhmX8=; b=C9OZXmbSM4VrXS1DU5T60NUwce4lpBBwAmHemdoAElGzDnSlPJMuEOB24Her4CYt2J2j S9Etf6z2mKJmMxRI4qn2CwrGWZzd1iwJAsKUa8OpEdl2MuT3pxG1huBjCw2SWcH00R9+Q 2Rl4S6/lxbwdx9Azkwy/hupEmrRNw2b0oSmAfG+Lg9ATwdPBADFzzHgqW5nbGzLAm65VD qMY0jP06mnm1aji3yRzERU+3W1tsRoWzfKMFTFbOdpgo6sadzP9jvT2ylQFzqVXhVcJt6 uLEBN2s+WbxFDEnhI1cHAW4XMEQW+Qh1hrIpQeqiSAXLTkvhYDrqQEDfBrExBYrLe4g== 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="M/tsw/4l"; 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 1E8D3606A322 for ; Thu, 3 Dec 2026 00:53:35 +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=M/tsw/4l Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7AEBC1F000C1; Thu, 3 Dec 2026 00:53:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796259215; bh=gMszZIqiiYuVNGWfw6bZPAhTjv2Qr/5v0uNTU1PhmX8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=M/tsw/4lYsI2LNsmAbj2PFYkWku+Kb/iGVBH9zdiRBFIo6mnqeoaQc1F5lWMw4m8o JBlnsRIhT9HLIG/0NqRCvE3E/rAar5UIYqfSLR7HsxuYSMqQ9GT+fagvehgQpIBLjQ SjJsj+R9EgkhQhWX1P9P5w2G/Ks49ErbaPgUDrOmeXxEzWX29e4iyUILh0G2njt+AT 5H915V4v205Zi0qlziDpTI+1pnOuCDRIk/227qCvjooLCIqTv0fCowDpJjBfLb/sho cWKTAks6DK/uRAyUTOmkdVtAs9z6mCKM4YMXQioVj++l/sRNI2XJ+vch4OM5bxPwp1 CApm4w+xc2GBA== From: SJ Park To: Ravi Jonnalagadda Cc: SJ Park , Andrew Morton , damon@lists.linux.dev, linux-mm@kvack.org Subject: Re: [PATCH 2/3] mm/damon/core: apply damos core filter in __damos_valid_target() Date: Wed, 2 Dec 2026 16:53:27 -0800 Message-ID: <20261203005328.1139049-1-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261202194022.8775-1-ravis.opensrc@gmail.com> References: 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 Hi Ravi, On Wed, 2 Dec 2026 11:40:22 -0800 Ravi Jonnalagadda wrote: > On Wed, 2 Dec 2026 07:15:16 -0800, SJ Park wrote: > > [...] > > > One consequence of this change is that DAMOS_QUOTA_NODE_ELIGIBLE_MEM_BP > > will be aware of the core filters. It is a sort of behavioral change. > > But it is hard to imagine users who really depend on the old behavior. > > The new behavior is rather more intuitive in my opinion. > > [...] > > > @@ -3218,7 +3224,7 @@ static phys_addr_t damos_calc_eligible_bytes(struct damon_ctx *c, > > damon_for_each_region(r, t) { > > phys_addr_t addr, end_addr; > > > > - if (!__damos_valid_target(r, s, c)) > > + if (!__damos_valid_target(r, s, c, t)) > > continue; > > Hi SJ, > > This breaks the single context memory tiering setup [1]. Each scheme > there has an address filter for its source node, but > node_eligible_mem_bp needs the eligible memory of all nodes. With the > filter applied, the DRAM node is never counted, so the goal of the > promotion scheme reads 0 and is never met. Thank you for reporting this! > > Could damos_calc_eligible_bytes() skip the address and target filters > and apply only the others, as RFC v4 9/9 [2] did for probe_hits_wsum? I will post a new version that keeps the old behavior. To keep the old behavior, I will make it totally skips core filters. Thanks, SJ [...]