Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp661537rdb; Wed, 17 Jan 2024 13:24:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IH6ooArI20y/HbosJ8AxB2Elx5pNO/ypMmxtJ9eAiD/DFnAv4CnF6X49HpRa4ZNwQ4sTwsU X-Received: by 2002:a17:902:d551:b0:1d4:5b68:8fbb with SMTP id z17-20020a170902d55100b001d45b688fbbmr6536352plf.44.1705526669064; Wed, 17 Jan 2024 13:24:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705526669; cv=pass; d=google.com; s=arc-20160816; b=EIRnuszFioQ9kKtslYrgYAST09n3GH4h16n56ubf+0BlDNPKlTBVo9a355eGiSoEwP 4Y3cBIfsVZxNsxtntVhNvnMa3g83hQqXsQRQVzPTriaFYD6HlNz3KVX8CC3aPZFpdGKf zwXgDRwSfoLq1aGAXC3D9eAokoLV2cvz6Gim2K8CjgHfoBByT2n0naLB1A6qxQqHQkb0 LL5jofo+/I45BMPtMqi/cawbDqg/5gvmEHfe+6tG/i1XQQgEiOcpQ4bASjyVRd7ln/UA tNGe8QV78zPQoK+aV9WS/q1QGTw+kL1x0cKwAvloG991/678TSwbYelfzEItw4mcRc1C +X/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=hxYphTeoQoEzQ7fkLeGd09WqxvSo5TLQiL9nCzZIeQE=; fh=nLsTXLqiChYa93ljsYIFSIvHx6fy8fR6lyy5pscIklg=; b=pgejmXoDFva+gHJ9M2zyvpToTAHsygqQWMMOss80iKjpyhxjmcFlBKu2IiwuNx0/uJ SsQsc8F1AEKFuYo7p/cOyglpv3Jo9BQebmQcTtGKtMAt9oPjR2ZnRLYJ1ZGEowQ74EUe 0pmVGuBlM5cliwi12onasUsuCGFLMkFyT4WSCgnseNXooiOYcIexCNyBW1gLm39Bbksr SoNTwW3BfJ52tXq3reiRFz8LNC6LFilW4fhU9SJNhJvyleuiMMWBCNyv6QkCCcTINchp qZiBjfQdnnOeHn9JpbTGdCAa1VKdTcIiFm5eGx+WDvIMB+C2WjpKeU9/AWwax8uGKvpO e/YQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HetAil9r; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-29462-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29462-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h20-20020a170902f7d400b001d5e62757e1si208686plw.324.2024.01.17.13.24.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 13:24:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-29462-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HetAil9r; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-29462-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29462-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8452E285709 for ; Wed, 17 Jan 2024 21:24:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 44D092554C; Wed, 17 Jan 2024 21:24:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HetAil9r" 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 59A7925572; Wed, 17 Jan 2024 21:24:22 +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=1705526662; cv=none; b=Z6BjP5bZQto2BWTRZm2qzqAjXd2atc9+T6M9A0wATjmAz/vgk9q1rxiwdSpZX6xwGmRtBV0CZ/NLVbnQtUNQP6ctxSDXA51+PwlmIlj/pco0L3jMUO18GXaGVZ3+30P3hkfNpDRE4s384ljXHcYV7OFkXqiMXBV8JY+aqa9s9OY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705526662; c=relaxed/simple; bh=Xi4AvMxwNhhjvnZxB9RNlBZlHJZqwbrZNMt87q40Y5Y=; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-Id: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; b=KZwX8hy1IMUI98dOxhdvI9Y1bryqsOtZfWWxon/UJxdFYZsQI3RpMDbn4T+0Wlf5M9W6HcdB0dnErHf2t+uJePCuazQBLqrp/6b68Pc/o2M/Co7YD9Ah1WTcC9irjfsiCJ/65tz63oLZSW/g6zRdOm/ebIVV+7mVo+Wqd0ORO68= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HetAil9r; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 525B2C433F1; Wed, 17 Jan 2024 21:24:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705526661; bh=Xi4AvMxwNhhjvnZxB9RNlBZlHJZqwbrZNMt87q40Y5Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HetAil9r8Am1raizRyvhUG/lw4wfYEoQA/9APIZG3YginIabgQH0C8ANZXjw2Y2Z3 jBVjrKFMwSrWTLn5+kyKOecmhQiS5HLDw1e7N7aJ6y6K+KXuxtm9rfcb+RUqi5qZYK J+TU5//SgG++UfdgVeSTAcfsZQ7CHLh8fkX5jswzbSmylMVy55rY9f9ocr+c7NSVh0 0D+XfW7JgkTo+N15+rIdFFNFFIa3FAivl41puNP0wvNdnAyEIq+k/UKVowd11bihWw LLQTad7/nsLlcwHxghws/cLDX45lAIIpJZaRky5TGeuv/8NZZN2XaK6cSVsLHVNR3A wBilBn7I31hAA== From: SeongJae Park To: SeongJae Park Cc: Honggyu Kim , akpm@linux-foundation.org, apopple@nvidia.com, baolin.wang@linux.alibaba.com, damon@lists.linux.dev, dave.jiang@intel.com, hyeongtak.ji@sk.com, kernel_team@skhynix.com, linmiaohe@huawei.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-trace-kernel@vger.kernel.org, lizhijian@cn.fujitsu.com, mathieu.desnoyers@efficios.com, mhiramat@kernel.org, rakie.kim@sk.com, rostedt@goodmis.org, surenb@google.com, yangx.jy@fujitsu.com, ying.huang@intel.com, ziy@nvidia.com Subject: Re: [RFC PATCH 0/4] DAMON based 2-tier memory management for CXL memory Date: Wed, 17 Jan 2024 13:24:18 -0800 Message-Id: <20240117212419.51845-1-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240117211103.51806-1-sj@kernel.org> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Wed, 17 Jan 2024 13:11:03 -0800 SeongJae Park wrote: [...] > Hi Honggyu, > > On Wed, 17 Jan 2024 20:49:25 +0900 Honggyu Kim wrote: > > > Hi SeongJae, > > > > Thanks very much for your comments in details. > > > > On Tue, 16 Jan 2024 12:31:59 -0800 SeongJae Park wrote: > > [...] > > > To this end, I feel the problem might be able te be simpler, because this > > > patchset is trying to provide two sophisticated operations, while I think a > > > simpler approach might be possible. My humble simpler idea is adding a DAMOS > > > operation for moving pages to a given node (like sys_move_phy_pages RFC[1]), > > > instead of the promote/demote. Because the general pages migration can handle > > > multiple cases including the promote/demote in my humble assumption. [...] > > > In more detail, users could decide which is the appropriate node for promotion > > > or demotion and use the new DAMOS action to do promotion and demotion. Users > > > would requested to decide which node is the proper promotion/demotion target > > > nodes, but that decision wouldn't be that hard in my opinion. > > > > > > For this, 'struct damos' would need to be updated for such argument-dependent > > > actions, like 'struct damos_filter' is haing a union. > > > > That might be a better solution. I will think about it. > > More specifically, I think receiving an address range as the argument might > more flexible than just NUMA node. Maybe we can imagine proactively migrating > cold movable pages from normal zones to movable zones, to avoid normal zone > memory pressure. Yet another crazy idea. Finding hot regions in the middle of cold region and move to besides of other hot pages. As a result, memory is sorted by access temperature even in same node, and the system gains more spatial locality, which benefits general locality-based algorithms including DAMON's adaptive regions adjustment. Thanks, SJ [...]