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: 152124 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp1451172vqb; Thu, 12 Oct 2023 12:23:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFuYSKk9DhpObpE2eenc1tHnWs/k01bh5mpBvwzyJOHJHHXPZhAuIxkMs+wtbCZ04ekfZ05 X-Received: by 2002:a05:6870:3329:b0:1d6:4c63:7ba9 with SMTP id x41-20020a056870332900b001d64c637ba9mr26631173oae.3.1697138600297; Thu, 12 Oct 2023 12:23:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697138600; cv=none; d=google.com; s=arc-20160816; b=FbIGYzD6LNT+orze6+JmDO3d9T4G4eCpZqZmZzngZR3iTHsS/rXCEtMFlByGWgRQlP rqhAvdrCY5aN5ftxe37yxrhGRWB5c/kmxASnYRNa2Shc8PNwTxr+LwfQkMPqITcFy6Fg 3Xa+5643/ze0YPeNUU9dYdWXzGpoV4LHMSPT0OujWoKv687B1MWPtBH1Ve28/76ctjzH 5LGb+CzU6B6HoeAliCPuqA5cNBVn8rYS9oIcWE6ZfSZy9KPVIaa1+SAYp00EjXiG61Hz 2H8byyo1T/oBZ5RMQFdk37rGcLRosCATAl67IaBfTszHajOBX4tY/j28RaTI8vAdGczX fCKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wWqb5RF5u3LfoSr5/spsiKSMAyxjfAb4rLdwv4pzIqA=; fh=jKijsxc1Z2CHKVFf4S4lB42jMLcn6gTpewOn4Tq1/VM=; b=PaCbvEVIUOB6WGGzuuuEEYT0tjdeJJNNgscMiGNfnZQaDltoLrfcuhHRsraXeUGDrb 4y/BgyJjKXSXovYeURE1BK85V1AeDIdD41Iyiwq6ubg6xGPvVcwvIlxk/VVp5AC5GKTT PsWTm9f5TkL2OBKEy1Olzi3pk6mFI4JCCTjiUumVWo6FDJNo64vaqw6BkwtQlOC5iVTN V3YpaGKwEdFzhvPNVORHhZ4byJbRlSfLrwe3eMDQB/GnGU0V997OE7n5FKkbLGmK7Mgf IWJC0vmGsxGxGAPkTB0LNNjFOe/AMOFFSUZL0jnP65kE2me88wDBMUX2NVsepmwA+2IP CyFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bJGzlPrj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id w190-20020a6382c7000000b0054402b987f8si2802129pgd.605.2023.10.12.12.23.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 12:23:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bJGzlPrj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 999058230CD6; Thu, 12 Oct 2023 12:23:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442179AbjJLTXK (ORCPT + 19 others); Thu, 12 Oct 2023 15:23:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442138AbjJLTXG (ORCPT ); Thu, 12 Oct 2023 15:23:06 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BC74B7 for ; Thu, 12 Oct 2023 12:23:05 -0700 (PDT) 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 12 Oct 2023 12:23:19 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779578804583159561 X-GMAIL-MSGID: 1779578804583159561 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