From patchwork Tue Nov 1 22:03:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13919 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp3234682wru; Tue, 1 Nov 2022 15:06:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6HTJ/PWXSUVx6Fu7u/JNfZlCBVUEPhSaQOlIcNObpnp/563AKkMab/KEc1Z+NE4FAQ0l5R X-Received: by 2002:a17:907:2719:b0:782:b261:e9eb with SMTP id w25-20020a170907271900b00782b261e9ebmr21094194ejk.104.1667340361051; Tue, 01 Nov 2022 15:06:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667340361; cv=none; d=google.com; s=arc-20160816; b=d/i2RL5wY3veSP/9HquzJWoa+SjwyDRF3J4doTO0u7acdm3kixo55TnHCVNfVRwaKE 6fhJzWxHn+HhNHrZC4zVkeWO3ZW0CX8q9fNNap4/V/L93eW4IOmKmc67qTbZKytY2Ldv g94vK1gzonvkVRQziX0mcSwM1pytFcZE41JyVzdbHNbdR5qMV7AQM4+gnQEIIFkG/7ji ddrb9Xmmd7IJj6YwI61J/FFgsAycIfqs/hHQ++8qbP5U9xkhbDPGrZSxqzG77pi4FwRM gr/rhG07eyLQO81iQbGk/7V5lb2OIUNAFnvjGX4EzuoMaIoDBq0zqDna2WwMnQYSd7mF 0DWw== 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=1xE6LwUt8JFEW6cHp10wzKw8CtFRQTz0icIitbX2c/A=; b=O1YLPR8KEFoW6UrEobr+M0Cfy91gOMF7LzAk6Nj611wC0T3vAZeSxhK55Qxlj4eE26 jVjIO+ieqpBYNeiKpz4x0iGkgo6OOg+z+vBy2/jEjNPBH9rpMOQSfjZbXfGQ1vC3/cY3 IPiEUyhcOiBPLGR0SQfNQezPpwDxcx2l9nhcGIfBjO1zcI9/RRIZRef59ZAeswGNbzrn TB8EjUf6rsuGJ31Xchncy89PkYxmPg5a4ZGDZ0jOqYsat/UYti6wznIO0Swq7Y5UCYM3 Ljr/mv/o0yNU2XazD/cb4sQ77pWYEakbcJwO1MPN2d2CCq+zU/0OpMYpul6tZ58j0yPt FQKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=d1CFkxeL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb30-20020a1709071c9e00b00783645da4e5si15175334ejc.582.2022.11.01.15.05.34; Tue, 01 Nov 2022 15:06:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=d1CFkxeL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231200AbiKAWEW (ORCPT + 99 others); Tue, 1 Nov 2022 18:04:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231168AbiKAWDl (ORCPT ); Tue, 1 Nov 2022 18:03:41 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D08F363C7 for ; Tue, 1 Nov 2022 15:03:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 8B53DB81E27 for ; Tue, 1 Nov 2022 22:03:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DDF57C433D7; Tue, 1 Nov 2022 22:03:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667340218; bh=NEW3Do9blxs64Lr6AHVrrQw2/a54TWTrLKMR+YeGsds=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d1CFkxeL+dqHmMQeH8SDS0lCGzwBkhf2aHgFfgMOEqNRvCflCYHQI12Oy5F8avJc3 Agchqu719Zx4qxQ1F9QY9Fmuu9lScWN27OlP+GSN8ENks8z6FLxr7PFcWxFVcFTwgj gA6AGQFnZ8ZCWiBLhAIvR1411jLd8UqsVpR/3edr9frW/3xlDwPnoik0xeNFjhX7nI tGGbpkm6EWWV+g9CuX2snpTvjQH70mGLcHELAUY+wfCG2fW3gocNniE8fHFu0uWy/l y+4kDCJjON198FMyUp6iPw83AtZSxfKqgh9DjTGVQG83gSze8ypd8Xtc/pKTHBXRCf WoKgOp7KKNYKg== From: SeongJae Park To: Andrew Morton Cc: damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org, SeongJae Park Subject: [PATCH 8/8] Docs/ABI/damon: document 'schemes//tried_regions' sysfs directory Date: Tue, 1 Nov 2022 22:03:28 +0000 Message-Id: <20221101220328.95765-9-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221101220328.95765-1-sj@kernel.org> References: <20221101220328.95765-1-sj@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748333086126852392?= X-GMAIL-MSGID: =?utf-8?q?1748333086126852392?= Update DAMON ABI document for the 'tried_regions' directory of DAMON sysfs interface. Signed-off-by: SeongJae Park --- .../ABI/testing/sysfs-kernel-mm-damon | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-kernel-mm-damon b/Documentation/ABI/testing/sysfs-kernel-mm-damon index 08b9df323560..13397b853692 100644 --- a/Documentation/ABI/testing/sysfs-kernel-mm-damon +++ b/Documentation/ABI/testing/sysfs-kernel-mm-damon @@ -27,6 +27,10 @@ Description: Writing 'on' or 'off' to this file makes the kdamond starts or makes the kdamond reads the user inputs in the sysfs files except 'state' again. Writing 'update_schemes_stats' to the file updates contents of schemes stats files of the kdamond. + Writing 'update_schemes_tried_regions' to the file updates + contents of 'tried_regions' directory of every scheme directory + of this kdamond. Writing 'clear_schemes_tried_regions' to the + file removes contents of the 'tried_regions' directory. What: /sys/kernel/mm/damon/admin/kdamonds//pid Date: Mar 2022 @@ -283,3 +287,31 @@ Date: Mar 2022 Contact: SeongJae Park Description: Reading this file returns the number of the exceed events of the scheme's quotas. + +What: /sys/kernel/mm/damon/admin/kdamonds//contexts//schemes//tried_regions//start +Date: Oct 2022 +Contact: SeongJae Park +Description: Reading this file returns the start address of a memory region + that corresponding DAMON-based Operation Scheme's action has + tried to be applied. + +What: /sys/kernel/mm/damon/admin/kdamonds//contexts//schemes//tried_regions//end +Date: Oct 2022 +Contact: SeongJae Park +Description: Reading this file returns the end address of a memory region + that corresponding DAMON-based Operation Scheme's action has + tried to be applied. + +What: /sys/kernel/mm/damon/admin/kdamonds//contexts//schemes//tried_regions//nr_accesses +Date: Oct 2022 +Contact: SeongJae Park +Description: Reading this file returns the 'nr_accesses' of a memory region + that corresponding DAMON-based Operation Scheme's action has + tried to be applied. + +What: /sys/kernel/mm/damon/admin/kdamonds//contexts//schemes//tried_regions//age +Date: Oct 2022 +Contact: SeongJae Park +Description: Reading this file returns the 'age' of a memory region that + corresponding DAMON-based Operation Scheme's action has tried + to be applied.