From mboxrd@z Thu Jan 1 00:00:00 1970 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 7FB4BC001DE for ; Fri, 28 Jul 2023 20:35:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 403998D000D; Fri, 28 Jul 2023 16:34:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 363D38D0009; Fri, 28 Jul 2023 16:34:59 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 140848D000D; Fri, 28 Jul 2023 16:34:59 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id E89728D0009 for ; Fri, 28 Jul 2023 16:34:58 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id B146F806B9 for ; Fri, 28 Jul 2023 20:34:58 +0000 (UTC) X-FDA: 81062174676.03.C98757B Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf22.hostedemail.com (Postfix) with ESMTP id E9B13C000F for ; Fri, 28 Jul 2023 20:34:56 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=OxWEhRuP; spf=pass (imf22.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=1690576497; 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=eduCnC+OYEyOqU/7eWjUVOUI0rGHQmq49SKw029YYYk=; b=FYyfx5F9vU59vyXueAhb50Syn8giBq0AraDuKbfWk/9TCxeP8jjNgJh4xd84ua6exqK6pS 0pHZw4QQSqjDYaxpVMgXLJurAKhFmiUknRvr/3c/horD1nWyzblZx1pV56slw1QDLSXKm/ cuB3VVUpbzAuV67fmWtW65aibPvuk4o= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1690576497; a=rsa-sha256; cv=none; b=Xsb06UyrlTB87KHl0HptDTOshnLY04VeWVS7uR3baF4061nOFdy01hMIUEl10JvQctY7dr K1C8R2c7DmcMF3XTUK9bNOwot4EFYhEBvMWjfslT+EON5nFraMm4eT/QYGAWP15qnfQyYZ WCUD8ixbDJMAhmzK0ZsBVbvwA3KT1Nk= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=OxWEhRuP; spf=pass (imf22.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 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A40AE62201; Fri, 28 Jul 2023 20:34:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93157C433CB; Fri, 28 Jul 2023 20:34:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690576496; bh=/3fkCyEgrxb/AUOocTnJxHaLWQx7r2oBGZrkuNBIGj8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OxWEhRuPcnfrcCVwBiXAj7XlQmmkMrkW9e3U/XpZL+HwfZYSYxvDTK5NHZ3PAyPG6 U8vjA9kEWx5bcJ05v0Z7MHa4bCwtMcGu8JCoYAlrEuJlCc7Vs7yyR1v/Sxx8AY4gfZ Rw47IgpK69FeRYLEkwZWWigquez9wdXepYBOd5mb5fOCaqcRIYMh/HbwR+mAwukQcL tsjQgy/BD9KP302rVfPdIHEJ0+GnxpHGFfbSeDr/Uo22p1aCiX6TZMCWTl5RbLO+R8 Ab1ecYyLD2f4biH6bjWAY5swpY2S9TkcobXnu7R2EqLBDptkXTK7f6lWry3g+yYHfP I7uhEvHyiwGGw== 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: [RFC PATCH 11/13] Docs/mm/damon/design: update for DAMON monitoring target type DAMOS filter Date: Fri, 28 Jul 2023 20:34:42 +0000 Message-Id: <20230728203444.70703-12-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230728203444.70703-1-sj@kernel.org> References: <20230728203444.70703-1-sj@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Stat-Signature: goc8fqwtkryoyixj7bg3w74hr8ea7cy8 X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: E9B13C000F X-Rspam-User: X-HE-Tag: 1690576496-716505 X-HE-Meta: U2FsdGVkX19ehhNH8AlGTQUY/9R+7uddO1866PZu+SFH2+FhLOD/vMlYGgA+scE9o1p3JSxVBN8A+gVbcPPPn8D3pRzK+lLkTJ/Z+62aSF2dW/6RuAgR/inZaaICuC5eAl4DdAnZqXxgUoHmjpRN2TPVgxqgYpZBVBqZ84266ScrRiaAfOIoI2DvASpPtnXgRBPdizo81Tw6AffMRxblgprU6zEXrAlbJMTKfm3t0Js8Nszf6eh+gf/ftJehA/bKxfuLvHS31TFu++TC22epNE6M+azvsWatUJryLv+npNBfnr2FDFcQrALSsPzGmyAL95mKU7ueoPYVstdp+LGG840rhmMijW1p2kK/FiQFxF1i6RvuPML3JnCfWEy2GzrpTKYFRmE7/Knj3b79oUvhrgtLFCOFi+Drp/tTrMjd3iTTRjv/ZD+iDrorF/dbM1FnNIOwaAJlx/rtvxafZd7xactRCDH8fTkqzwIRcODuGzZknU6FGzhWx2B5xtVqZPZytKcjbniIX6JQt3bvwDakys5UCeDrOMHBi/AK6TxCTlyX9amfQfQqMQdDXn2TXs18LXfkVSojmocwhjIxnTRjWYHCqjMenwN3s/qpJ5JaOIvXQOsH9EyaljM+KDW1gp0H6FlZ45pgIrrBVMLfiFE1lztusvSdcHCFoGmTCLvg+GCqttBr1aXsxzHMtMtNeJdxK8zZ75L2w8Lo8Q3IECtChdgKsyK1RzebQEchCR12f1Ky0lXo3S6SF9hBVM2gixVm9BfGR0WIjeI3H1CbiBSapunMioN/Dwpj7XUPd6dAxmtB7O2O7cGtUPBlJ5UouCPAAPrpqu+N6PAZnGOgA6gguuNp1FF+sUBlXmh+kZlzXOcByr+tOQerFyZQjY5Lv/6qs6RwdYifDpj0Ek75ZjVdA5GauTQoa7StBcdjOKqso4e/01TOFP1haM3n1rq5yBljUYDeNn41FroxodRZaUm WrOY0Tom pfBqjuiE4ejUEtucRG2KvmJHXv0rvB2TG3JEsOdcs99KKhfC0uIrV9gptZH0bFVcWhuC3txKwBIgmiWsUN8htSzZxktX8yRK2Q021QLRCCr6FR3gAF+19l3/oFV/5FUPzB9h8VI8FSwhfHiKT+ixhQlnv+6gQ8TeNNSiA+wRjcttYH+D5ZfM5O+fn90EuowW9gD6R67y2F9JL7S+JgzviqohCZhQWXr0yxt8kMOI+AWibel7nAu+og6ZpYI5lAQ2F2bpMIKrD4yyN83JD8DG5Ebv2Czg2AwMsk8/EikNkk2/moTmOQ/H826UBfuCngECoYI8LoaL812DttIahWAKYNwE5Tg== 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 design document for the newly added DAMON monitoring target type DAMOS filter. Signed-off-by: SeongJae Park --- Documentation/mm/damon/design.rst | 33 +++++++++++++++++-------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/Documentation/mm/damon/design.rst b/Documentation/mm/damon/design.rst index 134912166f5a..a20383d01a95 100644 --- a/Documentation/mm/damon/design.rst +++ b/Documentation/mm/damon/design.rst @@ -380,21 +380,24 @@ number of filters for each scheme. Each filter specifies the type of target memory, and whether it should exclude the memory of the type (filter-out), or all except the memory of the type (filter-in). -Currently, anonymous page, memory cgroup, and address range type filters are -supported by the feature. Some filter target types can require additional -arguments. For example, the memory cgroup filter type asks users to specify -the file path of the memory cgroup for the filter, while the address range type -asks the start and end addresses of the range. Hence, users can apply specific -schemes to only anonymous pages, non-anonymous pages, pages of specific -cgroups, all pages excluding those of specific cgroups, pages in specific -address range, and any combination of those. - -To handle filters efficiently, the address range type filter is handled by the -core layer, while others are handled by operations set. If a memory region is -filtered by the core layer-handled filter, it is not counted as the scheme has -tried to the region. In contrast, if a memory regions is filtered by an -operations set layer-handled filter, it is counted as the scheme has tried. -The difference in accounting leads to changes in the statistics. +Currently, anonymous page, memory cgroup, address range, and DAMON monitoring +target type filters are supported by the feature. Some filter target types +require additional arguments. The memory cgroup filter type asks users to +specify the file path of the memory cgroup for the filter. The address range +type asks the start and end addresses of the range. The DAMON monitoring +target type asks the index of the target from the context's monitoring targets +list. Hence, users can apply specific schemes to only anonymous pages, +non-anonymous pages, pages of specific cgroups, all pages excluding those of +specific cgroups, pages in specific address range, pages in specific DAMON +monitoring targets, and any combination of those. + +To handle filters efficiently, the address range and DAMON monitoring target +type filters are handled by the core layer, while others are handled by +operations set. If a memory region is filtered by a core layer-handled filter, +it is not counted as the scheme has tried to the region. In contrast, if a +memory regions is filtered by an operations set layer-handled filter, it is +counted as the scheme has tried. The difference in accounting leads to changes +in the statistics. Application Programming Interface -- 2.25.1