Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6635884rwb; Mon, 5 Dec 2022 15:33:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf6eNvMdnhV6VO628Rrzk+UvxSNSHV4A63HmIMXdUgsXkFjk5nPt4cr/i2OREPsv4Xd1RNzD X-Received: by 2002:a17:906:4914:b0:7c0:93e6:9f18 with SMTP id b20-20020a170906491400b007c093e69f18mr23791928ejq.350.1670283211261; Mon, 05 Dec 2022 15:33:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670283211; cv=none; d=google.com; s=arc-20160816; b=SdHM3/UEg5926uiQAZD5GJNrhhtUaAqGziCmUM6DP1ba/e9owF6y40RWd5LK49h+oJ 7HmYmmU9wc2tTJYyoqDyWztSg8vNwQO4Dd8zX1kBcPYQbH4HxyvVsUu8ASRSUBCO2xoQ jBUG32eHuhB1NX8a6QuwwTi9LpPTIO4f2R8GlBOj5SYFNLv+WY7U74JuCBcit5K5BRkx CHb4ws2GR8ND/yN5ZmG/Ft0B3Iynve/cj2NNhqBlY3B6NUG5ivWnlxAu0kjhRhJVmCHt YCoH52pwuRDvQwyXIaPvdFn72w3qn/ypPE1kZFWWRZ4eOLUL7wDRCmhhUnKtccZqXGD7 V/+Q== 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=TLb5XnMDpgcYHy4frIqgmGqxPwmmsgK8DLbiJhJicSI=; b=h+k5M2JN35pfuXs9ZnIFx4JaKsTO1VJY3X0RNW3Bt1Asz+Hs/LMwb05bq+Vq7ID5ls dqsM8h4fRc9cyR+3RB+8ePt2EX1JlvWwWJqfpG/yAV3tO4r0v+9Pna+M08d1E0ZgNsxy ocwi77wGy4piia1nRCTVxenlSD+mwvlwcubRBxwHN7LydLcityQc9mbqYarZkFY2fo/F c7vgor522ovSrRIJmCN2uo7JW0aAvlk8PHLfp4Bdwraf/Ovrl8IV5gxSRO0OPFRO106w RDawcT+y8Zeovg8WcyYJlZnxh8znoHPgtrERfe0w//cTOivk8GJDrH59L6Bh9ayzupep lyfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YxuueYy6; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o12-20020aa7d3cc000000b0046277d2cb0csi550125edr.470.2022.12.05.15.33.12; Mon, 05 Dec 2022 15:33:31 -0800 (PST) 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=YxuueYy6; 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 S234045AbiLEXJs (ORCPT + 79 others); Mon, 5 Dec 2022 18:09:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232897AbiLEXIr (ORCPT ); Mon, 5 Dec 2022 18:08:47 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFAC21F2D1 for ; Mon, 5 Dec 2022 15:08:43 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 7B909614C0 for ; Mon, 5 Dec 2022 23:08:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8DF90C4347C; Mon, 5 Dec 2022 23:08:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670281722; bh=wsgdvbT/35uxHZu2m3onVtLPaAGvmOTx9y/8CzTLOOI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YxuueYy6qYjuBFiqjlcV+iqd+nixVioCIjejoFvrmzrck0sfJmflNmEaibMAmS2cK saItIFUp+3KFIBvFbvXO4X8DAPx0A0haX9DFhplRRGpPVLocjF4JtbjhTiJfSzc5n4 KC1AWOFwDyT8pNFPPVXWgdQltdhDCdQDIMAQ0ItUrQJ3WeN97A/G/7xjUJBYC0ICV8 C/RsAqjJmmbNvecUyMc3T5YA6zt4xMvYGDdAhb8g/FhdBcgTB26jeXdXCSFNBao4++ CMNsro6B6M1cmI2DeQVZyu4oEdlepLiwuFz1f/NVBj5ideR96UWuwDJTUQPaD/+9y8 H+hLjnRCAI1Kw== From: SeongJae Park To: Andrew Morton Cc: damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org, SeongJae Park Subject: [PATCH 11/11] Docs/ABI/damon: document scheme filters files Date: Mon, 5 Dec 2022 23:08:30 +0000 Message-Id: <20221205230830.144349-12-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221205230830.144349-1-sj@kernel.org> References: <20221205230830.144349-1-sj@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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 Document newly added DAMON sysfs interface files for DAMOS filtering on the DAMON ABI document. Signed-off-by: SeongJae Park --- .../ABI/testing/sysfs-kernel-mm-damon | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-kernel-mm-damon b/Documentation/ABI/testing/sysfs-kernel-mm-damon index 13397b853692..2744f21b5a6b 100644 --- a/Documentation/ABI/testing/sysfs-kernel-mm-damon +++ b/Documentation/ABI/testing/sysfs-kernel-mm-damon @@ -258,6 +258,35 @@ Contact: SeongJae Park Description: Writing to and reading from this file sets and gets the low watermark of the scheme in permil. +What: /sys/kernel/mm/damon/admin/kdamonds//contexts//schemes//filters/nr_filters +Date: Dec 2022 +Contact: SeongJae Park +Description: Writing a number 'N' to this file creates the number of + directories for setting filters of the scheme named '0' to + 'N-1' under the filters/ directory. + +What: /sys/kernel/mm/damon/admin/kdamonds//contexts//schemes//filters//type +Date: Dec 2022 +Contact: SeongJae Park +Description: Writing to and reading from this file sets and gets the type of + the memory of the interest. 'anon' for anonymous pages, or + 'memcg' for specific memory cgroup can be written and read. + +What: /sys/kernel/mm/damon/admin/kdamonds//contexts//schemes//filters//memcg_path +Date: Dec 2022 +Contact: SeongJae Park +Description: If 'memcg' is written to the 'type' file, writing to and + reading from this file sets and gets the path to the memory + cgroup of the interest. + +What: /sys/kernel/mm/damon/admin/kdamonds//contexts//schemes//filters//matching +Date: Dec 2022 +Contact: SeongJae Park +Description: Writing 'Y' or 'N' to this file sets whether to filter out + pages that do or do not match to the 'type' and 'memcg_path', + respectively. Filter out means the action of the scheme will + not be applied to. + What: /sys/kernel/mm/damon/admin/kdamonds//contexts//schemes//stats/nr_tried Date: Mar 2022 Contact: SeongJae Park -- 2.25.1