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 BC0E4EB64DD for ; Fri, 28 Jul 2023 20:35:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5FE358D0007; Fri, 28 Jul 2023 16:34:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 563AB6B0075; Fri, 28 Jul 2023 16:34:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3B0898D0007; Fri, 28 Jul 2023 16:34:55 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 26B9A6B0074 for ; Fri, 28 Jul 2023 16:34:55 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id EA332A0397 for ; Fri, 28 Jul 2023 20:34:54 +0000 (UTC) X-FDA: 81062174508.09.743D2E8 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf30.hostedemail.com (Postfix) with ESMTP id 4D83980017 for ; Fri, 28 Jul 2023 20:34:53 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=heq5ttnp; spf=pass (imf30.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=1690576493; a=rsa-sha256; cv=none; b=k+OiRbuBi8QZ1HtQRn7Vjgj0sr98JWZ0A1t1goEMzylpJKYlwSxrgORqc3B0K/wweuYb4e y5kzhaWYwqEWr2h5gl1sxGXhW7Yp1LzYikqLYtEupn9m2qiDxyMTB9TC+GQYoWEjQWTyyZ zhvkYu3D57TAS1ZrZfz8GyPRkiEulCo= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=heq5ttnp; spf=pass (imf30.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=1690576493; 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=N2Dh371ZmBlYpauiue0Vw10+cKdgFzpWgDU1O6AHC1g=; b=dBnTt3Wf0EikpQ/9d4pHRObysbVvX25zcJKjIq643EmCYIkS5tosbw+BrvsEmMRFSmQEl2 n4d0HwCekjy+yjzOnz/gGESE+Trub+WUx+P1PeCvxvpKNaUFbbMHt29/VqIMJ0WZIN8mWL JNakg8tKiADvDpxSUD3ypLQBWHLcEPU= 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 91D5962208; Fri, 28 Jul 2023 20:34:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81061C433C9; Fri, 28 Jul 2023 20:34:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690576492; bh=OCzjAXySbo2P2W2ofPo/GLfYFykKqV/gINis3/IWY+s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=heq5ttnp+0povkEP2NQq2cKCGH6lIIYkoMJQgmhO9vQAax7BDzcr7DdU1Q787/Wq6 Q9YeJVWmEHUFLd5qRENHxmVH7CqsLYHLU+C9jYL0lY2f9fTzGd89JOSSEKcugjH5qV +4OBdFvsT2CsHNrjMfFwwft/J4k+Sn3di3qmQeI8yWpwnFfHQadtT9Nhb/Sh+YCC+o 13cM5XYudDgbte9YduCx4h3FLlpSG0BPdG2nb3Nhzv20aF3IqPZIVxzyK5nrHmLY1z cePPG89HaxuFAEeiheYUlMAMH8JDYucg43I689mqC6DQhyBbg3QctN4ksFohaXYEeh kBPKIAB9Al3EA== 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 05/13] Docs/mm/damon/design: update for address range filters Date: Fri, 28 Jul 2023 20:34:36 +0000 Message-Id: <20230728203444.70703-6-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-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 4D83980017 X-Stat-Signature: bhiq49x7paesxsa83zhqujatg64dnrfn X-Rspam-User: X-HE-Tag: 1690576493-476401 X-HE-Meta: U2FsdGVkX1+COk3pk5VI2ENCNBTL4Bwiby++I4o7vFXM/+puR0+DlQ/zkY2d+xJwNrAO4CUDqE+Kbjf2fMCokK+h27xbMwWLpaHgWrcitME2xdj9HTl2Kynr1RK3I76g7GwPmF6ntk7+jnu0KIhaBVJqCPaPInPEwJbLvH3SIhSXFmRj7AuJ4ClFsRzMUu7IJ4BDBaKSg4npOh8ek3hwoExEmL4/zY5k9YyJKiJ2Lw/yzSEA2Rf/RL8IBpoh1kNCGtpLdzIYXPViJchGs6XU1gYCoD+Xlc/inAyC+uYt5zCir25eCWosDfpeJ8mxml+ojW9+Gr5knvJJcfaTRDkhvjb5Gz4okjZF9AbfVlZSzecQXyvjKWiZ61M/UWIHVauBniQWMnQz0xcs9H+DwhY50TPc6u0P4D5oBsHRRW9RwSuYHvmp9t7FnNLK1juk1MTt0Uw5cW+cE30RZ5L3xvGZWMTSIOJAjsK12PWZof0oVheMdhHfprjburw1FZeR0jXY3RpJN1WT+n3AtESgBWIzmUYIteadwWAc7A923m164vzxYyp0yx/726nIjaMMilnfyRE+N9yr86I2L6otJuaWOvJJw+YCthCgBRN08mnDmdkUp4xjZxPF95zptSrb84Lmc4hw+A47se15Nf00ZxcSIshAgvmZbnQZQ4x1OGNgJvUWeWbkpc87k+cmmdkb+8KmwEw95fqP4IDVtB7i52r+8ZRQwHpne7eSiwMiwdZX9TKiqu2nXps+fuHUDsBiXi2fdf6/yPvD7EXypTMz/KJR9bIkVsXEsy1uCQFB6HnpTnRE5rsVx2/FZw1DblfKfHUPWAlLxQG7floD/qtznuTWvVzb5TrFjCpBcTdwCVFsdzFhgaRuuiTHdw7IAyrqB0V03KnulSZ6IPT47rnnIGP/c6nGzhk4nlvCa5TUVt2TGWnd5hqWtO0QJzscBfWdIFHaHBoZvajgTRUHDWCKynR ixLHVr+a 9aPE4sF4BNUB35oV/VN55xF1QlxITlYjlpQiPt1EwsDU0Dp+O+SmoJsmKZnwl5SJl71f+onJP0V43kK82mUK2HjB9eIfw55skU2GLMUA3DhWX+4JLqeQLJ9prdX9n6iVRiaxkP/EthzzADLQsryOei/3eqKwKwpFDPjwQqPOe2MpNxTQxOKRYL3WfaCYwq9kFkcx/h0jcYvDVgFhp2ht/yBmZvlQbVLXi/g34/T3HR4ahGqK4RP3Nwj0Z0MIuwuS3PF0xkhsV4ZHe8rEChEJrrPQJrRT7XELh0npppzV9XpnoGVEZ5duF0S1DYNDt95Ad5TRZCvqA6j5/ACyqu7/wnu2Mhw== 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's DAMOS filters section for address range DAMOS filters. Because address range filters are handled by the core layer and it makes difference in schemes tried regions and schemes statistics, clearly describe it. Signed-off-by: SeongJae Park --- Documentation/mm/damon/design.rst | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/Documentation/mm/damon/design.rst b/Documentation/mm/damon/design.rst index 4bfdf1d30c4a..134912166f5a 100644 --- a/Documentation/mm/damon/design.rst +++ b/Documentation/mm/damon/design.rst @@ -380,12 +380,21 @@ 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). -As of this writing, anonymous page type and memory cgroup type 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. Hence, users can apply specific schemes to -only anonymous pages, non-anonymous pages, pages of specific cgroups, all pages -excluding those of specific cgroups, and any combination of those. +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. Application Programming Interface -- 2.25.1