Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp170563lqs; Thu, 13 Jun 2024 07:07:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXLkzYA0JISAKS7v39zi5f/81bBZD8iAR1kizq4ccaR7PjglRq3u3MjA+Hqh3jClSgjBfUqoRdiIoQAHyeHxwxXmJc/RNmORsBrvex/Ew== X-Google-Smtp-Source: AGHT+IF7DFd7lmX+y9KHj1nGDY0kz5827yavtxCzZ3WYIKGaWw/TR4TUPK+Ci7KGXC0igswQdGdL X-Received: by 2002:a5b:f45:0:b0:dfd:3e15:660e with SMTP id 3f1490d57ef6-dfe66772648mr4526836276.25.1718287672778; Thu, 13 Jun 2024 07:07:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718287672; cv=pass; d=google.com; s=arc-20160816; b=iMBIeKDJzIfBMKhjPB9GEKDUwaWTz0FukALMf2X4Yc88ror9pWcnRpCYIbxWHSQ3R7 VW6o0UIEOrlu8ts8lCI8OcAgeCkV54CHAZmbK2frTyc5cvZf3tfHa/HtbT02qLtYs1ns ULC3a2qjEZgDPTPm3rnjMImXZdLoH2wP2QsbZXZjjHBpwpyZJ0mgV42UJS5m3cN3r7kf x9f0xRZHPXBKiK7FV9JrjBf0HmnwtRewmxnubnP5NRwYMi9oPPSeqxzP1YDs3J9/nm54 hy57Znv6meTURbzEO3s1FXIKOSE4ZpT81b0yjij5rD9Kxa0AFHEFFbg0MKdOcqFxjUxI 3zbg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=cAi3uTPHOhTOds1569/cZOW+Bo/ZhwjwFMbuAaQh6bE=; fh=qF5SwKT7u1zSgImxVkgG+IoNTwWaDldx/mMMG1dWPbQ=; b=asuTfQGew/DVyQwqsndeIJX6jHscTm3ZPrTGCZirXVdEG8h1VKBeoha68kXihXsfOZ Le7nQUUDCTnp7Hdcsz8Ssm7dvsR9/UfAqfXSKviarBdeXAW5x38LhwDkpOqzR3YpguJQ jNNktWBjnaV8WF8U/4T+WqoADhEM243fbl4Fo73ZPgCYhZXr5lu+eR5rqb3hX6ynbzJZ oM421Hy1sarp9Z8l/MbMz/gj0rylZL7BJi0Tm32dsMm4SlGTD3ZQj823VQLfVKnaTlfs /abb2oXyEXt+fkmzoZbuz2gzrkUbRh8E3HFukuxDNnZq75/d7FCHybXIsnxiSQNm8wJv AgTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Q2Gh31x0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-213398-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213398-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 3f1490d57ef6-dff04a1c341si436560276.738.2024.06.13.07.07.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 07:07:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213398-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Q2Gh31x0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-213398-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213398-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7396C1C23769 for ; Thu, 13 Jun 2024 14:07:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4FBEE144D22; Thu, 13 Jun 2024 14:07:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Q2Gh31x0" 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 75CA810F9; Thu, 13 Jun 2024 14:07:47 +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=1718287667; cv=none; b=IpM2cqsJrArEEKeVbm8AV/df6yeg9itC/98rJrJBQqcTSA6xxFNGZeALNMG/uppsQhB+aB64ko/cUem2lyObJKzzgKVr8u1SQGP7KtA8nJmx/p/sjugdmK9KutKxGqqGElLsKVV5EZrsw2o2+lUp9/CPieRgleCfoNZ6bT9NGk4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718287667; c=relaxed/simple; bh=odfp1TpgeErbFjJ61Se8vEzIbx/qU6+JD3DTGwxuJtk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To; b=t3e+5wnHk8mTrXx9c0c7TokYWPkWmd+C4PHjyFctTr/5KUxeBZoBWBPTu+Z0lh6IjA1WzKkEag1fAS+7u0/gBzcrnaYU4lPCLVGV/nzBhSd9Fn6lW0f3q7lWLFXxpnze9AfvWP00Cz60swQ6mIKf+5sBMxoJtTfsttJ+4TaI/u0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Q2Gh31x0; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 830FEC2BBFC; Thu, 13 Jun 2024 14:07:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718287667; bh=odfp1TpgeErbFjJ61Se8vEzIbx/qU6+JD3DTGwxuJtk=; h=From:To:Cc:Subject:Date:In-Reply-To:From; b=Q2Gh31x0D8g+FDWZnBJ4HAyMYMjVk7RRlq9uO/0AyrM13tWmr2HVLbcigsBbvVBBW 1VjNa589ejVuxOYtWXUj0IKD9Xfx977Gg8zRrx9cv7+bNbGExDAVOcpBQqpj4aJ+Z1 MD4HjSxYbfUSAttpDVRdLUHUO5KY0VY8WbYlm7pcoBYWQ4x8Ww+ztMuR/h/9i+wXxx ZT86AZO+IFS2ELHnLt2kAqh/IdrAENiicumNSjxi7SdBL1qL9HX7i2Stlq1HD1uyAh 5frETOxA7lkrf/IZuHk13SkQwy6m8fRZiVJLZ5qn8sZIZAOwdeSpTQHuxUKItzKTDW 0rycJZY4fktsA== From: SeongJae Park To: Honggyu Kim Cc: SeongJae Park , damon@lists.linux.dev, Andrew Morton , Masami Hiramatsu , Mathieu Desnoyers , Steven Rostedt , Gregory Price , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, 42.hyeyoo@gmail.com, art.jeongseob@gmail.com, kernel_team@skhynix.com Subject: Re: [PATCH v5 8/8] Docs/.../mm/damon: add more damos actions Date: Thu, 13 Jun 2024 07:07:29 -0700 Message-Id: <20240613140729.27177-1-sj@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240613132056.608-9-honggyu.kim@sk.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Hi Honggyu, On Thu, 13 Jun 2024 22:20:55 +0900 Honggyu Kim wrote: > This patch adds damon description for "migrate_hot" and "migrate_cold" > actions for both usage and design documents as long as a new > "target_nid" knob to set the migration target node. > > Signed-off-by: Honggyu Kim > --- > Documentation/admin-guide/mm/damon/usage.rst | 8 +++++++- > Documentation/mm/damon/design.rst | 4 ++++ > 2 files changed, 11 insertions(+), 1 deletion(-) > > diff --git a/Documentation/admin-guide/mm/damon/usage.rst b/Documentation/admin-guide/mm/damon/usage.rst > index 7bff54963975..84d62d16c9f9 100644 > --- a/Documentation/admin-guide/mm/damon/usage.rst > +++ b/Documentation/admin-guide/mm/damon/usage.rst > @@ -300,6 +300,10 @@ from the file and their meaning are same to those of the list on > The ``apply_interval_us`` file is for setting and getting the scheme's > :ref:`apply_interval ` in microseconds. > > +The ``target_nid`` file is for setting the migration target node, which is > +only meaningful when the ``action`` is either ``migrate_hot`` or > +``migrate_cold``. > + > .. _sysfs_access_pattern: > > schemes//access_pattern/ > @@ -759,7 +763,9 @@ list on :ref:`design doc `. > - 4: ``nohugepage`` > - 5: ``lru_prio`` > - 6: ``lru_deprio`` > - - 7: ``stat`` > + - 7: ``migrate_hot`` > + - 8: ``migrate_cold`` > + - 9: ``stat`` This section is for DAMON debugfs interface. And to my understanding, this patchset is not adding support of migrate_{hot,cold} DAMOS actions on DAMON debugfs interface. So I think this part should be removed. > > Quota > ~~~~~ > diff --git a/Documentation/mm/damon/design.rst b/Documentation/mm/damon/design.rst > index 3df387249937..3f12c884eb3a 100644 > --- a/Documentation/mm/damon/design.rst > +++ b/Documentation/mm/damon/design.rst > @@ -325,6 +325,10 @@ that supports each action are as below. > Supported by ``paddr`` operations set. > - ``lru_deprio``: Deprioritize the region on its LRU lists. > Supported by ``paddr`` operations set. > + - ``migrate_hot``: Migrate the regions prioritizing warmer regions. > + Supported by ``paddr`` operations set. > + - ``migrate_cold``: Migrate the regions prioritizing colder regions. > + Supported by ``paddr`` operations set. > - ``stat``: Do nothing but count the statistics. > Supported by all operations sets. Except the DAMON debugfs interface section, this patch looks good to me. Thanks, SJ [...]