From patchwork Wed Oct 19 00:13:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13011229 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 600C7C43219 for ; Wed, 19 Oct 2022 00:13:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7789F6B008C; Tue, 18 Oct 2022 20:13:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 63DAD6B0092; Tue, 18 Oct 2022 20:13:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 32F306B0095; Tue, 18 Oct 2022 20:13:35 -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 0E8676B008C for ; Tue, 18 Oct 2022 20:13:35 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id E700A16093D for ; Wed, 19 Oct 2022 00:13:34 +0000 (UTC) X-FDA: 80035775148.26.9EE92E6 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf30.hostedemail.com (Postfix) with ESMTP id 8A14C80025 for ; Wed, 19 Oct 2022 00:13:34 +0000 (UTC) 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 DA44B6173D for ; Wed, 19 Oct 2022 00:13:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65B29C4347C; Wed, 19 Oct 2022 00:13:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666138413; bh=doMLACqMRf7Btau3UrqaKpcKCYcm6Tf1YUcPhkzG85U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZpkZct+MGl/kPwXvu5owcWOZkTGvEhusLDqCBwQowrbpD9aBaG8itl8JomQE8YCXL XI2gqeIiY6YRP/F9xg5LgXNgb9+GNp2IrPKGRziwUiUn02hZnADKe1fcnJa4UcUcc9 vi8Dox0gN3fmvy7qfXiKC3JbWIyqMl+/w2gPQ4cDBUQ3T8/LN0elYfmpWZB21B7GEj QM9Ms7R2PkVWgIVR3fpPx3bxekl938iVdVuf2LjQxWjq3BoH2wc6uolfc8och3iEY+ oRjOjkq4XIgXC6Uu7yIUpQettP1jGY3wGlm7mJPlzY67M6493Gby0Q68MYn8NESwSa KG8hFhX53do1Q== From: SeongJae Park To: SeongJae Park Cc: damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 18/18] Docs/ABI/damon: document 'schemes//tried_regions' directory Date: Wed, 19 Oct 2022 00:13:17 +0000 Message-Id: <20221019001317.104270-19-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221019001317.104270-1-sj@kernel.org> References: <20221019001317.104270-1-sj@kernel.org> MIME-Version: 1.0 ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1666138414; a=rsa-sha256; cv=none; b=OHiyr+h4DJTY2aoErGmVQyS7pmtbPogRQA/g2Vc9hrdVwuzkFj7d8ZA0jD3aX92T2jh5Tv fQchnlcZmtuh9CQBlnJjcAIoidmSz0I02wJEIpcX00qYfFktD3SR8xvl3cJOqg4qtGLhwh EEfVaoL/cCx8GE8coHBFk5blqpOUwAk= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=ZpkZct+M; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf30.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1666138414; 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=ObuZobCOmA+/1AfO4fDp+kqP8RZQD5GAAz/JGHNZMcM=; b=KAZ6JWZoWVLCD1TpW9Tq1ZVi1zNuSAOgwxtl64xFHoZGXptGHIVirvPsnsStNqAnpHUEJC rUbdSlB/3e/v4XJ0X1X7n2zxrBHAXr/sLCyiA3oKNOVxtPRPVdOGl5upj9B7BOT1Uc4qjl xYzgODQUayhz9HOzNm85BVw/ydX0/9k= X-Rspamd-Server: rspam05 X-Rspam-User: X-Rspamd-Queue-Id: 8A14C80025 Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=ZpkZct+M; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf30.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org X-Stat-Signature: igrxgam4kakxdjykdqasnykyydtsww3p X-HE-Tag: 1666138414-724215 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Update DAMON ABI document for added '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..7ba95e35b427 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_regions' to the file updates contents + of 'tried_regions' directory of every scheme directory of this + kdamond. Writing 'clear_schemes_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.