From patchwork Thu Dec 19 04:03:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13914452 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 AF488E7718A for ; Thu, 19 Dec 2024 04:04:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4BCCC6B009C; Wed, 18 Dec 2024 23:03:54 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 46C846B009D; Wed, 18 Dec 2024 23:03:54 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2E7DF6B009E; Wed, 18 Dec 2024 23:03:54 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 14AEF6B009C for ; Wed, 18 Dec 2024 23:03:54 -0500 (EST) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id C6B0516134C for ; Thu, 19 Dec 2024 04:03:53 +0000 (UTC) X-FDA: 82910364516.11.F12E0D9 Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by imf24.hostedemail.com (Postfix) with ESMTP id D9CAE180010 for ; Thu, 19 Dec 2024 04:03:47 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=CKqclcbh; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf24.hostedemail.com: domain of sj@kernel.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1734581001; a=rsa-sha256; cv=none; b=N4zEk2zT3s9neZj7jzcvllxBebIm1tMk7g2y/SD6GM80u8Uv0kICYnZXH8lcTlKtPYJUvL 5V5FpOpxowLYHcSC04DA4YWtAQgKmuHxspsRnk/DCkKEizDS3rTfTKmndHEvAAooxfYuMs bt3Xki4usbtUS4vPzZg1NSjMIb0KF04= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=CKqclcbh; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf24.hostedemail.com: domain of sj@kernel.org designates 147.75.193.91 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=1734581001; 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-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=O39CKp9QO8JPIGatylosE2HMFuIWlELJlkFwGQH7FAk=; b=VUTXoxNxsiSyTZamcc7Zp5Yu8J5u103PTyzKkVfiHgqs4IVnJjAMsCSojRymcEyJSoCcMI K2/1B9Mk0xGMRhz/nFMmph6EX7Xa4qqFB5Wh/lVS5UCswxzPCNWNClynrSEGaR5vej1TmY Z9vEsuE8oUkOE5uZlVHw0s5tKtNmTqQ= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 0D780A41BED; Thu, 19 Dec 2024 04:02:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23831C4CED4; Thu, 19 Dec 2024 04:03:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1734581031; bh=E3nDxsQnOnucfR2JdCI6gXATVIHYtLFHhB+wDRP7hiA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CKqclcbhPJF7kqBVAm02cPqjr4b/PMnD/U8sX8WuWogMdXCphEjY/C16CebDzcjru kTMexC+Xk4wt4g4iCGSKjnD55BuWbTx2Srh895iCRkEtu8KwyGlZotxN/aa5YN52Jx PX1fSqlm9ch6RFmtWBib6ULcj1XvHxKpDc4imqoayb6+7fU+BNTerh+BeKcrkSc3oS 0X/qiya1fv4+jeRZ+xaBZbU4RJUVESPorK2aQqCBtWrXEcN1mBt1EdhELOWm7u7HRe 1oRi48nnWsbLVPsW9HbOVy1++GfiNi9zI8yeZjsreEAAI+r9Cozk63ZF6XmQ/tKO2E JA5HzqucfzhJg== From: SeongJae Park To: Cc: kernel-team@meta.com, SeongJae Park , damon@lists.linux.dev, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 11/18] Docs/admin-guide/mm/damon/usage: document sz_ops_filter_passed Date: Wed, 18 Dec 2024 20:03:20 -0800 Message-Id: <20241219040327.61902-12-sj@kernel.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241219040327.61902-1-sj@kernel.org> References: <20241219040327.61902-1-sj@kernel.org> MIME-Version: 1.0 X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: D9CAE180010 X-Stat-Signature: aaubsrzp8qstg8cztj71pcyysh7ktxgr X-Rspam-User: X-HE-Tag: 1734581027-432424 X-HE-Meta: U2FsdGVkX1//eNAH6x+/4BjroxuiySGr/WXk4uNmGLLyUyYecMxxQv1VH3NNaJVTx43AbroMjWBQAsTf1z8dcsmv7J5xPhrea2Q95b8kVEUSPo8tOtXglPaEmLt+85Z6EpvnT8uCP2N7INC+Y01qDEZqpd/X4npRTp34Vdlvz93BIbnwhDDK11DQ7lUdWym0+sjgTaY0Z39piwFfDTWiY/uAprFMbyiQzwX2aHcxl9WT+RicS6MBrXxN1akK1qBuRzRoMuSCZIxvF1LXDDPWMke7GK2zQQy5h6qa/N4NE64lWSHgHh0CNpqNLnGBVdic9DgtjtCpyot79m1UZSk8qcchjPkhETh4ZP530IRQ1/cIO6s6w1O1urJ4v9Kc8Cbl1u+TYa6hcttFmgE+Ai3mkIO6kvRZ+Y/4x7/WIuz+Xo2+um0W+7Ws/21simgWMKySPP/5fUtuujVtCn6zqlXfKm8QddBBXUbr/17IXBClfdjO5uHdAIQPvy4g4dkwlkJUsdW5/OlINtaITcMjtISc/70t5cvnEa8N+JhKVBGyII0FqUHDkQaF5H/wTNjpUH2wEjkJStt0KL5wyOsrev7SphZm1nbJ/ypij0sZ57KEO1MOkZsL4AunjF9Erh0sXzq+rMWWC/tSur1om09mTXdBkH4lt39AJQ2Jd+5Eq9KF6xjkQTRCY28clRy3541dwmlBixNJOkfURiyVV41ib00FV0x2o0gAMi0krX3JdZ6ZMgCx65wNoKsAd+QE9dZ8IEwOeiRPnYtgcnPh1CCor7Tn4tLK5ZDa15NmGqXUA+QE50UbM3PeuBm6upg6ZlHMOK1cvSYlSHm8cfD7zIFaA6WfUE3s+5zk3RvwHRcdQAKD+RcP2CInrHxdWESwflQxrGJCEEvRow1S1/iXu1PX5LzRDPyEtLbqE9ht57b5usxWzL5i4uhEwI2DmktBzv8Q6jBdTRa7/hlCDUZe2jvhEqT chXqPmqX 5nvG10zyHCe5ebxyFdr9PEPhsVKDuDRBHeDYD3EbJLZYYiFvPCPVRHFhhGqE0NhWlBGkQZ4RMT0pE0oC6ZCln4qzkU/TAZzLHHy5/Zga+u7qvjff7vPJJX2tt5W5QLl1Zci86uvs5XZafageqr28dfb8Ave7w+gk2+YLPlJHebe2ijrZMm9PUtOselBK5gzT2mLb0l7G7bljuXVg2rkHOyvhwMu8A93+NRqJ+EURCK4vD+SoDmcl0zuTIAWggaqW8jMVTX/nGPPKgBCvkglxj0I6R0KnRT6OtJL2kTXlWgomRlNRHG9yIuh/7ymIzFSU2U/do+PjV8QHBO3wRIXtKlDkpmJHBEQp8MKs/ 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: Document the new per-scheme operations set layer-handled DAMOS filters passed bytes statistic file on DAMON sysfs interface usage document. Signed-off-by: SeongJae Park --- Documentation/admin-guide/mm/damon/usage.rst | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/Documentation/admin-guide/mm/damon/usage.rst b/Documentation/admin-guide/mm/damon/usage.rst index af70f7244700..179a9060a32e 100644 --- a/Documentation/admin-guide/mm/damon/usage.rst +++ b/Documentation/admin-guide/mm/damon/usage.rst @@ -90,7 +90,7 @@ comma (","). │ │ │ │ │ │ │ :ref:`watermarks `/metric,interval_us,high,mid,low │ │ │ │ │ │ │ :ref:`filters `/nr_filters │ │ │ │ │ │ │ │ 0/type,matching,memcg_id - │ │ │ │ │ │ │ :ref:`stats `/nr_tried,sz_tried,nr_applied,sz_applied,qt_exceeds + │ │ │ │ │ │ │ :ref:`stats `/nr_tried,sz_tried,nr_applied,sz_applied,sz_ops_filter_passed,qt_exceeds │ │ │ │ │ │ │ :ref:`tried_regions `/total_bytes │ │ │ │ │ │ │ │ 0/start,end,nr_accesses,age │ │ │ │ │ │ │ │ ... @@ -454,18 +454,16 @@ difference is applied to :ref:`stats ` and schemes//stats/ ------------------ -DAMON counts the total number and bytes of regions that each scheme is tried to -be applied, the two numbers for the regions that each scheme is successfully -applied, and the total number of the quota limit exceeds. This statistics can -be used for online analysis or tuning of the schemes. Refer to :ref:`design -doc ` for more details about the stats. +DAMON counts statistics for each scheme. This statistics can be used for +online analysis or tuning of the schemes. Refer to :ref:`design doc +` for more details about the stats. The statistics can be retrieved by reading the files under ``stats`` directory -(``nr_tried``, ``sz_tried``, ``nr_applied``, ``sz_applied``, and -``qt_exceeds``), respectively. The files are not updated in real time, so you -should ask DAMON sysfs interface to update the content of the files for the -stats by writing a special keyword, ``update_schemes_stats`` to the relevant -``kdamonds//state`` file. +(``nr_tried``, ``sz_tried``, ``nr_applied``, ``sz_applied``, +``sz_ops_filter_passed``, and ``qt_exceeds``), respectively. The files are not +updated in real time, so you should ask DAMON sysfs interface to update the +content of the files for the stats by writing a special keyword, +``update_schemes_stats`` to the relevant ``kdamonds//state`` file. .. _sysfs_schemes_tried_regions: