From patchwork Thu Oct 12 19:22:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13419678 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 BD713CDB47E for ; Thu, 12 Oct 2023 19:23:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4CBC980010; Thu, 12 Oct 2023 15:23:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 47DDE8D0002; Thu, 12 Oct 2023 15:23:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 31D9080010; Thu, 12 Oct 2023 15:23:10 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 21DFD8D0002 for ; Thu, 12 Oct 2023 15:23:10 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id E2710408A5 for ; Thu, 12 Oct 2023 19:23:09 +0000 (UTC) X-FDA: 81337782498.12.F704AF6 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf03.hostedemail.com (Postfix) with ESMTP id 0115120028 for ; Thu, 12 Oct 2023 19:23:07 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=bJGzlPrj; spf=pass (imf03.hostedemail.com: domain of sj@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1697138588; a=rsa-sha256; cv=none; b=a5KufgtylCtfY1f41/4xxEhRmxq6o1eNuYQP97qC4zM3mSMi3babE9IKAe34NAGfxlf+eK DJEQ0IHPdNDZl1yMZrXF3v2/JUvxReLl6YWPtg5LbcoqCGeqdstNFBZ92AYyDNWHdDgVm5 1wZtNEUAp6fxAPoncVDX2btD6EbfiSo= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=bJGzlPrj; spf=pass (imf03.hostedemail.com: domain of sj@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1697138588; 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=wWqb5RF5u3LfoSr5/spsiKSMAyxjfAb4rLdwv4pzIqA=; b=n8FhjjwTTN7o4f0zjy0iinxas4JSmmM6ZdtvinvFUk1mRS/HMeUdLCArITLZOQQwLi4Nai 1q+qUFUw8/yFB/5jv28yevAlhCdk0QoYEUOwNvyWqxmGTDAiWTDjbavbs4dM9z/ywL+EoN hYB9CtRBxG2o8dDILhkjHgVnBXr6duk= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by ams.source.kernel.org (Postfix) with ESMTP id 5185CB826AC; Thu, 12 Oct 2023 19:23:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D2EBC433CB; Thu, 12 Oct 2023 19:23:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697138584; bh=PRMNaWi4eLwEr1ddca0C6ItteLnRKdFxcFRimSLMbuo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bJGzlPrjaiUIBuFyajQ5Ml/qrVcEGh+SjVnuKYWNiD50UIeYWhykkEIUdu7FThB0U c4m724zZPNDNhN7SMT5Er7OqE7Q+KiPopSS/RZYPf+PaAwiBl0DzTq/JoY932IHK46 HFSs2q3SdwTv8OupysoFHIsHs/Cp2/SqkQielW+BX05cFNdUVj3+s9E2Bn+181AY31 MSV5J0+jmQ5LMDdc850GF9fkma0pIr9lJ9CMwmXWO7XXQguzHCfFcQRleQZNc5kCLR Ibf04a1T8riDcyY6xMyNg87yq2iYqDql/b2zCzblzfyN50l8gc1fetjrFtVwpzMkZH 9LUJGAQEyISjQ== 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 3/3] Docs/admin-guide/mm/damon/usage: update for tried regions update time interval Date: Thu, 12 Oct 2023 19:22:55 +0000 Message-Id: <20231012192256.33556-4-sj@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231012192256.33556-1-sj@kernel.org> References: <20231012192256.33556-1-sj@kernel.org> MIME-Version: 1.0 X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 0115120028 X-Stat-Signature: 45t77qcrinkobgfoqwnwdi3ep5kparfb X-Rspam-User: X-HE-Tag: 1697138587-785098 X-HE-Meta: U2FsdGVkX1/MxS385o2kW3JrjGkeO3kvJypfR05jZhSWUrptPSLB8mYL9jZ0LpBbPS4M5xfJmOGo8QVnnR5G/nspVi+FFw1+r983OiG3/EFGvwXsLNji4+GfcLNuD26Gdt+7aEXUqHsHVlUb3zCkgs4Vo4giReweo+NFP+YnwgQ3t0sBf2zDMbsSsvydRyZJ54T7KwV/Txp9wr7Gds6SIVU/U93RC2af0ABiH4YXFufTa+/tYwD3J9B45bSuzbkMWRQt+AEI2eLHFQEpj5ffk1h9cfhhNc2kDdE8OEJAjHyRtuzSTcBjkt6773be3RN4k2n82J5P4WHdepjvwZSi+7JEMzeC0ZBCqn+a9vUR0l7C+4Fo6RscfEW5CHOdfwUN/MtFvcfGCZTBh3xmUlkyk78vHYzUUzs2SCMm4gQtFbde/oycfBcilC24fNwNamaH7wXW+CHM0JCdrEt1Z18/aRipHwpZKU52k+Cr4eu72aBggkvZ0s0rn9P1cA50698JZS+I8vCByyS2VQGkWPa7PihtVVsgrvwK9NgaamNJeI5ux7RQq8/2UtCezlpAN0C8yqPSAd7MJz1UvyZOD4J332V24ftLib746Yoliy7v7oS6W/PR+sLHcri0gbV51uKQ7LrTrvvDboW2pMvovTGFc6a0lOX2kR/5MBCjI90yUtaTuC5z+AcCBQAvhrLwxIHW7MIFnwLFYjNjrxyTDYcTJV4y3FYsfu39xc9ApLslcDf0dUheKahuIvEm+H7yG9ZB9hOWiSYkBCSfEFXx9jx0Y8Z6akpfo56xAHS9kJwm0AzMLfKIF7EE/6hrfYDfQ8AwFH1qTJwhACCCyy4k47fMYeXU9v7MATYvjpwHbtz4W5s84GhixADqiQLNHTlxyGuplcsHemA4H/USPDdO17od9i5RRBv0w1kcwXorrlP1/TobPbwn7VbnLdLKeU/PubSx3hbfw5N6y44rJuxKC+c YV8p0B0n GKUmiAZtnnBdK8esy6vpDNqeLbz5jr/EG7QoS2vJbeg9c+xkm/Y72yiDaVi+BQKyyuP0TafIQLwaLP5r/TdcxmBjM/Ba07mcvqwiYd6lMjnygN6PhQ0WAIuPCUCG/uVGB7TQtQpiD5JuJyTcnFKWxGg8o7phsvv0+Z5EvnqpLDu7Mv1c+ZkzbYhH6fQoJ0H/qo0XSde7xUvbHPPsVsWupeYitIVDjTRPQNjJPhbUbNum1kX105p4XGYlCkA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000027, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: The documentation says DAMOS tried regions update feature of DAMON sysfs interface is doing the update for one aggregation interval after the request is made. Since the introduction of the per-scheme apply interval, that behavior makes no much sense. Hence the implementation has changed to update the regions for each scheme for only its apply interval. Further update the document to reflect the real behavior. Signed-off-by: SeongJae Park --- Documentation/admin-guide/mm/damon/usage.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/admin-guide/mm/damon/usage.rst b/Documentation/admin-guide/mm/damon/usage.rst index 8507a6e45d86..da94feb97ed1 100644 --- a/Documentation/admin-guide/mm/damon/usage.rst +++ b/Documentation/admin-guide/mm/damon/usage.rst @@ -432,9 +432,9 @@ that reading it returns the total size of the scheme tried regions, and creates directories named integer starting from ``0`` under this directory. Each directory contains files exposing detailed information about each of the memory region that the corresponding scheme's ``action`` has tried to be applied under -this directory, during next :ref:`aggregation interval -`. The information includes address range, -``nr_accesses``, and ``age`` of the region. +this directory, during next :ref:`apply interval ` of the +corresponding scheme. The information includes address range, ``nr_accesses``, +and ``age`` of the region. Writing ``update_schemes_tried_bytes`` to the relevant ``kdamonds//state`` file will only update the ``total_bytes`` file, and will not create the