Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp19371lqa; Fri, 26 Apr 2024 12:54:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVSux1ZcW536SCBa6Ad+A0zfFHLqoUuvyW8SQF6GapT+Rs8aGLZgVQHU98LZuhl0oPQY8vvzzTt8ltrkGifVXe4lx1IzDaFwGeVoa/v2A== X-Google-Smtp-Source: AGHT+IGH+vPpIyLyo5jpGwNYQY1XRbsEbpy/YD/FxAlVzdNw1Dl7SoqAZ6ly+gY3KYVCcDwEe8hG X-Received: by 2002:a05:6871:511:b0:233:3734:e645 with SMTP id s17-20020a056871051100b002333734e645mr3844297oal.59.1714161275327; Fri, 26 Apr 2024 12:54:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714161275; cv=pass; d=google.com; s=arc-20160816; b=YM/brinu9I67aOHw5IsVhS6We44bTlxDa4jOHxnqv194fkD56r3nUww2xzNGlUli5v vH5REXC1u8ADp8fdxtcFyhrMv/WWzF83TG18ODypkU4kNr69GDM+XHXNtuyAUyF9X2J+ b3TSKPW7BuiQSXHoe1TlbeqRAhEEZxlA9z6LVgyTYL8MoQ5/qg0l78LYN9pnbrhpWpPO RyPnDqJ/WsfPHLMTW6EaiGz7M3zmeOtF+yZDNEGM7jEbPjNNI1WSMQNJOWjhB5El/dye 3uMHXKxvKUH7ZKIPb1J+WQkjoOfphEsBvTEGqtpMOmyx/Pu/ZcP1fZGybRX0n7unikg8 xSjw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=BM5nebvS4moKlSYBewH8Mgk00Cqm3ZMX+/8gbuFwpuo=; fh=jKijsxc1Z2CHKVFf4S4lB42jMLcn6gTpewOn4Tq1/VM=; b=V/p+9btWHKQxwlqWskuwqgcDnLB3R257RCK+QJKlL3F7FdquSLWMBNsFjM7xT1ve2W 8Qh7IRCwIEzE3nZ4/aCIWiUsi/xh6ZoojcetjoV7mp5ATxy7SYagXyW2cSO3wSRN4vhh 5QREa6idyGJsq0qeti5rKclYUN44cL5klU42YfWhSUU6L8jjIrCHM9hFdkD3wZa+I5Cq 2n3XbWCdDVjfGraZRNeBat8wp4Gr8FXp+41h9/iF/3g2oADbg6V5cPBWXibwoglWN7En JBKTLSrI8chtMLrlq7Gh+eKTPUxJO1ihcVcccav7+WCANJd6YXSwPZCwWCBS4/Iuttra Upaw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DSFNDYcZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-160639-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160639-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id s66-20020a632c45000000b005fc96b27e11si11182209pgs.687.2024.04.26.12.54.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 12:54:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160639-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DSFNDYcZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-160639-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160639-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 6E6CFB23588 for ; Fri, 26 Apr 2024 19:54:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4A4D937714; Fri, 26 Apr 2024 19:53:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DSFNDYcZ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6DD8C3613E; Fri, 26 Apr 2024 19:53:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714161184; cv=none; b=hUQl87jsTzzsh9i2CyCf50VKnDOYpLnTj15ZG/pduc8WaQEgXZNlXeTT2i4UjPl/xSwk170WW/vN/Tq974jVJa3soCi333gjZu2PJ1zEgU2SiDl+25+rr8+OOdFWUGcHjKUo1HOSRhC0gS3p97cWSzq/jX8HHLyd7SACQ9ibCBw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714161184; c=relaxed/simple; bh=K2q9FissW13tAkvxEMeW2S5JbkJ5qv3UfNIiwo/yV/I=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ffCI8aT8qx6P5Xqmp5lG0vnru2ZvlSI3UXabwvuYUzxsEs6oEou6AsVQzOms3RUYODxZEA1DXAQvFCiKg4dOmLaXSvaATAQkszBCAJq6pQtcXoWZmHor3HIwQCVSuZP9sipDxPU+gyiGz41/3/sUazQKwY+dfNgXfaVCzLI5VdA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DSFNDYcZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3142C2BD10; Fri, 26 Apr 2024 19:53:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714161184; bh=K2q9FissW13tAkvxEMeW2S5JbkJ5qv3UfNIiwo/yV/I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DSFNDYcZ5ydHl9BLQEPGlilvTLW2NF0PHASHNaeYYzH/IQkb7TIhayU7DHFGXKWuq yDnjWbS6g5F/zwAj2dSG84H1DBt9ceqztSEcropReTs4M7kuxPV9TThRzeKu/JuD0U h2gjAkllDCJQSEr4OWpX16oU+h/cobOIqx/kvuZr/ZPvqRxLsdDz1TWq58Y1uSjTdB KG2/YRUz3XFQ2lUMj8D4sUDlvXOvo0ZwJYL+Zh8slDqm6FtGDbhgNPxTbZ/CqoMjY7 4C07ybL+Udwe/39rogZpBtUgPe9/Cefr/RZWfqMfcHwYR7QnGWrNRTLKkjCC5eUayp wgHoLmDGbo8Nw== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , Jonathan Corbet , damon@lists.linux.dev, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/7] Docs/admin-guide/mm/damon/usage: update for young page type DAMOS filter Date: Fri, 26 Apr 2024 12:52:45 -0700 Message-Id: <20240426195247.100306-7-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240426195247.100306-1-sj@kernel.org> References: <20240426195247.100306-1-sj@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Update DAMON usage document for the newly added DAMOS filter type, 'young page'. Signed-off-by: SeongJae Park --- Documentation/admin-guide/mm/damon/usage.rst | 26 ++++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Documentation/admin-guide/mm/damon/usage.rst b/Documentation/admin-guide/mm/damon/usage.rst index 6fce035fdbf5c..69bc8fabf3781 100644 --- a/Documentation/admin-guide/mm/damon/usage.rst +++ b/Documentation/admin-guide/mm/damon/usage.rst @@ -410,19 +410,19 @@ in the numeric order. Each filter directory contains six files, namely ``type``, ``matcing``, ``memcg_path``, ``addr_start``, ``addr_end``, and ``target_idx``. To ``type`` -file, you can write one of four special keywords: ``anon`` for anonymous pages, -``memcg`` for specific memory cgroup, ``addr`` for specific address range (an -open-ended interval), or ``target`` for specific DAMON monitoring target -filtering. In case of the memory cgroup filtering, you can specify the memory -cgroup of the interest by writing the path of the memory cgroup from the -cgroups mount point to ``memcg_path`` file. In case of the address range -filtering, you can specify the start and end address of the range to -``addr_start`` and ``addr_end`` files, respectively. For the DAMON monitoring -target filtering, you can specify the index of the target between the list of -the DAMON context's monitoring targets list to ``target_idx`` file. You can -write ``Y`` or ``N`` to ``matching`` file to filter out pages that does or does -not match to the type, respectively. Then, the scheme's action will not be -applied to the pages that specified to be filtered out. +file, you can write one of five special keywords: ``anon`` for anonymous pages, +``memcg`` for specific memory cgroup, ``young`` for young pages, ``addr`` for +specific address range (an open-ended interval), or ``target`` for specific +DAMON monitoring target filtering. In case of the memory cgroup filtering, you +can specify the memory cgroup of the interest by writing the path of the memory +cgroup from the cgroups mount point to ``memcg_path`` file. In case of the +address range filtering, you can specify the start and end address of the range +to ``addr_start`` and ``addr_end`` files, respectively. For the DAMON +monitoring target filtering, you can specify the index of the target between +the list of the DAMON context's monitoring targets list to ``target_idx`` file. +You can write ``Y`` or ``N`` to ``matching`` file to filter out pages that does +or does not match to the type, respectively. Then, the scheme's action will +not be applied to the pages that specified to be filtered out. For example, below restricts a DAMOS action to be applied to only non-anonymous pages of all memory cgroups except ``/having_care_already``.:: -- 2.39.2