Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp58121lqe; Fri, 5 Apr 2024 12:29:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVOmiz7kRFhOgLhMlromTCyQaBri8kv80AFnU/9egotSx3DSkE0yozrRzVUU7SvKdMR28/TonPP9N067C/xpCTxuwhB0XJy+Zzsawe8Gw== X-Google-Smtp-Source: AGHT+IGmkoM+f9NT0106TNP8E6yetdq1sq8T68GGIj3REsFnRKfV1s7n+wAMOPeDr8Iqq2ItDcPP X-Received: by 2002:a05:6a00:9392:b0:6ea:c9c3:94a5 with SMTP id ka18-20020a056a00939200b006eac9c394a5mr3054625pfb.0.1712345391101; Fri, 05 Apr 2024 12:29:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712345391; cv=pass; d=google.com; s=arc-20160816; b=XDc6mDNJstH1j9hgueqEMvxdDUffxrIdDo6qqsdbY0l+/vn0R0Xl6c6TcavCL03eYd eQsiO1EmuDxi6Qp7SNDGJy5rkgIy0Kjb7LQZUtEInCQaHF9YogJNqFUJazWA8SfIEkDH 9hQpsel8HNRMIeQB5FKGSGNEc/MfcCZRVaRnLQp7Qn2YQppMVJZaOHudzTjoHhmt9VYO TxNraItWIhKuR0Yyvh76N0qP8LgzR+30BAp+n4mUPgjbE0SgeJQXjdXmV071YMmiu1ne JCKgkHOI7FuQlpj8NQIBy+B4b8tKvp1gZAQvJjjwNlUGpE4Zr4Li8J2tOKMODYTrdVoZ 7SVg== 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=PuQOWt+eLRJlzPuVHynCiU8xMzZV6C3KtU48/WpN5NI=; fh=vthu0SYzpky+WzEpp04LHS7M01Tv3cuywMDMy+rfr78=; b=nrkOO37U1hZJxzowj0XTpBtc1z0OVpGmYTcdpuigYYxgUIiJ0ZOjuXa8OQEt8tQV3W x1jPUcG0IKJLiEWcTB8C2ePP9TaanWFrXE/wGpf9lDQsTt4DZZeSQ2MlhSi4jX3nZxK1 alYDmp8douhwHPmZHEarH9kmZ53NoZr6t9n7K5jKh7bjfSAtYJnNjYKdvDf33CVaJJvW xppIri+x6P3w9yrsGDN53m04XijzPZaIWq89+G7A3Ownj+4pFeZf/k/tz5aNjjlUg+yP xL8RSMsvrL7qzGYexP/Hljd3ighHYjO/odT9dsBCqbWddWOLXHIRX8ftei+S2uocqox3 SIjg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tCDnoxOU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133530-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133530-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id x9-20020a056a000bc900b006e735f90cbasi1830972pfu.240.2024.04.05.12.29.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 12:29:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133530-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tCDnoxOU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133530-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133530-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id DB209B22806 for ; Fri, 5 Apr 2024 19:28:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 87C0E172BD6; Fri, 5 Apr 2024 19:28:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tCDnoxOU" 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 9DF15172BBC; Fri, 5 Apr 2024 19:28:04 +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=1712345284; cv=none; b=REi9pmasdMOHdvYLG0ahHtqEaUnkKMzkVO+ScZpxmIyHH4XmGawV32EHc8HOllqfcK0ex4mLHkUto6qRkw8vXruuiCL5yqTlio5EVLNG93bVcIpGYGuQU7+b5tRhLKps0yEocwOGMhb5lV4eVo4gYN0xEgPdsFWJurHA7wThA2k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712345284; c=relaxed/simple; bh=s4X5xF38G0xdBCRwrgje/a8N9SSzOSAJM1btVV1Oid0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=MBKD2RMrqk/x0wL54mL8t71MHdzo8ypraL0dDODX9Sg0Pres1pfZj3Q5pMePbCN73awHpqLonvnqmLzAz81wySYdd0by4Ty2+nr6GAgEIm5AhAqPQ1Yf4Rxk0w+I62A1NycdJiyAVs9ALLwcPUFbjKt1r1OLWdTPVGGDYtXtSnY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tCDnoxOU; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 825B1C433F1; Fri, 5 Apr 2024 19:28:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712345284; bh=s4X5xF38G0xdBCRwrgje/a8N9SSzOSAJM1btVV1Oid0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tCDnoxOUCYeV7Pblmh2okpq4jgNajyC9ezTEfuysj8xIgQKvwqhTYee3ZS3FxYtGk DBOFJx2XagEzwPdeTYjk6C+UP8e6UrD7gyf/wU/1yucN4R9ldy2eot1NzCotWPvacE V6lYbcEcSYhEfUfSfzDcT28OfD/yEHL4Qj0GfsXuwOEex5sy1QxFCijWCMNYrX1MPH 0ctHqJrxJBtK1OjhAdshieBRj4Lc0632VWS5fzLo/FlklR2lnGZITVAA0IfDmdhnvs U6+woybOxPLwlLrGCqCgeDVTbN/mL2EVGoqUxyZfKWfFMz41nCtxnFzCmqn7wiPanQ tZaTkhPL2Uz8g== From: SeongJae Park To: Honggyu Kim Cc: SeongJae Park , damon@lists.linux.dev, linux-mm@kvack.org, akpm@linux-foundation.org, apopple@nvidia.com, baolin.wang@linux.alibaba.com, dave.jiang@intel.com, hyeongtak.ji@sk.com, kernel_team@skhynix.com, linmiaohe@huawei.com, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, 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, 42.hyeyoo@gmail.com, art.jeongseob@gmail.com Subject: Re: [RFC PATCH v3 0/7] DAMON based tiered memory management for CXL memory Date: Fri, 5 Apr 2024 12:28:00 -0700 Message-Id: <20240405192800.67163-1-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240405060858.2818-1-honggyu.kim@sk.com> 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 Hello Honggyu, On Fri, 5 Apr 2024 15:08:49 +0900 Honggyu Kim wrote: > There was an RFC IDEA "DAMOS-based Tiered-Memory Management" previously > posted at [1]. > > It says there is no implementation of the demote/promote DAMOS action > are made. This RFC is about its implementation for physical address > space. > > > Changes from RFC v2: > 1. Rename DAMOS_{PROMOTE,DEMOTE} actions to DAMOS_MIGRATE_{HOT,COLD}. > 2. Create 'target_nid' to set the migration target node instead of > depending on node distance based information. > 3. Instead of having page level access check in this patch series, > delegate the job to a new DAMOS filter type YOUNG[2]. > 4. Introduce vmstat counters "damon_migrate_{hot,cold}". > 5. Rebase from v6.7 to v6.8. Thank you for patiently keeping discussion and making this great version! I left comments on each patch, but found no special concerns. Per-page access recheck for MIGRATE_HOT and vmstat change are taking my eyes, though. I doubt if those really needed. It would be nice if you could answer to the comments. Once my comments on this version are addressed, I would have no reason to object at dropping the RFC tag from this patchset. Nonetheless, I show some warnings and errors from checkpatch.pl. I don't really care about those for RFC patches, so no problem at all. But if you agree to my opinion about RFC tag dropping, and therefore if you will send next version without RFC tag, please make sure you also run checkpatch.pl before posting. Thanks, SJ [...]