From patchwork Mon Feb 19 19:44:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13563005 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 6CA0CC48BC3 for ; Mon, 19 Feb 2024 19:44:47 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6731B6B0080; Mon, 19 Feb 2024 14:44:44 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 5FAFD6B0082; Mon, 19 Feb 2024 14:44:44 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 473C66B0085; Mon, 19 Feb 2024 14:44:44 -0500 (EST) 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 2A8DE6B0080 for ; Mon, 19 Feb 2024 14:44:44 -0500 (EST) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id C13AD160131 for ; Mon, 19 Feb 2024 19:44:43 +0000 (UTC) X-FDA: 81809580846.16.1A408E5 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf26.hostedemail.com (Postfix) with ESMTP id 4BDEB14000E for ; Mon, 19 Feb 2024 19:44:42 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=bGNlhels; spf=pass (imf26.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1708371882; 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=mx822/uT9dCM9whfDewBfHDOKnSk4kYdQB/NEXJRAIY=; b=rmOWDaJNJbI0OutU2JBJdFm/SKHhrcFWzZXgdH82EOSuI32k74DlM0h//uGM7kCWG9jDaQ gZin724HgDy43nJkWwOB4ioxZRziSm74llJJQ01H6W3yCn/ioMn5jsLi8D6YKPp4Zo2KYb z3mluNBChI44UH6Rd1TMgn4xo4MqPCU= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=bGNlhels; spf=pass (imf26.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1708371882; a=rsa-sha256; cv=none; b=8qwQ/BGS8ksTNVfiP8wyNGJmVqSI49p0YErZmzG8aHX82tHEFXu9MZYATCDD2K16SAdj0+ yXQMftv0CjGL5RPlw7amuIwzmUcMM/UC51x4xaYW6IoOp7BGYE6M+SVq8YBDd6P1+tQO1o iaPcILO2sfHhYIqu8AIDDxW14t3cVXc= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 6EB2960F77; Mon, 19 Feb 2024 19:44:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D968FC43601; Mon, 19 Feb 2024 19:44:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708371881; bh=zs+kw6wIVyudOx0IbIQ/KacaL4dSPBoyKxbciIuGSqk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bGNlhelsuaOaVxbpRiKvqbRC14Uit74+279k9YL6Eqrf/mCSZmQo5fNZC2Zn6ZDKj fOuHIHYPsbeH88zPeYuccArNi0m1YJ0i/565Ne57yKMD7zC9YblLyXJDvea9GrJE9O zarsCYLN1OJhuIAnD3y1Wdk3AH+hplMwdJZdNHr6z1HoCozoX1hXubFTIulZFy8K67 WoP3gxY4HmUpWAuqB7ShV6n116XZy2e+77MmGhGjyuu8r6sBQi6zh3VQ855a9VHTe6 L9fLcKFksI1kXy2qX+E6FftgAS1BP3hRJ8lpic3LqDJCpyKQz4yUpfjsvf6A3u7g6a NggL4U2/GvAuw== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 04/20] Docs/ABI/damon: document effective_bytes sysfs file Date: Mon, 19 Feb 2024 11:44:15 -0800 Message-Id: <20240219194431.159606-5-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240219194431.159606-1-sj@kernel.org> References: <20240219194431.159606-1-sj@kernel.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: 4BDEB14000E X-Rspam-User: X-Stat-Signature: n6gq5jahpt6855juisgdgaj9qyz39ei1 X-Rspamd-Server: rspam01 X-HE-Tag: 1708371882-359127 X-HE-Meta: U2FsdGVkX1+GqT8+Wemttmpm1wHgjo7TZ5/3G0km6sF9kmqNqPZhgtYkpR4mvcpRO3fv2VvSg+dp2aqFlrftjCoChIHYGApGNhy5/OMshk3Oi5a9aO4bLnZ3QL8RIcTnBtXKUOiWjuEJ/s6EE7CTLURJF5ri0pp6SLBEC4CGZGUuzovifewlFj2ELknvR1XOn687fXaItOM9iF4dNxxzZfsfvAoZQBwOvE3X5C3MwQB2Neg9upzuVJIqoIS45vlnwG7JmoGPkfbl4dKpYOl+C9dKUO8bL4U2nGPPvhQA2S1srkY6EXgorYlxhbbtIQspo1UwcB6XOBMEu0wNsY1qVeQxTQO2x+n9pZrPIMIeO7bx4v37uSUAbuXgDKh2Bv6Kig72MXO57vXX0Dj5l2kEI42H76Gcdou6/QSUFfurNQvHyzZm8DDYnuGL0bWTM6nOgOkuKWIc2XX9WGtrgz/NdqTuo+uOmeK7GyLM6gZEK6KkGi90o1cRf94aWadRh0fcgFykqwIjWxJcjwz5bC/xKQO0+CodsejHOBilw75L/qZEiE7h2ZF/GmlyZdC8SevOh0Mxt8Kqp73T3DQd5Ug7zNdJONCqWZxY+b0SdAfdTf5RQB7X8FZYXpxPV6TGnLwxRFap+C7WlHVPwaeJq642NRxc+2ATVbcA6v0sNVOWoAgxco14THQ38RBJGM6a0AoSk1gczeLyKwlm3AB5HlZdxs5crlZkB2hwRgF9qLWchRQ5H8ghksZ77muFCkaPF1/XnJL2lK4A2fVGyUWvXyHcqkKVS572/sz+CM6IK8L+x12v/iCqvtpCyQqFC1QItCzWpPtSJeLlo//AjrgOY+I/PDotNDfrshsO/VpQa625L7WLDlX9mmgQieBx0glMWiuFNAGkApcuXxxH/jC5sVFA7yFtuske9xI7byLkXytlWPiW3HTkSGacJHVOKeXeb47SRErBE8SfM8InFqQWH3X fBwLw8Hr 0SNYj 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: List-Subscribe: List-Unsubscribe: Update the DAMON ABI doc for the effective_bytes sysfs file and the kdamond state file input command for updating the content of the file. Signed-off-by: SeongJae Park --- Documentation/ABI/testing/sysfs-kernel-mm-damon | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Documentation/ABI/testing/sysfs-kernel-mm-damon b/Documentation/ABI/testing/sysfs-kernel-mm-damon index bfa5b8288d8d..a1e4fdb04f95 100644 --- a/Documentation/ABI/testing/sysfs-kernel-mm-damon +++ b/Documentation/ABI/testing/sysfs-kernel-mm-damon @@ -34,7 +34,9 @@ Description: Writing 'on' or 'off' to this file makes the kdamond starts or kdamond. Writing 'update_schemes_tried_bytes' to the file updates only '.../tried_regions/total_bytes' files of this kdamond. Writing 'clear_schemes_tried_regions' to the file - removes contents of the 'tried_regions' directory. + removes contents of the 'tried_regions' directory. Writing + 'update_schemes_effective_quotas' to the file updates + '.../quotas/effective_bytes' files of this kdamond. What: /sys/kernel/mm/damon/admin/kdamonds//pid Date: Mar 2022 @@ -208,6 +210,12 @@ Contact: SeongJae Park Description: Writing to and reading from this file sets and gets the size quota of the scheme in bytes. +What: /sys/kernel/mm/damon/admin/kdamonds//contexts//schemes//quotas/effective_bytes +Date: Feb 2024 +Contact: SeongJae Park +Description: Reading from this file gets the effective size quota of the + scheme in bytes, which adjusted for the time quota and goals. + What: /sys/kernel/mm/damon/admin/kdamonds//contexts//schemes//quotas/reset_interval_ms Date: Mar 2022 Contact: SeongJae Park