From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97E28EE14C3 for ; Thu, 7 Sep 2023 02:29:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BD4A828002C; Wed, 6 Sep 2023 22:29:45 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B83FA280029; Wed, 6 Sep 2023 22:29:45 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9D9F328002C; Wed, 6 Sep 2023 22:29:45 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 82BAB280029 for ; Wed, 6 Sep 2023 22:29:45 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 5AADF160F4C for ; Thu, 7 Sep 2023 02:29:45 +0000 (UTC) X-FDA: 81208220730.13.999F797 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf30.hostedemail.com (Postfix) with ESMTP id BB59480009 for ; Thu, 7 Sep 2023 02:29:43 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=MVm2PfWX; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf30.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1694053783; a=rsa-sha256; cv=none; b=jxm8OSFS5K1vqMa62O1a4sdBAh4oVGd5bpHIXE+5yZBWqnNzBj5Sly2mkubVSqoVqHG822 cUkqh4YxNOGFazyhA4/rYsGuqfQpDpD/BhJ9INpI5Y6zZ4WzvFzexS2EPIdfXVtW4k+WwZ Wcn1gi8/IB9fKj5bPtxxlgbKqzmmNqc= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=MVm2PfWX; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf30.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1694053783; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=G9MR7Mw5zSiENeiUoafSx5gmKmaBzGpkOuYNCChq1RQ=; b=qiXyUv+BhfF8/4plNNjOii6U32dlggrvP0sn0G+5djupMapdM62viq1c+/SLhXOWJK0Jnv N3YJZjBjh+hzu2vjSczY4a2XqkATe6VOHWIb4DMyIfr0PpTMwz0iuY+ENhAFuWkcrpCNoM oY7GvbiFxgmX7i+FwErtxsrCGjqnRIk= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DEE17611DD; Thu, 7 Sep 2023 02:29:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34969C433CA; Thu, 7 Sep 2023 02:29:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694053782; bh=M64Pfxcjf04QA6IY4mZMjdI8QQdmOQDItlzxRcwz4LQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MVm2PfWXGzcgo0kBxY/8/P25MQuwXf2YFzHZmudczea0VOOSzggdox8oqOLX3u4Nr ZlZHTblD7l+UcOvhoYenzWvOLWWxJslj5dYbFGfNz0oN3B81Pcxt+aPPDKmI6jrtMo YllggfJnHAK1A1kkPPl/wWO7P2zWYpBc1Pe//JP9NYo6K6Q70bKcUnlzBrImIpv2NS izprI02tEPyUMz1Hfpctj6gMDM09k49HVu5q+X2frB82M8+ahs+8gOQpnkbrxSw5zm Qkvh9AomlCBXMtNeaCR/vzEj0YIX85F7RxK58U3UuYr+LD8Mxn/OkeIaAZNfHgvaPS MjJ6rWY4ilFKQ== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , Jonathan Corbet , damon@lists.linux.dev, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 07/11] Docs/admin-guide/mm/damon/usage: link design doc for details of kdamond and context Date: Thu, 7 Sep 2023 02:29:25 +0000 Message-Id: <20230907022929.91361-8-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230907022929.91361-1-sj@kernel.org> References: <20230907022929.91361-1-sj@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: BB59480009 X-Stat-Signature: fw88axrzyjkzadgxkxzqs7uiebbzg6tt X-HE-Tag: 1694053783-153106 X-HE-Meta: U2FsdGVkX1/EbAWOMda+pJyYQTi2EN0qoU6sq6Ft4Lgut0QYOZHQAdmi8BqNTIviOvHZ+gcAncyJvp1ZUNn2njK3rBgOGLA7d8dW979QbA2/TiFAzR7bAbwZnNGyXW3eTx4e302XgyIilUHEw8rDlNQ9FHRGkRZDS1B5GYxpfYFldUgKJt9AStfNvyKZa++F/PuHaiteYGZqRiCLK3nA9mgeoJPNrLZ6mVKrBEfqko4IHyjxN2d1uZq8nXYU1fUjL3cEdk4rQ3Nde8b9aE8oOYA5fVhTy3RHRuFkf7v7Kgf+b1N6cnJa9Mr3N10JM3MSIoNv131qGNi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.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: The explanation of kdamond and context is duplicated in the design and the usage documents. Replace that in the usage with links to those in the design document. Signed-off-by: SeongJae Park --- Documentation/admin-guide/mm/damon/usage.rst | 19 +++++++++---------- Documentation/mm/damon/design.rst | 2 ++ 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/Documentation/admin-guide/mm/damon/usage.rst b/Documentation/admin-guide/mm/damon/usage.rst index 758575d33ab6..282062b6f134 100644 --- a/Documentation/admin-guide/mm/damon/usage.rst +++ b/Documentation/admin-guide/mm/damon/usage.rst @@ -105,14 +105,12 @@ having the root permission could use this directory. kdamonds/ --------- -The monitoring-related information including request specifications and results -are called DAMON context. DAMON executes each context with a kernel thread -called kdamond, and multiple kdamonds could run in parallel. - Under the ``admin`` directory, one directory, ``kdamonds``, which has files for -controlling the kdamonds exist. In the beginning, this directory has only one -file, ``nr_kdamonds``. Writing a number (``N``) to the file creates the number -of child directories named ``0`` to ``N-1``. Each directory represents each +controlling the kdamonds (refer to +:ref:`design ` for more +details) exists. In the beginning, this directory has only one file, +``nr_kdamonds``. Writing a number (``N``) to the file creates the number of +child directories named ``0`` to ``N-1``. Each directory represents each kdamond. kdamonds// @@ -150,9 +148,10 @@ kdamonds//contexts/ In the beginning, this directory has only one file, ``nr_contexts``. Writing a number (``N``) to the file creates the number of child directories named as -``0`` to ``N-1``. Each directory represents each monitoring context. At the -moment, only one context per kdamond is supported, so only ``0`` or ``1`` can -be written to the file. +``0`` to ``N-1``. Each directory represents each monitoring context (refer to +:ref:`design ` for more +details). At the moment, only one context per kdamond is supported, so only +``0`` or ``1`` can be written to the file. .. _sysfs_contexts: diff --git a/Documentation/mm/damon/design.rst b/Documentation/mm/damon/design.rst index ee099d45fea8..18e9b42673f8 100644 --- a/Documentation/mm/damon/design.rst +++ b/Documentation/mm/damon/design.rst @@ -478,6 +478,8 @@ more detail, please read the usage documents for those :doc:`/admin-guide/mm/damon/lru_sort`). +.. _damon_design_execution_model_and_data_structures: + Execution Model and Data Structures =================================== -- 2.25.1