From patchwork Tue Oct 10 01:26:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 150434 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp2216600vqo; Mon, 9 Oct 2023 18:26:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF6OJUwXLqzg2rGGvRrLKZbbmB/2H85DDuyka15wIZynXTCQt1gf7LDdIaR8NqfQ7yX/s9L X-Received: by 2002:aca:120a:0:b0:3a7:b4e8:563e with SMTP id 10-20020aca120a000000b003a7b4e8563emr17458875ois.38.1696901206669; Mon, 09 Oct 2023 18:26:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696901206; cv=none; d=google.com; s=arc-20160816; b=U9y+2LfVT9S/Mg6rUVR/zJ6Df+6hKvUV9oGSJp72sX+yZBbkVB+3yHPZfNRACLcgz6 rcurN+EvVP/OZkHtR0PiX0SP+WmArEyAjEOUlka0NfALNC/1iz8uekdnK9Wvo0rTln7X byRBovyAQ8pbot+RI6adMqICH3/yLBS0/emqVDcOcoY3/cjV2gOVkGqBVqJS4acp18b0 2eBwd2mSOUTZOMPUJYA+vzQXa1fiyGMPvsdJ7TOwlicTevJRGmncELG8OTIcoDncXq7B 2AVEXSXV0UCLLAWFQ30nf4puFQNVIxL+22NIYAlwnP+CnxOiYQTQU247M8JiaA1eIdZ1 N/Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=wWqb5RF5u3LfoSr5/spsiKSMAyxjfAb4rLdwv4pzIqA=; fh=cjv8+TZ63Co1l5yw6pZdw5NyP6++sWCb693WxBRE0rY=; b=LKvhidHGWVAfg15ytETGjMIbjF8ODsFeFDcRHzgYX123php2PlDQd4YSSk3JrldTeM Mb4d0rG8wTLp/KhUNSqqXn26j1HcSU//8UzTYlSofl55H14IlyWkK0+K3FzMimvngZAt qTpttPRjbK8i+v+sco4E1QASLP9edEcJ217yweFHvB9pRzQ8lKWTkzBmaduuGVJWFrvM CnQqkWzHMWrzNUxlr03rGHMzGDC7gR7vZFGcSKomOSxqiRByUbgdBs2+eoQcgl88FMmU X+DM3FuD5M/tQHz1hJ81L/svNG3JMp2yM3nERRKSnfT7Ga9zHclFDkW1Jw9BDbWCGH2U 4tag== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=DinnA0mI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id w70-20020a638249000000b005775a4a2960si10481342pgd.261.2023.10.09.18.26.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 18:26:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=DinnA0mI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 0F6BE80ACFF3; Mon, 9 Oct 2023 18:26:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379302AbjJJB0R (ORCPT + 18 others); Mon, 9 Oct 2023 21:26:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379272AbjJJB0J (ORCPT ); Mon, 9 Oct 2023 21:26:09 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66C499E; Mon, 9 Oct 2023 18:26:08 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93F91C433CD; Tue, 10 Oct 2023 01:26:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696901168; bh=PRMNaWi4eLwEr1ddca0C6ItteLnRKdFxcFRimSLMbuo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DinnA0mIa0xXyxJyvyJPWRn0gfhZL4OuTtZEyU3zDNJ24JTTZMqczCXaW2VxkR2HD 9/SCzw1uhvAFQOO25rh75JnffxCNj6eyVIgAoSbetEBVXf7UZoouWyNpUYRhKPVzFL hsXezDNiIK/6jDuO3EJf2XG2trq4vlFHii7KB+umOOp6rlfwtGkO7RikibyFV9WOgB fBwpcMEJb+9ze5Mn8+zY9PMJoZiDp0LrwO/3PNxkdUjxCJ2TVeuVbNIBjl8+upxgTH Mag4Z3w65XlP8fXvzuI0flSiII5ELHCFKiSEEtuzTZqS65EarNJLY/SLDy6g5Xp3Cg LgwoNZvdyVH6Q== From: SeongJae Park Cc: SeongJae Park , Andrew Morton , Jonathan Corbet , damon@lists.linux.dev, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 3/3] Docs/admin-guide/mm/damon/usage: update for tried regions update time interval Date: Tue, 10 Oct 2023 01:26:00 +0000 Message-Id: <20231010012600.83140-4-sj@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231010012600.83140-1-sj@kernel.org> References: <20231010012600.83140-1-sj@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=2.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email To: unlisted-recipients:; (no To-header on input) 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 (howler.vger.email [0.0.0.0]); Mon, 09 Oct 2023 18:26:44 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779329880003736837 X-GMAIL-MSGID: 1779329880003736837 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