Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp147071lqs; Thu, 13 Jun 2024 06:32:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWJqiJAjjkD9dkpAQ461szLXCfSBdp1pti/GRg5laYGxdC3aGqRmCxPVvFUFdNsfi+2dG5TuoBN0QplEYA8ioy/B5YV2fxGjcfcvGz8iw== X-Google-Smtp-Source: AGHT+IE2TtP3+6TJ6oiHf/dM9Oq6OVK3nnfpJNZfvxJm/IUn33ItBlBRORrtECL8zZLVRt7FfQTB X-Received: by 2002:a05:6a20:7488:b0:1b8:9b05:e7a5 with SMTP id adf61e73a8af0-1b8a9c913ddmr5612577637.61.1718285526191; Thu, 13 Jun 2024 06:32:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718285526; cv=pass; d=google.com; s=arc-20160816; b=StIttG6NCAGawmuL5fWeepGjEtwxqWXJuO4Cqu3ptCPqxxKOdsQOhu+hCf72Lu1ona /S5pyMYMHSKuc6QwROJhQV8Iuq4X5q36cKDUVE9xGGZ5MfjsOQdQIpcLSMG7JXvEH9QW HY75tgmZj6+cDOW8kdmNSYqrO1K1byKiDZ3hq4xOWYHTUM02SK6dULMWgHL5a04PR2lQ ASsqcK0QP14wiAlnsnOx5GrCzy8KaGIEwBgLej1cPSPUbr2trmxmr1WKxsFQCgiK0b1u ulcsZ+ZS/ws+kZsVyBco6WbJtGhsrGO673JxJ1Dh8EFv9Qqp8xleizTKnfWLI5SN7z7L OUXA== 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; bh=D8Ff6FHF8Gz75S45AQPwpGM/DC7uS6lzXSCtUwqEE0I=; fh=3neK+uwM3aj45LO7wtdYM3yjEndz5CATkfR1g3LvkT4=; b=uP8HiVatimolEYCZr1bWXyGXQW6PIhMDIRAsD8ODzY55VsLtbxzmSR74S8twYLwkz7 EIrEJrpgMYnVBRHtkf4rXKvm9qjA1Tr84pB0uKBkTcYgX/lpQqqgVVqD3wKF8uIdHCJe qKtlLS3my8o2+qfdmXzGtr8uceVffbM5QCdPR7pm6Wp1cYXsDPwukOBBPhjUuhxXlhuL LFxXyN/EOhJR2kX+ah5KABfrE0bdblcJWTQvBw27kBHYM/umYqsMXeRb2RXx6q1AEifR 3m7BLJ4bI3EEr8dZbkUihZuzBpkZXxTcavULlIOHRIEI0GPFiXOTgR0M14na6RW7cJn4 1U0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sk.com); spf=pass (google.com: domain of linux-kernel+bounces-213299-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213299-linux.lists.archive=gmail.com@vger.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 41be03b00d2f7-6fee67b853csi1364279a12.814.2024.06.13.06.32.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 06:32:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213299-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; arc=pass (i=1 spf=pass spfdomain=sk.com); spf=pass (google.com: domain of linux-kernel+bounces-213299-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213299-linux.lists.archive=gmail.com@vger.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 318A0285771 for ; Thu, 13 Jun 2024 13:23:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 81CBF1474B7; Thu, 13 Jun 2024 13:21:23 +0000 (UTC) Received: from invmail4.hynix.com (exvmail4.skhynix.com [166.125.252.92]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8A6071465BB; Thu, 13 Jun 2024 13:21:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=166.125.252.92 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718284882; cv=none; b=tJ31ZOSkIkdizCeTCwIw/MYuv5Xtvmmkpp9ynG9f0EuuYew4MNkzuSB0405A78dQbfD+V6PzBUJLDHjjpqIl2dpgeo2X7eTQJDKRdx7o5cN7NfThcMQe+sCHMx/lbpBxxnQwMvlVKL/bx2VWmvhoTH45Ocd18+bPUW0k/h93U6k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718284882; c=relaxed/simple; bh=EQ20HpMAIER6Uw/xHoQiBTRUedahaArff+OtmAqGPP0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QBoVCk8xTYLxF9KEHTQ2r1mbWrLnPcaTpgScQmTHMtJPDlmPeAdrVnzSSHKzrj5bB1hTqKGPy6JH5egzZ2edTrU0jlxEXoy3d0BLnmkzMig7m//n0+uJ571KDO64406GzCOpeZHu/d1YcpPdqKhaXwEpkCwgX2shfDMelPSRwek= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sk.com; spf=pass smtp.mailfrom=sk.com; arc=none smtp.client-ip=166.125.252.92 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sk.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sk.com X-AuditID: a67dfc5b-d6dff70000001748-5b-666af24d0095 From: Honggyu Kim To: SeongJae Park , damon@lists.linux.dev Cc: 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, Honggyu Kim Subject: [PATCH v5 8/8] Docs/.../mm/damon: add more damos actions Date: Thu, 13 Jun 2024 22:20:55 +0900 Message-ID: <20240613132056.608-9-honggyu.kim@sk.com> X-Mailer: git-send-email 2.43.0.windows.1 In-Reply-To: <20240613132056.608-1-honggyu.kim@sk.com> References: <20240613132056.608-1-honggyu.kim@sk.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrFLMWRmVeSWpSXmKPExsXC9ZZnoa7vp6w0g7OPeCwm9hhYzFm/hs3i /oPX7BZP/v9mtWhoesRicXnXHDaLe2v+s1ocWX+WxWLz2TPMFouXq1ns63jAZHH46xsmBx6P paffsHnsnHWX3aNl3y12j02rOtk8Nn2axO5xYsZvFo8Xm2cyemz8+J/d4/MmuQDOKC6blNSc zLLUIn27BK6M0x0vWAtOClQsmDqBrYHxJW8XIyeHhICJxPyGN4ww9sWv05lBbDYBNYkrLycx dTFycIgIWElM2xHbxcjFwSywgVli0rkXTCA1wgKOEqc3rGEFqWERUJWY+jkFJMwrYCqxtncV K8RITYnH23+yg9icAmYSj+a+YgOxhYBqZvy4ygxRLyhxcuYTFhCbWUBeonnrbGaQXRICr9kk 3uw4BnWbpMTBFTdYJjDyz0LSMwtJzwJGplWMQpl5ZbmJmTkmehmVeZkVesn5uZsYgTGwrPZP 9A7GTxeCDzEKcDAq8fB6PMtKE2JNLCuuzD3EKMHBrCTCO2shUIg3JbGyKrUoP76oNCe1+BCj NAeLkjiv0bfyFCGB9MSS1OzU1ILUIpgsEwenVAOj0fam+8qzuFZNer+9bO/OFGn+hzb/9xvz iFUwsq24V7dSS9F6lfChXFnJeWmG9ftKnh2XKw49sSU74vQLXtd3PwP2uETmvq47oP/GztX0 uVuvjtL11SoL6tRrc6ZsXXj48N0ayfebT212f384ViD54duccsmpX/cuiVUJmnMr+faDc6u8 F175qcRSnJFoqMVcVJwIAAeMmpp9AgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrFLMWRmVeSWpSXmKPExsXCNUNLT9fnU1aawdnV1hYTewws5qxfw2Zx /8Frdosn/3+zWjQ0PWKx+PzsNbPF4bknWS0u75rDZnFvzX9WiyPrz7JYbD57htli8XI1i30d D5gsDn99w+TA57H09Bs2j52z7rJ7tOy7xe6xaVUnm8emT5PYPU7M+M3i8WLzTEaPjR//s3t8 u+3hsfjFByaPz5vkArijuGxSUnMyy1KL9O0SuDJOd7xgLTgpULFg6gS2BsaXvF2MnBwSAiYS F79OZwax2QTUJK68nMTUxcjBISJgJTFtR2wXIxcHs8AGZolJ514wgdQICzhKnN6whhWkhkVA VWLq5xSQMK+AqcTa3lWsECM1JR5v/8kOYnMKmEk8mvuKDcQWAqqZ8eMqM0S9oMTJmU9YQGxm AXmJ5q2zmScw8sxCkpqFJLWAkWkVo0hmXlluYmaOqV5xdkZlXmaFXnJ+7iZGYIgvq/0zcQfj l8vuhxgFOBiVeHg9nmWlCbEmlhVX5h5ilOBgVhLhnbUQKMSbklhZlVqUH19UmpNafIhRmoNF SZzXKzw1QUggPbEkNTs1tSC1CCbLxMEp1cDIbDTHJ0jbZN9aqVmV3QyfpgS29XWfWWQzd0n5 QR15v97A/FW/dL6GtW7WrKx44KSzRn7aqx4LoUfvL5//tet6zeETCyrTbkzImOj2ry88vV/4 9eKTulN2fuLnOc27tkeyPq9Lxfh8EFfaasuPKle47/855DunbrHpjm98//ifHrzXHvxC//xn JZbijERDLeai4kQAaQY8EG0CAAA= X-CFilter-Loop: Reflected 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`` 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. -- 2.34.1