From patchwork Tue Jan 10 19:03:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13095550 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 6D5A3C678D5 for ; Tue, 10 Jan 2023 19:04:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8C3D38E0003; Tue, 10 Jan 2023 14:04:11 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7FE43900002; Tue, 10 Jan 2023 14:04:11 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5DB9F8E0005; Tue, 10 Jan 2023 14:04:11 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 4F1BC8E0003 for ; Tue, 10 Jan 2023 14:04:11 -0500 (EST) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 1BB8D1A1E78 for ; Tue, 10 Jan 2023 19:04:11 +0000 (UTC) X-FDA: 80339814702.02.72F9417 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf03.hostedemail.com (Postfix) with ESMTP id 5F41120057 for ; Tue, 10 Jan 2023 19:04:08 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=fCl8S7Yi; spf=pass (imf03.hostedemail.com: domain of sj@kernel.org designates 145.40.68.75 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=1673377448; 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=3DVEy/H+g5xxOxDaNlg5cWLZhq40eZdLgDfmf+UPHks=; b=xbtrjjceKliZjiL2usMs331QueJ6Lz3+MgO6DLmg0/8eFB6yiVCb+A+JWeStnjrbHPasyw n52ExO4j8+RPXgo6fm+XvRcuiO4U8GWymPgfufMxvhPWm5eoCksXnn8YshbO59DaOEyoVr uJtQnqEpxeKAxYjE6Z5cNgo88kLzjfY= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=fCl8S7Yi; spf=pass (imf03.hostedemail.com: domain of sj@kernel.org designates 145.40.68.75 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=1673377448; a=rsa-sha256; cv=none; b=f3PpxpfVGRfIK7mduuh48CCgZILR0+9g4NkpN1l5JLYtHiKfJCvjtyP3+gA4TxRzZtsQ8h bS0g1cnOxNdPVOcE5XTPGRYWTgTdPjG2gonU1l5nOtnFC2X+J9ePP6jXOhR0PKZroLMt4e a0SOJsVXHXvhj6sOHB5QpGuQsiz2l6o= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 56AAEB81975; Tue, 10 Jan 2023 19:04:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB108C433D2; Tue, 10 Jan 2023 19:04:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673377445; bh=EpuEVUL614S47vXoslv07ySnDH61IdNVsBrU1EkLty8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fCl8S7YiAsYSjVYQ6JjpL33E5Zdyh0Drih0OrdQyMBev/agRdKUdaHNWOrGbsRJsk CUm9xv0Q1qyvDy/JbGUNQAH4T2SCwyC0lwrr3By+XE5/gPxPZUEJTGvN8p9MNiYoUH fJNRL+cOlBex8DtmAvlIcioI4YLkXREUsKisYvBQRXNjsHzh6JIaPkyi0DG+RCkTkY BEggkVrMC5MbN75tGE5AjEaBQqvdq+bYZEszEMZhwLR2sFFK/im+NdyEMMbLFCwESC lsHWX7EzszK4qUGrr0DNzX1R9gXbytMa+c88X9+QFYpxaCrUt9mwFUlVLDKC/1LoiL p5PeAAxRCMc9g== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/8] mm/damon/core: update kernel-doc comments for DAMOS action supports of each DAMON operations set Date: Tue, 10 Jan 2023 19:03:53 +0000 Message-Id: <20230110190400.119388-2-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230110190400.119388-1-sj@kernel.org> References: <20230110190400.119388-1-sj@kernel.org> MIME-Version: 1.0 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 5F41120057 X-Rspam-User: X-Stat-Signature: 6rowxxyywhr4zhpgq45833aprji5sqco X-HE-Tag: 1673377448-788204 X-HE-Meta: U2FsdGVkX19N2dMIyIBJMXF5ZTKgPkGBOq+R8GqYv2pClUUW8N9gH0SrqXqFLrBz3YJ2AM4XEJa0ileQpj+Z++IpFVaAqUpUGpBOl9WGDbJ0oNcGq9/3f+f+f5klO3gAs1ZF1R7vj7Sx9P/dtnHFripJmwNUe72cVRLmzy+lhLMHreCt0Cm9/53ce4V+ttBwN1HUksE8y8CijDOhvo2wTvcZKFkac+NDenhSGjvvWwvN1jXLCAi8kJ3cb3JYirKxOA64I2Wg1Yj70y8j6GLHT1Wk6yjKsI1/7h6qt1l4EM4QfxnZ+EQnwC0Q1saDP38PMROeM90xbXK5zUEH+YI1K+5KU7T730IuhIA23LbkZwWEddbtdYbrZ5gRugW0zmaB/h3jkmMdcnNgxKZcIZrrEZDOkoL49bqyQafQ+i6DgECPIC1dqbtD6fR9D0FrwjZ1rtW6ATwDjr/OeEl7kT1h1T8J7JpecoAU9VuGlU/9+Gd6TrY4xLfJQ38/G0WB3wIeEMqhhnZlNWTHpLE+H3oLCF7jeINfTGaGq2QUYyVy22PI3oB8RWq0QuUKd8bbyvWaLK6mvQPpcne5JWBepWqlmt5ukKdc4CMU/SyWb5XhF2kCkFmwpCMUZ068LVfAivDtNFI+W81k6jqV92QjUSAFXHA8p2Pj380zuorWVyRquVp8Vr9Xv9u1F6hFmseZjtxC/JgMHuq2Uk9Q9By346MQhfM2lMSH8dM/7iMLPOt3lE5pA5vM0r+r914JRdiInXf3rs/iDZ+BBRYUVmUjx4fUWCw2RoanBOTNLC6OGlyojLC1jR38QGjg9+qOVWDovdUldzJHYg6IXQhpHG7Gd//WOo9KvXvYSi3Xb1kuH/tLEUcJ1GtikVT5XpjTVCSZBOubSOqMs8oazWlF5GYHYEk9FeXpZFo5Nay/vBRG/3X9gE9ODmxdfHpeVN5K5ym14JXPj/FJaf8BOBQzROy6HMn LaH07V4Y IltQ4ecS18Mj5JCWKCbk0K4d+gtKhPg/wJwGE9z0LvlmEfxQNKriD2GGqW1a26Yb2x/h4 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: Supports of each DAMOS action are up to DAMON operations set implementation in use, but not well mentioned on the kernel-doc comments. Add the comment. Signed-off-by: SeongJae Park --- include/linux/damon.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/damon.h b/include/linux/damon.h index 7907918ad2e0..3fa96d7c9fe4 100644 --- a/include/linux/damon.h +++ b/include/linux/damon.h @@ -91,6 +91,12 @@ struct damon_target { * @DAMOS_LRU_DEPRIO: Deprioritize the region on its LRU lists. * @DAMOS_STAT: Do nothing but count the stat. * @NR_DAMOS_ACTIONS: Total number of DAMOS actions + * + * The support of each action is up to running &struct damon_operations. + * &enum DAMON_OPS_VADDR and &enum DAMON_OPS_FVADDR supports all actions except + * &enum DAMOS_LRU_PRIO and &enum DAMOS_LRU_DEPRIO. &enum DAMON_OPS_PADDR + * supports only &enum DAMOS_PAGEOUT, &enum DAMOS_LRU_PRIO, &enum + * DAMOS_LRU_DEPRIO, and &DAMOS_STAT. */ enum damos_action { DAMOS_WILLNEED, From patchwork Tue Jan 10 19:03:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13095549 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 0786CC61DB3 for ; Tue, 10 Jan 2023 19:04:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F045F8E0001; Tue, 10 Jan 2023 14:04:09 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id EB36E8E0003; Tue, 10 Jan 2023 14:04:09 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D7BA28E0001; Tue, 10 Jan 2023 14:04:09 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id C276A8E0003 for ; Tue, 10 Jan 2023 14:04:09 -0500 (EST) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 9B90D1420C9 for ; Tue, 10 Jan 2023 19:04:09 +0000 (UTC) X-FDA: 80339814618.29.325CC9A Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf17.hostedemail.com (Postfix) with ESMTP id 2AABA40053 for ; Tue, 10 Jan 2023 19:04:07 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=O12DgK0w; spf=pass (imf17.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=1673377447; 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=g9Lt5kjNSvwU+Zc822IYE+N2t4BmB87JsBjPGjRovaM=; b=FLeoW+RwrchOdMnNV6O3nOotWpDYjL1YG3FWXdN6ljFVqcuGZQqIbPm1Cq1kGNzBO2pg5z 64cs3HXNfkWySVpCShTeIlDJhz2Kr+7AtlFRFz+yoKz+q31tTCIiXDkCJgq0r7aggJYfbg Ezr2ublAyg0t1zia5arSgzZLyTwe4Sg= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=O12DgK0w; spf=pass (imf17.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=1673377447; a=rsa-sha256; cv=none; b=aAAJa6AQ7nsPbo2JtBEjHQxRQ4qnqbg5R0EUgLF506En/bJd3X9b48oAPAIU0jiYiaFTwN 5RxhB5qjvThgSg5bu79Iv6WAwbDUJ1cu4laXkedMDusy/TzHRRPvxYkddde1UjC7+5qgns Gd2M9dLgsZlyFmgPsUUKlUKOKLqsySo= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3676661890; Tue, 10 Jan 2023 19:04:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44D7DC43396; Tue, 10 Jan 2023 19:04:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673377445; bh=MkYe8RMWo9Dd/HnFB4VyNk02k3Wj59bPhrWvDe74iBs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O12DgK0wfvcNXMnpgdQ3CN5XcfJVRvnLXxTk9Tenc6J86A71PWN8smbh8QHn6allC cieg4aoxQAsihNa53VhtzdmoGyYNK7ii4b++GyYCC8+SEUK2nVroFTJtRhlifuN9B6 k3JKMOBKw01yt0WYX/k+NOVE96xHBDfQsvj+6enjh62D0MYD9tB1eUwbw8Iq0OAuld u/mImvwo0LKCKcEhdw4QdXUDR15Y6quvIqFKYFORAhOi1B3bSKg+EKLiG5QmPXIctj hwVD9ousWKgOREOvinbJ2UEgyklCRp9pAvqzYSGgiKGqkN7oKOpIprY5BWPWc2nXls /XCndbXdU9Cqg== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/8] mm/damon/core: update kernel-doc comments for DAMOS filters supports of each DAMON operations set Date: Tue, 10 Jan 2023 19:03:54 +0000 Message-Id: <20230110190400.119388-3-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230110190400.119388-1-sj@kernel.org> References: <20230110190400.119388-1-sj@kernel.org> MIME-Version: 1.0 X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 2AABA40053 X-Stat-Signature: d418nyhq8ogsxejbz7s8nfzhfhacicd8 X-Rspam-User: X-HE-Tag: 1673377446-46633 X-HE-Meta: U2FsdGVkX1+orQsKc4ThDof5IDDQmK1Y6xkRsh7GXI02U5rsjiH+9awRoCYuqbDfRlvzcZKR0w7+aZw/CCOi1pGxnA7xDyy6rka+fWmsVwBZiRftMKZVTzx/6Pvea98vCt9I5Lx9w9Qi2gIW8j5Ioy2xIbaBPr6Nzois9Jbm7HMTdRpz7XCulXcLdtfU0nZRy1XOlm+Uv3K/YL8chNm0WL/m3ObIYQZ2D6WNE45AHQSp5Tem2MfcRaZnF4dLAa/AKkLLMsuPmRaVqIyuLxZE0BFgQolYhviMHAglstLx/Ru+aGXfqzi8CUT2qNcnRziYHbwlZ/MnPk7ioHGlOFjFTp2ZXBVxdx1Y04YhjZLbD3Hc4Qpai2cxAZ08lnPuPpTMAGrlO2gU36/rXrD/2FEfxAcO4/roR8yER/Wj9mlDamx3YT5Tlj2+1frJvt2uc5d0hHpA9Ehepz9OBIp3UKziLHXcC8OjLkBfNEFX7HKH8XQCm0UdryeVJH+PIFnZXrQT9VYpuVq4N443KqPOPP+H/4Mi2Vgcr09ckwn24G3SAae6RFjKVSiaKzD1Pc5HyqDcWd2FshqqBgEaEc1vh8DkmqW/owyK33VCp4xBpMkYQ2XwUYQ7pre5NdRZXYCThNfzeyAD/waS0Nz2Ib0nsdXlzxqZTGrLXPlc/ZQj9ERr/KHeXX7AAhQMmFkfCrS42rTta966OhKnR6lzKyTUiNPyO3uoJxppCsaa2AdYbEZtUYTyZG/HO21WFDyVcDizCfUQhyCJEx2VVe3FW1x2pFgW7gXaFd8Y2nF1gJCFvfoIgWNk65lkvfn/MTU2OFGB9k/lRO7AutGLi7I0amz0qqiGgzBFbRJkRdChQmoNzTO8merOZo2oydXc6tN0yVYoU1nwzw5gTegDO0Sn6fPb4439hGUyWl1U+0TZIpCoIPJEc84lUDJo3YOOBix5HTtpAi0s063ONY2ZbWCgyulL+nL VBx8TDKR ZAsw5F9vJornPImLFTyMjvqnYXNl1upBOKU29oeKq3u48pp+nMOtXuStRCcklZGJICgY3e9sebhPe9JY= 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: Supports of each DAMOS filter type are up to DAMON operations set implementation in use, but not well mentioned on the kernel-doc comments. Add the comment. Signed-off-by: SeongJae Park --- include/linux/damon.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/damon.h b/include/linux/damon.h index 3fa96d7c9fe4..dfb245bb3053 100644 --- a/include/linux/damon.h +++ b/include/linux/damon.h @@ -227,6 +227,11 @@ struct damos_stat { * @DAMOS_FILTER_TYPE_ANON: Anonymous pages. * @DAMOS_FILTER_TYPE_MEMCG: Specific memcg's pages. * @NR_DAMOS_FILTER_TYPES: Number of filter types. + * + * The support of each filter type is up to running &struct damon_operations. + * &enum DAMON_OPS_PADDR is supporting all filter types, while + * &enum DAMON_OPS_VADDR and &enum DAMON_OPS_FVADDR are not supporting any + * filter types. */ enum damos_filter_type { DAMOS_FILTER_TYPE_ANON, From patchwork Tue Jan 10 19:03:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13095556 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 1C32FC46467 for ; Tue, 10 Jan 2023 19:04:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AE434900005; Tue, 10 Jan 2023 14:04:38 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A94FC900002; Tue, 10 Jan 2023 14:04:38 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 983AE900005; Tue, 10 Jan 2023 14:04:38 -0500 (EST) 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 89F3B900002 for ; Tue, 10 Jan 2023 14:04:38 -0500 (EST) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 4B29241E80 for ; Tue, 10 Jan 2023 19:04:38 +0000 (UTC) X-FDA: 80339815836.06.40E5809 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf25.hostedemail.com (Postfix) with ESMTP id A8DEBA0016 for ; Tue, 10 Jan 2023 19:04:07 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=temperror ("DNS error when getting key") header.d=kernel.org header.s=k20201202 header.b=Gr+KJKuO; spf=temperror (imf25.hostedemail.com: error in processing during lookup of sj@kernel.org: DNS error) smtp.mailfrom=sj@kernel.org; dmarc=temperror reason="query timed out" header.from=kernel.org (policy=temperror) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9234261866; Tue, 10 Jan 2023 19:04:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3871C43398; Tue, 10 Jan 2023 19:04:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673377446; bh=3/9jPsJGQOYl5LrCGMIIfDURssYf3Mb7HlJVYLs/nag=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Gr+KJKuOm+aZo2aKeZ1tF+IL9mDXelWveS7Wxk+bEcvzreVPihAtB2EuuMgEG4Op+ bKsUP+zpKY5H5OKwlQ1yc0rztEYYZ8x1s0mC6r3gGnt5v4EHwJ3ZdU+seblcwUS9kJ JJRcXQkUBKSyGrsgIdCruJ94Gwan6MSt8zzoeUt8vJ7g0Q99TpzhfCz8DIwDVlC9eE gJ20GaqpN48kAhaG7aSW2eLbXd5U+5RPPD8klZYlhXRiw8ckt8WskQbS1YOuRi48x5 oRbPJPB+t0mhZ/CMMxTEZVxHRugcJwXgT99Ih/Y3waWx7CCb1xMDDlrpLe5Egv3gyc nOaZIpD2tfnvw== 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 3/8] Docs/mm/damon/index: mention DAMOS on the intro Date: Tue, 10 Jan 2023 19:03:55 +0000 Message-Id: <20230110190400.119388-4-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230110190400.119388-1-sj@kernel.org> References: <20230110190400.119388-1-sj@kernel.org> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Queue-Id: A8DEBA0016 X-Rspamd-Server: rspam01 X-Stat-Signature: ii8nbot4dfwec8oqwpkko3aii4izs4md X-HE-Tag: 1673377447-85452 X-HE-Meta: U2FsdGVkX1+9o6QkX52Re7CN8hw8+ITBWc1b4yJKd0ytj52hGOPvaApxukv5Jp/tKNVP/ijt61IWq291gzK6wHmB0kg/JhB85AHW3jve52H+Ky5K4UjpBIR9u0olcBPgOPvo5dpOcvYvuFFKRjTitcwA6QGnltsnhFOWKA7y8tdfGXF1JX1FoJ5IFjlaAIM0aB02XEUaSTkNPAX4GfOFZXzb3MGzIQ/sS2V/jIwVWcgDn90ftouE5BY1xy5rN+JgfveaxqWyq/oNMPATIZQ9AonQ8UpRZpxsBrg3PUSh3SY0O3kMbdlFtO2XPeNyFltcEZLFhUVn13Q+MNNUE0ZAnbDq3eqa2pXDeV11PfDvEsdgmPz9zEuJZHUga2wUJJ1xB56POdY46LADR61/v0zpXFyWEGRTYHk5V/7Nqb6CKEmIWwOuIWfAIX3xU9teolkLmKKiPgEXkV7HHIvU8lTU6sUJ5SO7Y3Q2AEkiEresVhpt5qjNdmywHGEnfS/0SlK1th2tzJwp3V5eo7YBYgt15Tt9i6C1joTHK3rqbCmCIHsX7iS2qfj0Fbqtwkv4b5Ax4VYk0ZCucinSNeKh/nsVSROjbNYGREytTpuSG5ywE3C8LnBqDH1FzVQcUK72DIMMONyB1nbOj64Eqx5qZdnBEQdd9E+X0HEjCAq+agejNSo6kUlkCQ/rUbR8ZDDfRbc4kAdBWWRT01KYrf+L8ZA3M3cQzJrYhgifeZZ8EPg3Q4fj4rqwNdcIXkFvPhf/tymjAWzmv8cr1d99h28sscMZTr8XdziS1ACYC4gBstc+Oy6ttb+ZkozAcArUObzfXwcR6ZlG+WqpizHTfdPcczpbzlck3FBNp0dUgryawNtSfwdVsAQiY0SkBdrOmGB0PMFz/T58yl9ncK6Fho/uOiXdHJYTiR8Z+mI2sob0cfM4xecDaTcTcDEZIjYV1z+oNPAPAiYp4uunxGkEVw4am5L lCSDRrVA TGK2ulvPLTWVLreSMIMPXly3RquMj3ARERU2pW6O0GB6NQ6mPznsEdY2gsVNfcd/+Af5oIfrKgavCwXZKMNBG6cdOVPhP2J8ESZIw9Jh4ZNfwN8po/UqZI0eP+lnpYeTDhHsPUGiMFmz5dhCyKIPJN0SfJSKgaE/7xLTbURrBnivE5PCpqbKOHCQJv2mqbRknscvjIJPAScGw6RXKwpArgVz95vTzprVMdxjd3SHJ5JS9OLwmWp9lSXrnINoEWZAgUu6sq7pX9VRqKNgGF3ezP2yeOrH5gmk6PDFU9bbhZa4okKrghpo8OOxOzw== 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: What DAMON aims to do is not only access monitoring but efficient and effective access-aware system operations. And DAMon-based Operation Schemes (DAMOS) is the important feature of DAMON for the goal. Make the intro of DAMON documentation to emphasize the goal and mention DAMOS. Signed-off-by: SeongJae Park --- Documentation/mm/damon/index.rst | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/Documentation/mm/damon/index.rst b/Documentation/mm/damon/index.rst index 48c0bbff98b2..2983699c12ea 100644 --- a/Documentation/mm/damon/index.rst +++ b/Documentation/mm/damon/index.rst @@ -4,8 +4,9 @@ DAMON: Data Access MONitor ========================== -DAMON is a data access monitoring framework subsystem for the Linux kernel. -The core mechanisms of DAMON (refer to :doc:`design` for the detail) make it +DAMON is a Linux kernel subsystem that provides a framework for data access +monitoring and the monitoring results based system operations. The core +monitoring mechanisms of DAMON (refer to :doc:`design` for the detail) make it - *accurate* (the monitoring output is useful enough for DRAM level memory management; It might not appropriate for CPU Cache levels, though), @@ -14,12 +15,16 @@ The core mechanisms of DAMON (refer to :doc:`design` for the detail) make it - *scalable* (the upper-bound of the overhead is in constant range regardless of the size of target workloads). -Using this framework, therefore, the kernel's memory management mechanisms can -make advanced decisions. Experimental memory management optimization works -that incurring high data accesses monitoring overhead could implemented again. -In user space, meanwhile, users who have some special workloads can write -personalized applications for better understanding and optimizations of their -workloads and systems. +Using this framework, therefore, the kernel can operate system in an +access-aware fashion. Because the features are also exposed to the user space, +users who have special information about their workloads can write personalized +applications for better understanding and optimizations of their workloads and +systems. + +For easier development of such systems, DAMON provides a feature called DAMOS +(DAMon-based Operation Schemes) in addition to the monitoring. Using the +feature, DAMON users in both kernel and user spaces can do access-aware system +operations with no code but simple configurations. .. toctree:: :maxdepth: 2 From patchwork Tue Jan 10 19:03:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13095552 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 65E39C54EBE for ; Tue, 10 Jan 2023 19:04:15 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B349C900004; Tue, 10 Jan 2023 14:04:12 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id ABC95900002; Tue, 10 Jan 2023 14:04:12 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 95D89900004; Tue, 10 Jan 2023 14:04:12 -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 86C3A900002 for ; Tue, 10 Jan 2023 14:04:12 -0500 (EST) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id D2AEDAB5D8 for ; Tue, 10 Jan 2023 19:04:11 +0000 (UTC) X-FDA: 80339814702.21.26A2BA7 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf20.hostedemail.com (Postfix) with ESMTP id 0D8A01C0087 for ; Tue, 10 Jan 2023 19:04:09 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=RLd4J3G7; spf=pass (imf20.hostedemail.com: domain of sj@kernel.org designates 145.40.68.75 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=1673377450; 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=2Wtf0lgjd5s4Awp32ikmUzlONvIaJWOB+WJ6B22GUOc=; b=N2GhMCbSPWJE+GgSsbmNq9My7/o0s/vofGXQRMAJn/QP+AlYd9EHL3raEiU9L1Y+abY5tS m5Kj9WOg8174IrnwdqCXY9WH8ADcYMoa6qb2HLHH8Xz9CUEtfeyEJuZANl8iMc66m6aDvx tFULzB2CYwf9vfjDQ2aQ9ftEDuPmY9A= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=RLd4J3G7; spf=pass (imf20.hostedemail.com: domain of sj@kernel.org designates 145.40.68.75 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=1673377450; a=rsa-sha256; cv=none; b=JDEMbdzWcL//dLVyMPJWTVcidpsyWsG6RVvR1GQuCy2p2wRrrCE7++MWZkANzDXbaPqtTN lYfzAE6WIf7/Bhl58WSn2Me4YHsrjxQ8QkIIYyluDxBHWJ10JS6WfGYyOeJ2tpCdL371Vr AdbMqwZHUTW5Swg3beIp8V0d5YhwoH0= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7872DB8196F; Tue, 10 Jan 2023 19:04:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9BFFFC433F0; Tue, 10 Jan 2023 19:04:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673377447; bh=z4OiBFIdAY53y3j04vvpLGBRlRRZlDz1MLs91H9dWgM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RLd4J3G76wYwVxSsaSIQPTKHrZbFVa3HMM1Gckqux+XKZcOj5l6ii9Jr0d5ojGaYb OaFXjgnAYAadqc1LQMKbr/wchU1RcH/S5srEO9WUXaQJQPM+kREfCpLLSMiLMLYf3H gDzFMCliEdHfnyVRMgNQz+xK5d0pqnAsKfUIEaT+Oexsy/K2x/qwH49JiW/wPCMoxr 9g8XpPSA1eSKwJO0CRhxv0rQ6oyzoFAibgVTGMFfGM+PwtytiJ2AY9IwPuYNlmbuFX 2fNEHHLpNzidac6lxcf3Yjhk5+923fksLblXxOfMoVoZtpzL1pk4Nnk8j+L3HhS2GP J9X688D+f9i7Q== 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 4/8] Docs/admin-guide/mm/damon/usage: update DAMOS actions/filters supports of each DAMON operations set Date: Tue, 10 Jan 2023 19:03:56 +0000 Message-Id: <20230110190400.119388-5-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230110190400.119388-1-sj@kernel.org> References: <20230110190400.119388-1-sj@kernel.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: 0D8A01C0087 X-Stat-Signature: scj7qkieosqf3whqm85sbb4byewkdfis X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1673377449-232851 X-HE-Meta: U2FsdGVkX18lYeuAwSf0qOFJc+rQEWPpA1vEpQSnNPP7Cy2n659EHOR8m931maqtSAR48lTe8eMb3ukd4V0xO2escCToiOSnVqPxq8yJ04/SO8m2pSeeWXWfT2ygtDw2iYlyn8NSHMCkNNRDh9lahFe4K2kcmPSvSe/Nix1i4OPc/GbVN2Gl91DVeUzXcyE68abHWbnN39XgjuzDj6tbPBWGGlg9GC9dkrp0jh5MyefvVD9/I4wb40QFfk85hCIagpD6+BUELk3yq4T2O3yw74G42Bf0oF4BuBtankeT8nJxJNBII9TqCG2cGvpcFDPWEjA8Y+kiUQxzqkqXDCovUw+fHXwFGM4VFXg2liNSLQz+y7HZWDGKC0GdrsWcvWFp9NBFM9uvK27cm+DIVHyGBm6imebgzrkTpvpl7Cuh7thQmdFeCz0skkrOhQ7hDgbfZqjl2IsXgFDoO0U6w5QhIBiUwAlCt/3VscqwDHpYHjIhATk3SNBZprdHcpo1sb6SmKLVHNw20WM9AKFAhMx4FRyHHFWo9NvkpaXAkWX3SVU33Mpexv81I1HcPiVFw/pcbUv04qWZLACGYpJmmBNHdRqxz/kYiDIr1W/xXkz2/OpFRTXwNJN/UpjA6A0h49SiPjaqxkQ6YwyP/fK7+9L5F7KAGw8e1g3RQf6EYcckjDWZWlLD4PaFPmEeC8yETSFwoufO1UyLqix15Pkm0NazfDG3nHp+PhQVntDLFGlHGclAPnJtTQPUb1WQNbDO5dECFOD0lrPyAVnw49K1gQZjkW7qlweIi9bWxbRgKTVgZ3L1dYSLXZBogf88QKM0zf6Gwayy5+3VQUlIhfNA3y+sIQQf22d9F6JB5ogv6Q326imGUhZGcW7sYr4rDoXNVVPM6yxQN9yYVPjyy1kh2te46tmF268IpYnq6xOQFfHRJdfJ4in56M+r5XMZ8IOjc94JO/M6ax2izjejAkx+Nm6 eJdHwJt9 F8B+ivsxViAchg92n83h82bmnoLCqERXBdr8yv46Ge96KwlqhH9AYDsjeSPUG0wPunA1A 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: Supports of each DAMOS action and filters are up to DAMON operations set implementation, but it's not mentioned in detail on the documentation. Update the information on the usage document. Signed-off-by: SeongJae Park --- Documentation/admin-guide/mm/damon/usage.rst | 41 +++++++++++++------- 1 file changed, 28 insertions(+), 13 deletions(-) diff --git a/Documentation/admin-guide/mm/damon/usage.rst b/Documentation/admin-guide/mm/damon/usage.rst index 3d82ca6a17ff..9237d6a25897 100644 --- a/Documentation/admin-guide/mm/damon/usage.rst +++ b/Documentation/admin-guide/mm/damon/usage.rst @@ -279,14 +279,25 @@ The ``action`` file is for setting and getting what action you want to apply to memory regions having specific access pattern of the interest. The keywords that can be written to and read from the file and their meaning are as below. - - ``willneed``: Call ``madvise()`` for the region with ``MADV_WILLNEED`` - - ``cold``: Call ``madvise()`` for the region with ``MADV_COLD`` - - ``pageout``: Call ``madvise()`` for the region with ``MADV_PAGEOUT`` - - ``hugepage``: Call ``madvise()`` for the region with ``MADV_HUGEPAGE`` - - ``nohugepage``: Call ``madvise()`` for the region with ``MADV_NOHUGEPAGE`` +Note that support of each action depends on the running DAMON operations set +`implementation `. + + - ``willneed``: Call ``madvise()`` for the region with ``MADV_WILLNEED``. + Supported by ``vaddr`` and ``fvaddr`` operations set. + - ``cold``: Call ``madvise()`` for the region with ``MADV_COLD``. + Supported by ``vaddr`` and ``fvaddr`` operations set. + - ``pageout``: Call ``madvise()`` for the region with ``MADV_PAGEOUT``. + Supported by ``vaddr``, ``fvaddr`` and ``paddr`` operations set. + - ``hugepage``: Call ``madvise()`` for the region with ``MADV_HUGEPAGE``. + Supported by ``vaddr`` and ``fvaddr`` operations set. + - ``nohugepage``: Call ``madvise()`` for the region with ``MADV_NOHUGEPAGE``. + Supported by ``vaddr`` and ``fvaddr`` operations set. - ``lru_prio``: Prioritize the region on its LRU lists. + Supported by ``paddr`` operations set. - ``lru_deprio``: Deprioritize the region on its LRU lists. - - ``stat``: Do nothing but count the statistics + Supported by ``paddr`` operations set. + - ``stat``: Do nothing but count the statistics. + Supported by all operations sets. schemes//access_pattern/ --------------------------- @@ -388,8 +399,8 @@ pages of all memory cgroups except ``/having_care_already``.:: echo /having_care_already > 1/memcg_path echo N > 1/matching -Note that filters could be ignored depend on the running DAMON operations set -`implementation `. +Note that filters are currently supported only when ``paddr`` +`implementation ` is being used. .. _sysfs_schemes_stats: @@ -618,11 +629,15 @@ The ```` is a predefined integer for memory management actions, which DAMON will apply to the regions having the target access pattern. The supported numbers and their meanings are as below. - - 0: Call ``madvise()`` for the region with ``MADV_WILLNEED`` - - 1: Call ``madvise()`` for the region with ``MADV_COLD`` - - 2: Call ``madvise()`` for the region with ``MADV_PAGEOUT`` - - 3: Call ``madvise()`` for the region with ``MADV_HUGEPAGE`` - - 4: Call ``madvise()`` for the region with ``MADV_NOHUGEPAGE`` + - 0: Call ``madvise()`` for the region with ``MADV_WILLNEED``. Ignored if + ``target`` is ``paddr``. + - 1: Call ``madvise()`` for the region with ``MADV_COLD``. Ignored if + ``target`` is ``paddr``. + - 2: Call ``madvise()`` for the region with ``MADV_PAGEOUT``. + - 3: Call ``madvise()`` for the region with ``MADV_HUGEPAGE``. Ignored if + ``target`` is ``paddr``. + - 4: Call ``madvise()`` for the region with ``MADV_NOHUGEPAGE``. Ignored if + ``target`` is ``paddr``. - 5: Do nothing but count the statistics Quota From patchwork Tue Jan 10 19:03:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13095551 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 1C547C46467 for ; Tue, 10 Jan 2023 19:04:14 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 47D28900003; Tue, 10 Jan 2023 14:04:12 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 40706900002; Tue, 10 Jan 2023 14:04:12 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2A6BE900003; Tue, 10 Jan 2023 14:04:12 -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 1C53D900002 for ; Tue, 10 Jan 2023 14:04:12 -0500 (EST) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id E1DAF142126 for ; Tue, 10 Jan 2023 19:04:11 +0000 (UTC) X-FDA: 80339814702.19.57D7AFE Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf22.hostedemail.com (Postfix) with ESMTP id 445F2C0047 for ; Tue, 10 Jan 2023 19:04:09 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=dWdbcT4V; 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=1673377449; 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=Oes83oTo8uGGWs8oUr6pZVq8AolZTWjuo6r0euGuOHQ=; b=eFDNFfJSvrCv4cJeZaVOIkXcbZota36gayCQFZpgsk+F8nDAEqzOQfR5yk45sZ8ZL85yPW Ik+Je/8sPdVkkWi1BZH6CPyt1yiSSP9gPh6ABa6M9/0kgNXeek57ReVFNgWXSScq07Icoc te1G/+Fe7L5QpZB8qCjskhRXe0S2HVM= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=dWdbcT4V; 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-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1673377449; a=rsa-sha256; cv=none; b=OyoASpbQrunyjLrAeCf/0AFUHWQDHfFvJcbT0z4uQHFCjqRrZLZ0vZaBM9sEHi1g7lfi+c 8PEr4rCe/VdrkdB8nmMlyK1rtFuRIl9DScxqlx1K0GWKSfJt2QwtFGbvEByEfCYcZt+Smi SmKEqTtj/weHjIanSkFEoA0kWLbwPek= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 796886189F; Tue, 10 Jan 2023 19:04:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65048C433EF; Tue, 10 Jan 2023 19:04:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673377447; bh=/ftDYRYihjGl5PEz5Dv1FCnL2ESZwAkvBGHkxClfATA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dWdbcT4V6ti0Ll/sRjROvWkvtNQCTLv7+0IA+XG0QqOdhMMLgUnm9HgZ6MnDDqEOl dngadbkAJrq2Vcj6erIyqDlcg0E31UlwF/+Id7rxgO3NvcGdeYMCONmYVP+oAiH7x4 TO1md/05eBEiK10d48YhUKg5Gx6E2K0Y9B6FaQ2yhy4EBLYZVq1+ecmxQqpzpN3X/B AH9Ox0o/TVtIAvmzC8VLqBZ6zpmGCH3dWfk+S1l4i//UegMvXlBHbyTu5F5LbItnIS XrTV3fqkCIvSfQUTlspFp8isWnSa3kugYmoPy5NFx4NNsWlxZaI+EA28ngOGYVYwZ/ v7ZC9g9RiHveA== 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 5/8] Docs/mm/damon: add a maintainer-profile for DAMON Date: Tue, 10 Jan 2023 19:03:57 +0000 Message-Id: <20230110190400.119388-6-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230110190400.119388-1-sj@kernel.org> References: <20230110190400.119388-1-sj@kernel.org> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 445F2C0047 X-Stat-Signature: rqmoa13knrmszrm6bw77djh59f13ac5m X-HE-Tag: 1673377449-973906 X-HE-Meta: U2FsdGVkX1+ZXdh3aGYPaeoZ0TVDetNEt5DSd0ai4kqTvKq5K112Gc/infF+kFoMFrPNznUskf5UIIhnQWDEm/XbYHI4OABJ9C/oyMWWlpwu70R+hjryWE0MvRo5vkrUYckdz8ILrpdaarfF6Qh3CwhYr9eI/gFPq4FzcqZlV0hPNc+ifF19tvm6gtmYSYMu6BVq/nkbJts/gZiZXG+ZiLVm+uuBhzYaIcvFtK6uaQmoNQwMQSAa+68RMYS5v+hlwwtp4e33DhEb7MmFAl4vFeE6BlF87zxsnwZ+69r+e/1R42Tj016qyWVrrcN7bXXiHuiHD0qoEPFBh4JgsXnQkL4/mgqk/e0XvD+a4qwzznLDIo/rESHxs4vVd8EK/cPty991Kr/y1ltYIANoHRQP4ZiivWXnjbWSxWLWxEM4Aeb6cMEPsQw35jzgzOIWCM37lgHQbEUwJgqD4ibG66yTyMy7Hg5giZ0YLKcBA2Rh7Jhmia+bB0OmDbgwPOl2mqqTe7Yb7yx4SheymCUX7Zslf7iCTm0LncfabFXa4S2UmPVdvhYPZN7TWfYam8cc0HQJ2fko0T5HGorZwn+VEpzc3t9/t3bDs+DfvWTJZKUyDC4lO1UyHo4wbLgC9XReaLRZeSAt7kEI6fQXOwWMONEpSyLJEu51D+tcqKlLgKM8nndcjqX0BTndMi5W4gUe+zk+rSOeCUgaTuDbmr/66pFtEn9wVWDPLRqpzgNebWewlhrIwYuAzvs4wrRxzFindfU+bZqq5AwKDugO/loYPxuAUf/ceNQcWA9HGwT28vRcsCE9mR/fG0Hwrvp95zFpgHmNzIf1vKMdg5QOw8vobCls0c26w2wCVIuVwH1c7lVUgASA9G/fqfhhJowGSVjqn1GDLSU1Sp2ON8JMsgcWVzY712mic+j6noIxNxeyI7nEUjhKADGGZWBtD3ZR1JB+FVa67iWysaEABftDZia9FlZ nkAEw/Nu ARuwNrSU/7EXVVeokRBT/54KyHLsi5z3kGMfmF0wZsnvE/pUq6oexCDHpcELgdhnQRsPH8RYEG411jSs= 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: Document the basic policies and expectations for DAMON development. Signed-off-by: SeongJae Park --- Documentation/mm/damon/index.rst | 1 + Documentation/mm/damon/maintainer-profile.rst | 62 +++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 Documentation/mm/damon/maintainer-profile.rst diff --git a/Documentation/mm/damon/index.rst b/Documentation/mm/damon/index.rst index 2983699c12ea..5e0a50583500 100644 --- a/Documentation/mm/damon/index.rst +++ b/Documentation/mm/damon/index.rst @@ -32,3 +32,4 @@ operations with no code but simple configurations. faq design api + maintainer-profile diff --git a/Documentation/mm/damon/maintainer-profile.rst b/Documentation/mm/damon/maintainer-profile.rst new file mode 100644 index 000000000000..24a202f03de8 --- /dev/null +++ b/Documentation/mm/damon/maintainer-profile.rst @@ -0,0 +1,62 @@ +.. SPDX-License-Identifier: GPL-2.0 + +DAMON Maintainer Entry Profile +============================== + +The DAMON subsystem covers the files that listed in 'DATA ACCESS MONITOR' +section of 'MAINTAINERS' file. + +The mailing lists for the subsystem are damon@lists.linux.dev and +linux-mm@kvack.org. Patches should be made against the mm-unstable tree [1]_ +whenever possible and posted to the mailing lists. + +SCM Trees +--------- + +There are multiple Linux trees for DAMON development. Patches under +development or testing are queued in damon/next [2]_ by the DAMON maintainer. +Suffieicntly reviewed patches will be queued in mm-unstable [1]_ by the memory +management subsystem maintainer. After more sufficient tests, the patches will +be queued in mm-stable [3]_ , and finally pull-requested to the mainline by the +memory management subsystem maintainer. + +Note again the patches for review should be made against the mm-unstable +tree[1] whenever possible. damon/next is only for preview of others' works in +progress. + +Submit checklist addendum +------------------------- + +When making DAMON changes, you should do below. + +- Build changes related outputs including kernel and documents. +- Ensure the builds introduce no new errors or warnings. +- Run and ensure no new failures for DAMON selftests [4]_ and kunittests [5]_ . + +Further doing below and putting the results will be helpful. + +- Run damon-tests/corr [6]_ for normal changes. +- Run damon-tests/perf [7]_ for performance changes. + +Key cycle dates +--------------- + +Patches can be sent anytime. Key cycle dates of the mm-unstable[1] and +mm-stable[3] trees depend on the memory management subsystem maintainer. + +Review cadence +-------------- + +The DAMON maintainer does the work on the usual work hour (09:00 to 17:00, +Mon-Fri) in PST. The response to patches will occasionally be slow. Do not +hesitate to send a ping if you have not heard back within a week of sending a +patch. + + +.. [1] https://git.kernel.org/akpm/mm/h/mm-unstable +.. [2] https://git.kernel.org/sj/h/damon/next +.. [3] https://git.kernel.org/akpm/mm/h/mm-stable +.. [4] https://github.com/awslabs/damon-tests/blob/master/corr/run.sh#L49 +.. [5] https://github.com/awslabs/damon-tests/blob/master/corr/tests/kunit.sh +.. [6] https://github.com/awslabs/damon-tests/tree/master/corr +.. [7] https://github.com/awslabs/damon-tests/tree/master/perf From patchwork Tue Jan 10 19:03:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13095554 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 5DEF0C54EBC for ; Tue, 10 Jan 2023 19:04:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E6753900003; Tue, 10 Jan 2023 14:04:29 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E174B900002; Tue, 10 Jan 2023 14:04:29 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D064F900003; Tue, 10 Jan 2023 14:04:29 -0500 (EST) 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 C29C1900002 for ; Tue, 10 Jan 2023 14:04:29 -0500 (EST) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 8E13F41EB1 for ; Tue, 10 Jan 2023 19:04:29 +0000 (UTC) X-FDA: 80339815458.16.8EAFCB3 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf05.hostedemail.com (Postfix) with ESMTP id 61067100045 for ; Tue, 10 Jan 2023 19:04:09 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=temperror ("DNS error when getting key") header.d=kernel.org header.s=k20201202 header.b=fw8T8JX5; spf=temperror (imf05.hostedemail.com: error in processing during lookup of sj@kernel.org: DNS error) smtp.mailfrom=sj@kernel.org; dmarc=temperror reason="query timed out" header.from=kernel.org (policy=temperror) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A71456189D; Tue, 10 Jan 2023 19:04:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 235EAC433D2; Tue, 10 Jan 2023 19:04:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673377448; bh=yhlx99wApZuf1+oxV+tS5tr85ZKJgTLb2t8Dhjj3q6I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fw8T8JX5qowhaM7imY0QxW2TLNYGjTeDjVNkpnJQmEbxf5CNLt8o+rYHK3k4Db4Ct JdhmGxrvKh46Iz1btrYZ2FRwg6N3qPm9NMLs8Ocpt7517+bN7F4lVHnKks+XUAqqsk f/2Tas3X/hU7xq+zQwB5Hj76Z6YB4voWxzE+Ql6Hbcytnpo4Qt6IWBimgn+D0cxp/4 ijA/gPb95yECvGpimIHZChLCYtAfHO59f1Hyh+cvixYJyYwUWlM/W4e2JX54hUXYL6 cWm5irf5P0+fa+F7BOltbdvyueoCHNnKyEtHSkMGWBFwM+4mMSf/F/L9Ln4J/tzmoP EYy2wqxHACKIA== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/8] MAINTAINERS/DAMON: link maintainer profile, git trees, and website Date: Tue, 10 Jan 2023 19:03:58 +0000 Message-Id: <20230110190400.119388-7-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230110190400.119388-1-sj@kernel.org> References: <20230110190400.119388-1-sj@kernel.org> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Queue-Id: 61067100045 X-Rspamd-Server: rspam01 X-Stat-Signature: sn8gjtuq5uokrdo3ecpjqcq57eebbe37 X-HE-Tag: 1673377449-751330 X-HE-Meta: U2FsdGVkX18N4hov/eFiMhoPpTpDPvGnfDw9zIHb6zRMktlt2CifvzZ7Gj67Lj+L7r5rJCEUTysnqt4P+T1jHx87oGiEWOnIfIMmozaBV4LPIcPfju2u0VslD0NWu8kvErdxDklm+vrNvy7k6sOPhYEiT/7iRu+1vT4tjKvvLHIr79yVipEkxJGFapjiSZJwcvHxJUZKBmFGZPKJ8UNOBsg/0qHxsNsaiETw+ahf1JzrXhPx1VvqmqQsMZJ2vBBP4d53XnqBvLcG9JNa7kA2Uxn6lU/PROP9Zvra8YXejkot3+TGOgRPMLWpPryLXUjxrl2wC6LRyrUvjLDGOilzbLPwTI+t88COtvLzlLLn12OCwNB8JkG5cZjXWgSTetxna067fpuMuWX9WTq3x1O57NhVi22MuB2b5ngqn90i2w8UNJLv82T+JopikU6meQcG3tD6PQEvhbG7/4L0WwmgrI6c5ae6DbMszy+c4PT84p563CkVqzZkOZMU0ivJUNG7d9FWcUEWvm+wzItLf4s3ro9xi6yAQYqWTUO1eflpFOyS1Yczqr8ow2SYlArY/Fg+Mzg9IgQYFkHN4pyHel9+FRmGkAl/N5Ee5qPaCH6deFiJS/qhcCfEwT/RliFtZjUrQSuVesCOCjfyDK1oXxU1+++JGd8fmsR9sGEwYQIqf0qhJahOqwBhYO8WFp27AyJCtVIkf0f0bEB0i2pcwPu4xknBhQbutx14bYcmDhJ97J37Sfd9bR0lqWhv368p9AwxCTKGkrwBAk+W8qKQ47Unx/spbCzS1fsPbGvt4StkZYmnwH36PG/B/DedMUH/RKpqaA3uRuG3I3Tuy6DSijnAan9+k66kmnICQgPT4E240Xrkjo9cXHCZw5t52rhB1P89MotncZonJujvc8EvA8q5j218s+pUH+cLqj8Pogp6KLEBH67W3ZLgkKljJIJov9sjN5xcNyhuwIepEHXsd4g pYGVZFlg DTltIsF933YRiJBOzkhUZqWFE3T75tgKODXjqa9s3TaHdhhkOZtfqActDhpm7bLWetmJeEZohM2ZSy5OlEm6zgspSL2eZoM5vHHY3Q8JS2kMHSqKbfTMeFsIV8M6y9YsoKmY9cePsqnsM2cVZgl9UVogw32FZaGRCjtFF+XmeHvwZtgX2I87CkbSqcbGR78NriNcaA0fYmHqImvgZwHrOxe0x6jA4BI3459O7Y1jZfq5ApZ96S0+k8HP4wnd1OH0JypcFMG+AT1shUq/OMlCpIkv225bM2WNEdwpN+nvSZKoWUpzBOMPMBv2OZPwBLRiVeS3ZuQgK5pwt40YgB+15AIZd4q3T6O+4fvO6tZNUOgclP1uLA7QGmXJgn0tUWNzz+05DdVqZvceEVUDOtwU12xeDA5bbG1rZ8kzSe+rGwbM5paM= 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: Add links to below DAMON development related resource to DAMON section in MAINTAINERS file. - The basic policies and expectations of DAMON development, - DAMON development trees, and - DAMON introduction website. Signed-off-by: SeongJae Park --- MAINTAINERS | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9a0c3d3b9093..4b222f67663a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5790,6 +5790,11 @@ M: SeongJae Park L: damon@lists.linux.dev L: linux-mm@kvack.org S: Maintained +W: https://damonitor.github.io +P: Documentation/mm/damon/maintainer-profile.rst +T: git git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm +T: quilt git://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new +T: git git://git.kernel.org/pub/scm/linux/kernel/git/sj/linux.git damon/next F: Documentation/ABI/testing/sysfs-kernel-mm-damon F: Documentation/admin-guide/mm/damon/ F: Documentation/mm/damon/ From patchwork Tue Jan 10 19:03:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13095553 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 EDD47C54EBC for ; Tue, 10 Jan 2023 19:04:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EB787900005; Tue, 10 Jan 2023 14:04:13 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E3EA2900002; Tue, 10 Jan 2023 14:04:13 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C9251900005; Tue, 10 Jan 2023 14:04:13 -0500 (EST) 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 BB97E900002 for ; Tue, 10 Jan 2023 14:04:13 -0500 (EST) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 8E7151420C9 for ; Tue, 10 Jan 2023 19:04:13 +0000 (UTC) X-FDA: 80339814786.21.E441396 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf08.hostedemail.com (Postfix) with ESMTP id 5D58A160018 for ; Tue, 10 Jan 2023 19:04:10 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=CLZxihBA; spf=pass (imf08.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=1673377450; 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=6fUSXwr/qwssl75csLQnQRRWYjXCuYvIVz3T6VfeWPQ=; b=GmBNAVMxDhJA9o3iuMIJEu1esTRY2/Y7vepn84zgeD1ZgGW/TFqiqSKL2Z1zI/tjXn34U9 cfRK03kjFthGBa0Mczx8Wu5uahfepcyNab1NR7FMlCgU5raMndgJRsCsGHDVW+UbfTFL+s J7+EXsv5hXNzIqoPHe3+hFtDXNimMNE= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=CLZxihBA; spf=pass (imf08.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=1673377450; a=rsa-sha256; cv=none; b=3VpC0cmvg1X4MIxjPols1bpmuJGH8DYQWgS997hKc5Wzd+cqUutbTwSqN+Kp5QAkCzlhxt cg/vpEnSOPryhGvwxDs/122s3/UUQgzp1mURLzeJssrb7f7vtKHNKwNwze87U+oTOltyvt 2eouxzy5/IYra9ZK8yB/K6ZLlr43At0= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6171A61881; Tue, 10 Jan 2023 19:04:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1CDBC43396; Tue, 10 Jan 2023 19:04:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673377449; bh=y7EJfcMY/StD0BzUoTQruwXSI1p0oqW6ITb/hdOvcrQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CLZxihBAiJLZVfs0Gql2wf2QPPpAjOoIvVTvC1iFyj15MBftu/CkfH34Vda0M8H6A LVdNE4VpqvAcjUx/zCJtqza160cp3d50h7xIVoxs60At+V3fa0aN6iunDJ7NIIJT0Y uLELoRXyzQpaM/X4QQJzBSrER3vmzj0DSOzyhP+cmAqIO2ldcW1K5BrRXmvprqlOio kWJAaRkw33Y7Qb2FfE3pAkEjdB919Knkdv2dqXm3aJMFHqS3pmTEWyFN8SzIhwt0tx J9xaMoKq9Ad7/6vJKGdeOLKcMhTsN2yzZvnJLAmfSx3F+TGIGrmbMuIwiZejTfiXQw gS7Fy5LrDtfzw== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , Shuah Khan , damon@lists.linux.dev, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/8] selftests/damon/sysfs: hide expected write failures Date: Tue, 10 Jan 2023 19:03:59 +0000 Message-Id: <20230110190400.119388-8-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230110190400.119388-1-sj@kernel.org> References: <20230110190400.119388-1-sj@kernel.org> MIME-Version: 1.0 X-Stat-Signature: kt6y4g61pbtgckxy8hfrxpu8qyyhf4uk X-Rspam-User: X-Rspamd-Queue-Id: 5D58A160018 X-Rspamd-Server: rspam06 X-HE-Tag: 1673377450-343879 X-HE-Meta: U2FsdGVkX1/2WDCcWkg4YXQ04ecp7VfJqPI3dAd+mbgAYYavIM3PfmNBRwXsaGZkrGZ6Ls9HRURY1VO8o4T8Q//y6q97rXhVFYf79ti9N7CazCf8+6cRAbF3yMxtzxdbew15iJQhzANDy0hCLYMw2V5wR4tcRdgo9EJmdOUjetzpF46FQbCRWvb0d86PKxLzj8BdU+kenm68i4+8Tm+hrfI0K4Zj4McWVw5oBQ2LcrOkCVIvuTPvLIFhlHq/lSEkAyOnQ4km+xXUQq/pYc/9Sg9N+7tJVLXJHBicZdlWOxxD8i4NZED0IoFYpMZGeoYAqpj7h7N2U8jednYVRvQLRHeAq0kq855qJq+vVD7FZ7TsgUEtm6Q3BkSgttQqSP95WxBWXfndkYZekwGQ2mlwRazUxGAAEkGNHYXWRhaLydTxHTwWX+7GrK91fGjsenMk11IAlwHAb5HOCU+QXZGpvEMJMGorwkJoHEsrijA9GBInXgBpymSv2ABQEdFelo7ERs6vluUyP9q3H9d9xz6inSPolzkmJaV8/b0T/L0K034qHqLIqNsHpBDANPORGY12mO7VY+Vl9skDSzeWyXLYfM09vFdAsAV5rtwY8sXLSE4GgRElZNEkzaxfF9pN2VAzs+0cavUEXV7dhAOOU2UYWooWFmaa/tQON5JGYYnHXOXPXg8XqkIVi0zoLzjcjA2Yz4+l/WuBQVcsZIq/2iLjEE71UP6qv/vcQGlOPr+AyGjMCFL7P3e2fTy1oI6n/NiUgg8TXQyEEU3CsszcQBqaaXANcg8E0V+bHIHx9rwW07uapR2aq8ZYx8LIVN1tXHi/yOMwgyGALTHwMB4SWG1AzFwiwkf179EquLNgh8TGhSICkIM+5MiVUDW/tYngfAX/bMczqzwv80i1B6H2Um2WDuU+b+Nl0zGQBLvJNHbBXd2mYVzLzAA6ggIROTHl7WuOwgvpz2iYfJqmqD3noyG tz/Wq53C CozJKdDTNagYNli0pNtKeg33rKkS6v72Mng8RafkKaUmpeH0ATjCHZCoGJQW+1zRTjZLH 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: DAMON selftests for sysfs (sysfs.sh) tests if some writes to DAMON sysfs interface files fails as expected. It makes the test results noisy with the failure error message because it tests a number of such failures. Redirect the expected failure error messages to /dev/null to make the results clean. Signed-off-by: SeongJae Park --- tools/testing/selftests/damon/sysfs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/damon/sysfs.sh b/tools/testing/selftests/damon/sysfs.sh index a00336ffdcad..bcd4734ca094 100644 --- a/tools/testing/selftests/damon/sysfs.sh +++ b/tools/testing/selftests/damon/sysfs.sh @@ -24,7 +24,7 @@ ensure_write_fail() content=$2 reason=$3 - if echo "$content" > "$file" + if (echo "$content" > "$file") 2> /dev/null then echo "writing $content to $file succeed ($fail_reason)" echo "expected failure because $reason" From patchwork Tue Jan 10 19:04:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13095555 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 0FC65C54EBE for ; Tue, 10 Jan 2023 19:04:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A96F9900006; Tue, 10 Jan 2023 14:04:32 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A47A2900002; Tue, 10 Jan 2023 14:04:32 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 93625900006; Tue, 10 Jan 2023 14:04:32 -0500 (EST) 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 836FA900002 for ; Tue, 10 Jan 2023 14:04:32 -0500 (EST) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 2C2EC161D6C for ; Tue, 10 Jan 2023 19:04:32 +0000 (UTC) X-FDA: 80339815584.15.095619A Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf02.hostedemail.com (Postfix) with ESMTP id 8CA968006B for ; Tue, 10 Jan 2023 19:04:11 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=temperror ("DNS error when getting key") header.d=kernel.org header.s=k20201202 header.b=k9iw2rZ6; spf=temperror (imf02.hostedemail.com: error in processing during lookup of sj@kernel.org: DNS error) smtp.mailfrom=sj@kernel.org; dmarc=temperror reason="query timed out" header.from=kernel.org (policy=temperror) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7DC0C618A9; Tue, 10 Jan 2023 19:04:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6BBFCC433F0; Tue, 10 Jan 2023 19:04:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673377449; bh=CjhxKTgVu+lPp4HMYYUYnXVejaSmINVAMJdDe1Xu9yw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k9iw2rZ6IgCzqVQBdYfz7/bh7pKhBy1FK+wxTqUl4jmsut3RCJjFMQ1iXDcc3yG3g ubQRNrcDKuML+gAAHhG/o2oIDoU0TNhHHsHQytYLNAHxwWHfHNvbtBi9ytfESI4MnH jphspOWxy3DGuZw7GJ9uRW1Vge4F5VWvuzH2dw3zS4uPT/Qm6JaveOZol+/Qmximra z0bItMD2PlFtwfc92SGvmZTfoLuPUjMbiUV5pdVgi64g2QU+GBFxkDLhZH8tCZZn/u 55l2ZlUFIEAZtEMyfMhDiv4kJAus9+cQjzHXnbUXQoiiYsN4VQZjLPdrXhoaGy9nkw puw4xPVZ3JB6Q== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , Shuah Khan , damon@lists.linux.dev, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 8/8] selftests/damon/debugfs_rm_non_contexts: hide expected write error messages Date: Tue, 10 Jan 2023 19:04:00 +0000 Message-Id: <20230110190400.119388-9-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230110190400.119388-1-sj@kernel.org> References: <20230110190400.119388-1-sj@kernel.org> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Queue-Id: 8CA968006B X-Rspamd-Server: rspam01 X-Stat-Signature: motit8rayi6kwq8oam7oiwk8hgr96nrh X-HE-Tag: 1673377451-781330 X-HE-Meta: U2FsdGVkX1+tcvOwmqSlxQ0kL1fOPUGVXrejoTOG3WgFI0EmQAMUQHI/hg3uAxOo1PJG8vsNOIuStfI8QVXw/2aJkxrnit1pHEP1/EdwmgwVwcymZKwysRWNtGg9fnAfs/Jet3R5RnON3aFsBAlTNlDgjJeRpwDhzxAKUyDb4d5hnvh/n+MqCLLD2kQGiMJ9JonHPVOpuJqVS42Tt9cEoqeS/buc5z6k/upIrIV5nFnbN0+xuMDhP7UMQaTlrHAcVvmjQjBsggtKZxkJxaI+aZQC3Vhs7cghweuIAhxku1tCLFvtyuE4JHDzpRrvW/dqXhstWeZLHOkjKxa1OT+um5V8Z0n/vTVZ9GzDj/6PGtHDZYBFewspdLqiINWJxVdD6MjrovFZY7VES4DL8bpCby8ww9fvlRS1xhjD02JeODVRlXBfEyMkRPKVxAd3yrK4PLhhIEsNgX+ijXR3ddSN5WxDP03ANRyhzH0bHV4k4XRl0oRKV1EpDG7ewl9l0lNY1OxQJvZQtg6OnvMMmVZPh5OG09UfoLNJBK2isC4ue39bNqAPh9UAYGYpnFtxYnCzAkJ+vYys+TFDzKxTHqx3IA3MkNqUNSEt8ALP8mUJFu6sCG8JKo3vLRZRO+CDEUTN71TdC3r8eiz2nRhcGB+kAe2cN3X0aKTiQEqwcEkHqXpZ/3XIQEcQNPT9ekkhlA5MJrX8ll1aUejTtc9qq4V1oLayiaBdU5C0gg4aW/xS6vb4JE7U3V01BR6D4xVaG9Tf52/hTFbbwYup0X7myGKMpwsJCICF1EKq9F7RlCNKBbXJKJi5Zjgfb93UV7WbYLwmAOn9/Q06Nx8spsQDEOr878wD3L+b80ApAfx0+Lfi2dctVnpn4yGj0lgCaRCKDNRgt5t80r/G4A6seShPAw7ArYMfDEwL2sJf3FPm8eFe9fmjpqO+bAYqQG35HkQcLwd8O0UGjMbPDF/a76Kv0iZ FZ9uUhc4 2kOH5UIyI1COHUrQvMFY10jXSgVK7ZPr2pdVnlLQom3AP++19PoeUM5zZdK1rtCpbHLT42Qbf2cwt+7b5Dt7w/UsWG0rtbcNYy7vj5gPeik78RPsMAS8D6ZsGs3lZvA3HN+XPANQIdq8Nzo/pkoi0qlOD52CMVRRIeIIC8GkhOQB4Qp9GfjuRFveMV8CFk5pjqB6edS+VdfqMSia+n3zoFr0YWdf8PecFURh+/xDGSRhSjuA3gMT0neqRLpvvxGiykJHAhTKqXN2p2TOrKVDXBYriJjznx8vkUjNsWPYRwstdoiIwxV2NsxUACO97ApzsvEIoKzAsF7ME3QQIOKe08vtyx6NBNI0Thfn9 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000011, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: A selftest case for DAMON debugfs interface has a test for expected failure. To make the test output clean, hide the expected failure error message. Signed-off-by: SeongJae Park --- tools/testing/selftests/damon/debugfs_rm_non_contexts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/damon/debugfs_rm_non_contexts.sh b/tools/testing/selftests/damon/debugfs_rm_non_contexts.sh index 48b7af6b022c..f3ffeb1343cf 100644 --- a/tools/testing/selftests/damon/debugfs_rm_non_contexts.sh +++ b/tools/testing/selftests/damon/debugfs_rm_non_contexts.sh @@ -10,7 +10,7 @@ dmesg -C for file in "$DBGFS/"* do - echo "$(basename "$f")" > "$DBGFS/rm_contexts" + (echo "$(basename "$f")" > "$DBGFS/rm_contexts") &> /dev/null if dmesg | grep -q BUG then dmesg