From patchwork Fri May 3 18:03:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13653180 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 0F6EDC4345F for ; Fri, 3 May 2024 18:03:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 931BE6B008C; Fri, 3 May 2024 14:03:26 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8E2556B0092; Fri, 3 May 2024 14:03:26 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7D0736B0093; Fri, 3 May 2024 14:03:26 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 5F0266B008C for ; Fri, 3 May 2024 14:03:26 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id D15A3140F4E for ; Fri, 3 May 2024 18:03:25 +0000 (UTC) X-FDA: 82077856770.16.925DCBE Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf08.hostedemail.com (Postfix) with ESMTP id 2AF63160014 for ; Fri, 3 May 2024 18:03:23 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=c71lokwp; 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=1714759404; 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=bCk72laVBztUwGuMQyJy2WFbHtRbrtEJhKEddtlywW8=; b=LrRUpFiAfeiRU9iwsRcDYNVDH97xRxZQMrSviGtga708RDQ9mE1P4KurkdrF4ezECeSBqf CASrfg/u058hjnHs7XYTqWcFQ60vqv5t+B+Fzl+Z3iA/N9HjVJDHA13mYAmRIFiSf3rRpt 7chH7v+lI/pRMZX5x9ht3EFqCi58yf8= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=c71lokwp; 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=1714759404; a=rsa-sha256; cv=none; b=BrnydpY7kQIL9PDk3X4L+Irn5tIhSAkhAo9njTXzCsNn/C+kz29ip5cbS9mxc6abnYxfqi Fzs8pEToQkImicqo34727V/H0Bp43xxP2HsvIZ3H16VoFpR476q5W5g8f3RGzDxjYNwVo6 e3at4SIv445GDTZomMKlw/J47Jlvrik= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 0A45261DFD; Fri, 3 May 2024 18:03:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52DEFC4AF1A; Fri, 3 May 2024 18:03:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714759402; bh=zSTAIYDsysAOFhSKZc274DZ8idV6c4WJQL8j1/BLSlE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c71lokwplM4u6LWwWT9mEgvfvFZezL/myTEwABYNAPeXhXSK7pe5V2OOUbsCJblvJ mWEN3cCe5wg4UwB5LxnXWWrbiSkv7fFox/yfAUF3vp3J9oeSTb+oQmGRMzXdPyKX/e MlbYAfhdOK5DClrKc6TbgdoJMmn+08aYUS5exWq/5uWmcOD3aYGDPKjmZN/RQcgmJd Pcp/I3auQn0krCRzZ16b4PZMgXMARPIuN7gk1scj5aF1f47SteyRr5MMRRRItlQ8/I QHo7GGPcAMTWkReXmaBfoSobz12v5bsgxsDS3/Y+dxrR/MeGunw01ia48IkfLV/Vvr ec8AGXSHMGx/A== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/10] mm/damon/core: initialize ->esz_bp from damos_quota_init_priv() Date: Fri, 3 May 2024 11:03:09 -0700 Message-Id: <20240503180318.72798-2-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240503180318.72798-1-sj@kernel.org> References: <20240503180318.72798-1-sj@kernel.org> MIME-Version: 1.0 X-Stat-Signature: i46gne74mdnedxotcwx8zurnowwqynor X-Rspamd-Queue-Id: 2AF63160014 X-Rspamd-Server: rspam10 X-Rspam-User: X-HE-Tag: 1714759403-261115 X-HE-Meta: U2FsdGVkX18lzn2R5JT6VZXx5Z47cXo4Lz0IiLrMIap8D+MAOhq/xfeU2dQQBdTiyHiKdHGStyFwohZjnEMfVp33YbGScanKQE452XSFdLe/7XHna61VNMGkSdmHi32Qhc6HJk0C0VvetBQXsz3TVEgL1Lqp+hvnpyZtXeSfrGy1ajAceeRlNyEFi7/n/atCM0Y5+dR3ElO4mvJF9JqBaEFoz576KmigaY0Jyq3r8w2MPwxkn5ikOjYdRYZiuNlQ3pQDlp+GsrkBjoVxa+cYPOXiVqerLLOa67mattyjEo1fatVwIr47bpztw9ly+0gI83wEYU43gExq6u/ouTqvnyfba0dpwvqvVT8RVxK/7iQgZu1FUc1u9EW+CtsCsSu2XmDkjzYK5REiVrzefB+29eVsTzAakJhlw3qChGoUGBgnU1IMMyYnOTv1fINdjrK7eDwYyVWkr/zVM1dosnqI5Pf7BgWRHBlJFYbiV4P3Hpvnk7kw3DhzNW4m98FYz1Q9W0aPxkpR74qjvAIs1ZGKN4Sx4l4HpPcSX3ToKc5J+Wciv0Mo95qGftt1UwTJYJpPtXyYkkivJVWp/rBQVDUd5J4uGmRZmc4EyJLz+x2WR6pc8D26vOa7L9gbB50fZUpTMrOh2jOQRVGMD76lM+yKJr9DOXYLkerLst9+DIRfsdxch9FRn+23pas1MMQVEKsXZoB14q2ELzbo2wLTNpzgwFC7TeT3iVELvpp9zsjQSq81IzCgaAe4clA0lYNyRa0s44OK4/+mCVm6G9CgQmmb6PblaQT2KhiaWvLAFuc3FfODR38fS7OOswM6wloK3PINdSX7Q/zNPLKZGH+8RaKaNkfL0UTPyU3YnugvTYBT5NSJ7dh+H6y5NRcGvYBF6MbBbQd7/R5LC/FoW/dBdwqulAOd2f2VnhE92oXmO64rYfj0rK9h+aJvcC31rjMOeB7MffcZtLsVQLTpUKCCWz7 hU0VOyfJ sFtRGrgSRcD3LLliFVtYFKO3iLHkNI8RxHoy+6J1jl/77rB1/rKoYopF3OPyRYgwvE2Lm66Cyle4MQwZNcqg6NR9i8Cl67oe+SDrseoAwDKchfnb8R63f56Q8ZgKkPNxHKP0G82dLRXEsf1sIPGzxtMwLwVd3c3rpKhFi6MONlZsva0DX1VeyMAFQUD+DF8saBojubi90sB8RQCf3Yl25KSikSTTmlhbV7lBK+0qXypVpYRo3B5n/0QO9Lx05nunCu4geKJiANx3XkUp0mLcA7p3hShhQFe7NhMem 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: damos_quota_init_priv() function should initialize all private fields of struct damos_quota. However, it is not initializing ->esz_bp field. This could result in use of uninitialized variable from damon_feed_loop_next_input() function. There is no such issue at the moment because every caller of the function is passing damos_quota object that already having the field zero value. But we cannot guarantee the future, and the function is not doing what it is promising. A bug is a bug. This fix is for preventing possible future issues. Fixes: 9294a037c015 ("mm/damon/core: implement goal-oriented feedback-driven quota auto-tuning") Signed-off-by: SeongJae Park --- mm/damon/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/damon/core.c b/mm/damon/core.c index 172095e68c5d..6392f1cc97a3 100644 --- a/mm/damon/core.c +++ b/mm/damon/core.c @@ -346,6 +346,7 @@ static struct damos_quota *damos_quota_init(struct damos_quota *quota) quota->charged_from = 0; quota->charge_target_from = NULL; quota->charge_addr_from = 0; + quota->esz_bp = 0; return quota; } From patchwork Fri May 3 18:03:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13653181 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 2EBF3C25B4F for ; Fri, 3 May 2024 18:03:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 536D36B0092; Fri, 3 May 2024 14:03:27 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 49C6F6B0095; Fri, 3 May 2024 14:03:27 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 33D366B0096; Fri, 3 May 2024 14:03:27 -0400 (EDT) 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 14CE76B0092 for ; Fri, 3 May 2024 14:03:27 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id C4F7BA2170 for ; Fri, 3 May 2024 18:03:26 +0000 (UTC) X-FDA: 82077856812.12.999AD56 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf19.hostedemail.com (Postfix) with ESMTP id 89BE61A003E for ; Fri, 3 May 2024 18:03:24 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="ozf53p/Y"; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf19.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 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=1714759404; 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=jLKc0Kyg0qCIKb/rDoPKNEd4XwOknPDg1FlF0nL4bxQ=; b=ezGgrEy7NaxKK798KHLzpRoI3PohUEgE6/l0aulQdDV9G5Ax3xZ8CA/JRYqzG6+9EPWQXX QctXhcV79IVu3ADzNV9MeKjP6zPxOabmUrEUJIiL3etkGvAxORDSjRXMPmd9+3QhW2bZkQ j6DBS2lEvJodCCqUaJi96SnbyT19m8I= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="ozf53p/Y"; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf19.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1714759404; a=rsa-sha256; cv=none; b=7To2DqefodqWvWjJVjNQKhGmLwsujdWplaCrTgpiOlh+PSk9Ce7UoOp4IoOfCWO3fLd5m6 SgAlIBJ8QQTAaCHzFeR8wctAguuFHK73rvrn/Qpw6+GT6B0QlHiHfmB9k9FjrLQHUquAi0 ACd6u92t8NEClYWhTakK96AvyGRRAR0= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 967F661E07; Fri, 3 May 2024 18:03:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E110DC4AF1C; Fri, 3 May 2024 18:03:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714759403; bh=BxWQ3nfJ8G0tvTTltgrGE2Vi8fVZjZKQ8RTpaGZaaWo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ozf53p/YJ8O1q9ETgyXzeTGjW/yQlxn6NO1VcwwlyB5fhh79Z/RU1DvDX94tKHXJu NsxMbG/hnGuFZpLqegru2su4C38GCd4GeW5Quns/i/+qP9o6be8FGs4t0BGVZB55Mn 9trnxuoEJq8oeqtK7BMePrWszC+NOztLCzuHG46t7ldbbHESDRT9Dwmltq/TaZ3Y/M BE5CX1uGYcY9suy8F8PdvDWsy+Fw6WJNRGelV/7dsjeVyxYEannjrjzGitWrtL5jjT CRis0hFCHlOrM/BpzLuYChhdkNGITy96Kn3Z0ap8peht+EgMJDHn63ctEz1Q+oWGKr U+M1NpLfXp42A== 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 02/10] selftests/damon/_damon_sysfs: check errors from nr_schemes file reads Date: Fri, 3 May 2024 11:03:10 -0700 Message-Id: <20240503180318.72798-3-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240503180318.72798-1-sj@kernel.org> References: <20240503180318.72798-1-sj@kernel.org> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 89BE61A003E X-Stat-Signature: 685pyjk8of57xmatff6ef7tyegqimtd1 X-HE-Tag: 1714759404-760750 X-HE-Meta: U2FsdGVkX18COQLVTMx75Fk+sELcqptLr4Y1vkNvDj40hkB/7uilzj6y0JlgczeplX0gRdFMsEy9chGW4ACk0e2j+DzTpsGggvymICG27nDNDlfJMeTnQEQQbuBr7Xr9hzazjXjkB1kLHDCW+gOc8D6rPZvblMlKkS86SP3TgweRFxTV823Y9+lWu0F2NIIdaJQVGLJTgE3IUahlUHc2lonAmlCPkoe2NTyYd2rSubp4H58w8/h36CsgjHZi7hy2aCCkidE9jLudCpBfuz/H2TU2rCN1fORuKnaF35drjOq2Y7mbP1dGSV7hdLUzsaQOvFEp/GAmdHD3XjPAvbONEus7e0Xh93NuSZGyKH3JQRPwMfVOiPcW9IF7tXClmGdQ42toOZfLahPYuAogVU/8mvdr9B8fZM2v4vVkhvgpTwlUsPLyJ1rqXdeLWmErBsqJJqDGMElB/1U5T8CIsMBAgxdSUbNvCJHpNW+XAyW/MBeWiJ/5m+gy6+vhoCgbrzfmtBCOy9LSgmF2f2qreif+xC6nPIcor2ZmTrsRn1znaH3YFkPtPBqydhJC3k60gwBYkytZJ/R8YZIx56nq1NONINXrxcUjzEbWDN6GJzDjJW4v8ssTBDQ5KIDuNfjndEpLeCjfks/4Wv0lnI0MXs+8KKXNDpn6pWcrOz867BlIb9QxUV2jZGpTr0nZ3tazWsfOGO/X0X3P3MxC0KJYs7dpRYknEIjT32VYJCUCoY8cjh6ZpnRzfaCS5pYzv2xuXsgVdSsOTnJU+FyvBJ2YZAC8kVvSL6XzB5iDjwQgdFdPzV8T1H8bO7lJxIlCTznDpsC5IZGpVjUtTM+jM2oMEC7Dg5osQNQIqOiD2wILqdvyv7YGOSGyznWTKA25KDzKiLMdgSRJ7lmcNZ426sbw64OB7xUST3Byh48bXdSGol9aAYKhFqg0K4KCV+BewkPPoIewE22FohrTxlWNgY3+uku YqrRi7I/ ynkh3ovaV96b0/RHGzG4bSc5icLEuSf9YhRIaOe+qBJYPV6mP5wgsAoWSMVlojcyxip2TS75HpscyxBMlY9qYUfB5ICghwW5p8X+LlxazK7KBgbs4VxClO5Gd0UobtE3DjMZDi9zVbqOxtcoSh9Dtw/WFylfFdJBikh/8sCTlzZ+FKAIKI8aA4qWVT8RJxrdmBHveojwfpQ185bD1j7/y5kKkvNkM5dihYYUWiQl2nFCNk24liPnd6Q+e3ieQeVEqn+3INnA4pnXhw/o1JOEygx+GNOAC54dBCNZcIHQhZUy7dbsGzDLAOW0lLQ== 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: DAMON context staging method in _damon_sysfs.py is not checking the returned error from nr_schemes file read. Check it. Fixes: f5f0e5a2bef9 ("selftests/damon/_damon_sysfs: implement kdamonds start function") Signed-off-by: SeongJae Park --- tools/testing/selftests/damon/_damon_sysfs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/damon/_damon_sysfs.py b/tools/testing/selftests/damon/_damon_sysfs.py index f80fdcef507c..fffa74a78bd7 100644 --- a/tools/testing/selftests/damon/_damon_sysfs.py +++ b/tools/testing/selftests/damon/_damon_sysfs.py @@ -341,6 +341,8 @@ class DamonCtx: nr_schemes_file = os.path.join( self.sysfs_dir(), 'schemes', 'nr_schemes') content, err = read_file(nr_schemes_file) + if err is not None: + return err if int(content) != len(self.schemes): err = write_file(nr_schemes_file, '%d' % len(self.schemes)) if err != None: From patchwork Fri May 3 18:03:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13653182 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 1C249C4345F for ; Fri, 3 May 2024 18:03:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 730B86B0093; Fri, 3 May 2024 14:03:27 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5D6506B0098; Fri, 3 May 2024 14:03:27 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3FFD16B0093; Fri, 3 May 2024 14:03:27 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 1E22A6B0093 for ; Fri, 3 May 2024 14:03:27 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id B6677140D7F for ; Fri, 3 May 2024 18:03:26 +0000 (UTC) X-FDA: 82077856812.14.87ADB95 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf01.hostedemail.com (Postfix) with ESMTP id 1D8F940003 for ; Fri, 3 May 2024 18:03:24 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=mNN27e7D; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf01.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 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=1714759405; 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=7rPprOqM7s4oaACo2XLRlluoW10D3cY9uQtSM5vBkQY=; b=nEfbSANZKEIEP2znZXIPi/Ro2Z8oMdmnVwqeOTZvI8aLfJAyYu9hdZKylBabU0P4V5kVXh bMpMvOsHSjpAXPd2lozwfHH1pz7qr0tHMaDBAM2/HF7Xssfain27Q4HMypLLxJWgkpNPL8 96SXgGGd1jDsni/94TJ4maBqY2LGbCs= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1714759405; a=rsa-sha256; cv=none; b=KYZREjs4LlIDBrZdPBVTgrCbiyMmuME4bKqWZf7Dw/0dEe+B7tiowMD5q2HpDFngTrPh4T w6LAiGPIYfhlhmOUQZJAvsnG2P0//FVp5+NXqNYb1jj17VW1WWn11oQriEJhxYeLMOcSDT 8E8uJpFSFkXKbliptrtyCJysKVwZg7I= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=mNN27e7D; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf01.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 5046861E08; Fri, 3 May 2024 18:03:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9BC55C4AF48; Fri, 3 May 2024 18:03:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714759404; bh=3OCJo+mdOOU+eYdVwx29gwu7K+0FClrtGDmTiLBUZvo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mNN27e7D0zmbKWvmat7LzEJ39cI0NXToH46je6GTKxDPulfpOt3Z+Hq0yQfmDRFCG YzLjFaAxqfcNfFodwdGgqkgdn7gM23A0H3HOgN6wPDz6/JDzbYbwOwPvO8jLQ44148 NJRIPYUQcnKfnmYFVTsRN7zt2P/QM0wO6rnqCyceKpojejtqUUslxMcrkltmbeEP01 FNbdumleZNUFrX8fq9RtfVWcxYWrayO6CV/yLnhKeF8BpqGsvUywy5IqnIWqcouWzm IbdAeCODmvwrjnL4E5ZgHWDSl6aVG3/lDSrMYXIrKTnZmHP5lBUzfEDWcRm6YWo35Q kZG9dG+PQvCYA== 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 03/10] selftests/damon/_damon_sysfs: find sysfs mount point from /proc/mounts Date: Fri, 3 May 2024 11:03:11 -0700 Message-Id: <20240503180318.72798-4-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240503180318.72798-1-sj@kernel.org> References: <20240503180318.72798-1-sj@kernel.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: 1D8F940003 X-Rspam-User: X-Rspamd-Server: rspam03 X-Stat-Signature: tdwt5iqx31i8epyk56og4yibwu3srtso X-HE-Tag: 1714759404-787023 X-HE-Meta: U2FsdGVkX19ZGMUWDP7IHNdOgX//kEaEyNziIJqkPC+Lo9MUsN8DpAiQ6Ni/sJBx1Q7cwiacDDcAsz0Ajxk1WWhwtEovYEN2OS5KZMlBORD2Kq6eJ+JpQChEgz0M0A9OeNKQYzISEwMZMg2OkmfyPWbGQpzjVkquRwzYtBRZD24ZcUfvY1gxYHmuL3ZgmafsrTZX+/Eb3vIDrYjsD0LEh4P+bxY+BK3JlTPmSzgCiOfwcuxSbkxNIqj0G60QjRiqSjFErCcye9Uw4DI1TPm1ISJU/Bh05vZk3e1/lYpJzoD5g0v/uEbvziI0D2BuMsXjJP/DWUq0zX+/wDafS6G4L3s2PvadAq19gB8Ozpc3a7OjjGYKDpS0RBFCLRzDNJKDTr4xaBUguSb6uTTeAv96//PClh0e04visKWQ9Dj3Fzs33GQtBsKWgYfU/ziHxPkZuMl95pAYJVzpgWqG6pgfnuDPHCpa8lYjYvWwPy4oKET6+SpzEoHCr6ZC/dZHb81aA9gA3opGl+0w4elaGpRDT79aN3a15cV/nOQFZWgUWo5YFAtfMFs8hDGrAz0a3xfoX1jHnVIzquOBY+27qqf5SgJhrVNbv/9GFHnH10ks052KDXb12z+QRlQEC3r7ogVSso1TbE/A80tQHvA2ToANzr5NBcI0Fr+aGG3Ld/cB7iN1S8uhadsdUf/LictC1k1U4ISyOvmDRpQ9QP2Q1gQ7cnv9ryd23KMIncKrhU5ag1ccfC2CrAEDw5z87ovCDzYtYzHKWaLYTC5JmQ5x88nf849GMAhGGEaGaXkURciQLD2XIH0zIRD7BGFQXwISbAOIdmzWnzCtoBjPLdIdS1mFgffW5fzFW9I39QI5DXpUb2oqdYTeHvSadYKfLK7WZ1OqMeiOR7A4/ucERnruerf+RP80irWAZxdy2E+2dxGfSlTBd2afiA7/6YDqfrWq4aOW0f8S+8s3ovqFxGaXDNn lehYGs5W u3+TIKbVI9ifPS6zoECEViHGFlSUzB+O4GsWumCh1gY775vXvKMEm2nq5IuxU83uVN81LJkDYkE5wDtb7cPrgPuvJGKNavklWNlUE/Dj+tgvMG8h60S83ywRRSHio8TDGXBkqHME0XB9k2lDNEwkO/cqqqZkXKZhnL1sxLQgIs1vBr+xLdwX6xvMJ7kWIk5ZUnYtpPyenhjBM7zCyb5zl/1bFsQrJsNsZvvfQhIV7cn/CJ2KV4PSb7hU2aJFnOf6bTtDwTp2JXP0CCdFhw9pPHLT/UY/bK1+TQaN5 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: _damon_sysfs.py assumes sysfs is mounted at /sys. In some systems, that might not be true. Find the mount point from /proc/mounts file content. Signed-off-by: SeongJae Park --- tools/testing/selftests/damon/_damon_sysfs.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/damon/_damon_sysfs.py b/tools/testing/selftests/damon/_damon_sysfs.py index fffa74a78bd7..5367e98817a9 100644 --- a/tools/testing/selftests/damon/_damon_sysfs.py +++ b/tools/testing/selftests/damon/_damon_sysfs.py @@ -2,7 +2,18 @@ import os -sysfs_root = '/sys/kernel/mm/damon/admin' +ksft_skip=4 + +sysfs_root = None +with open('/proc/mounts', 'r') as f: + for line in f: + dev_name, mount_point, dev_fs = line.split()[:3] + if dev_fs == 'sysfs': + sysfs_root = '%s/kernel/mm/damon/admin' % mount_point + break +if sysfs_root is None: + print('Seems sysfs not mounted?') + exit(ksft_skip) def write_file(path, string): "Returns error string if failed, or None otherwise" From patchwork Fri May 3 18:03:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13653183 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 AEFC0C25B4F for ; Fri, 3 May 2024 18:03:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D79CD6B0095; Fri, 3 May 2024 14:03:28 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D01396B0096; Fri, 3 May 2024 14:03:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C18CF6B0098; Fri, 3 May 2024 14:03:28 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id A6EC66B0095 for ; Fri, 3 May 2024 14:03:28 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 613241A115F for ; Fri, 3 May 2024 18:03:28 +0000 (UTC) X-FDA: 82077856896.08.9515E04 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf11.hostedemail.com (Postfix) with ESMTP id B893340014 for ; Fri, 3 May 2024 18:03:26 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=GcMdqlu0; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf11.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 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=1714759406; 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=TLuKA/RqguFWf2lJOdjRWcwp27Pim78sRpyvTxkbI/4=; b=SGeQk1MK1NUbuSfDHtHYriH0XPnc+Bz1L2aYZiNtpz45jjnpBH6aBw1+tq8dy0XIMEqhaK Dolueor20OBLgshu0sAVZ2tkyYp15DuPGCFTW9K/73GSxY47AUEebNc6QHJmjIzQcuuKpk 4FanqYEw/kAq7b0pqd0PcSxP3EKkmA0= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1714759406; a=rsa-sha256; cv=none; b=fXq+hBXvWgAEm3Ri5fR+eS0/ise6D7lnm5LMsCu/HGiSkOY8pEZkSTfphR9GNuGpLPRGdj tGqJ4G/PKefu2RzfxDqI3OEdipoK8ugfWLUL01Kji3UhtQmSPks7S/WYFz65x2VieOcGFF oBWjxwAOL9vSw+zjLGFWxdLO8HjQRec= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=GcMdqlu0; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf11.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id D172261E03; Fri, 3 May 2024 18:03:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2465BC116B1; Fri, 3 May 2024 18:03:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714759405; bh=wl4KaQNGGSUoln/HN59nrI9DZXm2wms4eum28pA9dLo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GcMdqlu028SzxGvUHkmkFsYzLK9DLlJ0smYEoaFbRsz6nd0eJHiWiTS3Ba1ejCjpw CoAJow0Rt1FgNM4tEdiLD6cQLwt8572cvjve44lT7OPGhFGsWFVAB7XqESNvHuT1LP VkqwJ0uEVSMlW/MsUzOQ4kEg9GJ4Gx96jyQXgPACJyMvdU1WnWWk7Q6v7RoCmlzCd4 UICxzjc+YRXF4qhGiU56z1PQL+iXRxM+cdpqMTXGlPNFqI7yF7kA5s3yamKARLqDPl +kVh3zZZUEy0UmxksbLdRSmD2MZLM8dXFRGY2EYvlxwlyDKlh52qs9Lv5odKsIFyxf bQDzBQivuom/w== 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 05/10] selftests/damon: classify tests for functionalities and regressions Date: Fri, 3 May 2024 11:03:13 -0700 Message-Id: <20240503180318.72798-6-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240503180318.72798-1-sj@kernel.org> References: <20240503180318.72798-1-sj@kernel.org> MIME-Version: 1.0 X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: B893340014 X-Stat-Signature: 6e3uuncxsnk5m568efsgw5aoduzxxzyg X-Rspam-User: X-HE-Tag: 1714759406-258685 X-HE-Meta: U2FsdGVkX1/5+wF/shGeHFFDhwL6n9r+vBBIk6fv5DOiWIPdbyYrWv/XF9FxZTmIsR0sZgAkTF09aCeINZVkOGr8NRJa/aiKRXPjt4jPJlaKQxWe+/TNS9FoHvZ5gJo/Mb/LOfZRH0zqI3hCphvF7n46RKURp4EHPEDL+URwDruhd6uhzu9R01ydxn0TkpEiZN+4MUDTjO27cbpSmFiV5OZUP3s0/5533s9J5WXtese4tJ9oQEUCg8Et5cksDHTVUn90tmu5qqDSGH3XtSkeu8f5vnfZybNnHaCS9K3iy0IyvrRNMbeaHr3pxilPOXTbXUyhoKzb9NITlmb+3gPmS/JU9tti8n8+lfLGw0VWIUWHAr9moQhqqDdQf4weq4c4RqKNyJAx0Sufl4fN4Wub6tQZI0AKJxrMUdFV+2JG+0xUB9HyE8HY8/J2FjMEgXEqtgIYRJa/S+lzX9GLaMe/357FCRs7E5Enwh7iM2BMn3xgzjNCNd/DCkx7gLW1rlQHkDR1trbuMDRtfckz9RJMZUX4dn/qqS4Lq7O0qih47RATtod8kW3jBEGYnYp7xS51TXT0ozBIITV3Zbe/B9h0sNVEiMPmGMo4cmghZPok3jfTlaJl0CZv4DevrhKSA7iyz3M5+rEZfkddZ7iO/oPhVyfVHfbSuJJozkt6GM5KZ9mjDzA3Blb2+qSfsfVskI3420KhRPLJc+gcEvEV3Ark330gPYuYVrnCPSlOaH+wXyCQG1rpTNfwYx27eP8TasxTCgeX35d90YlHZWQ4EbkszHMrP/rMMR+Te3+gItYtr4V8y3YJUIK2bgXhA9S77JNDRo+YtTySBSkcK/nZFOEa+IuKZo9Pt41/TJ52/2QcMMM92p2mueUwsWGDagvlP/dLU6VifDUwQm94fBPW0eUl3xpMLXW8z20kt85RnWQtrAyR9eqTd5nfFzErZcFhxJ+uwct1W02ePvvwoXe23eg f5QhT8sY +/45jUXkv7BycwfCScL/qZcYVGpnwiAXbJinMMDPOR5VF2GJMwgIpZVp4+OdOu5omrEJ6BlEis4L6Ms0oO7qPYd7Llx5qjmGkbX1zIbiJKe1IQugXmbVQ13FJuAvZkS6FxF27KtHEmcOg4nzSuoOjml4HVBtgRQE0/rrCBU+ayNNxWpW20gCWfAd2ezc648BKypTIftOmKBDNaEUzCffMFsNy0GGOBhxxiIGUMqkoRtsSYXA= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000014, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: DAMON selftests can be classified into two categories: functionalities and regressions. Functionality tests are for checking if the function is working as specified, while the regression tests are basically reproducers of previously reported and fixed bugs. The tests of the categories are mixed in the selftests Makefile. Separate those for easier understanding of the types of tests. Signed-off-by: SeongJae Park --- tools/testing/selftests/damon/Makefile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/damon/Makefile b/tools/testing/selftests/damon/Makefile index 06c248880172..29a22f50e762 100644 --- a/tools/testing/selftests/damon/Makefile +++ b/tools/testing/selftests/damon/Makefile @@ -7,16 +7,21 @@ TEST_GEN_FILES += debugfs_target_ids_pid_leak TEST_GEN_FILES += access_memory TEST_FILES = _chk_dependency.sh _debugfs_common.sh + +# functionality tests TEST_PROGS = debugfs_attrs.sh debugfs_schemes.sh debugfs_target_ids.sh +TEST_PROGS += sysfs.sh +TEST_PROGS += sysfs_update_schemes_tried_regions_wss_estimation.py +TEST_PROGS += damos_quota.py damos_quota_goal.py damos_apply_interval.py +TEST_PROGS += reclaim.sh lru_sort.sh + +# regression tests (reproducers of previously found bugs) TEST_PROGS += debugfs_empty_targets.sh debugfs_huge_count_read_write.sh TEST_PROGS += debugfs_duplicate_context_creation.sh TEST_PROGS += debugfs_rm_non_contexts.sh TEST_PROGS += debugfs_target_ids_read_before_terminate_race.sh TEST_PROGS += debugfs_target_ids_pid_leak.sh -TEST_PROGS += sysfs.sh sysfs_update_removed_scheme_dir.sh +TEST_PROGS += sysfs_update_removed_scheme_dir.sh TEST_PROGS += sysfs_update_schemes_tried_regions_hang.py -TEST_PROGS += sysfs_update_schemes_tried_regions_wss_estimation.py -TEST_PROGS += damos_quota.py damos_quota_goal.py damos_apply_interval.py -TEST_PROGS += reclaim.sh lru_sort.sh include ../lib.mk From patchwork Fri May 3 18:03:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13653184 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 B80F4C4345F for ; Fri, 3 May 2024 18:03:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B7D116B0098; Fri, 3 May 2024 14:03:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B2E0E6B0099; Fri, 3 May 2024 14:03:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9CF156B009A; Fri, 3 May 2024 14:03:29 -0400 (EDT) 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 7C0D26B0098 for ; Fri, 3 May 2024 14:03:29 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 07CDD1C0F2B for ; Fri, 3 May 2024 18:03:29 +0000 (UTC) X-FDA: 82077856938.26.DD33559 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf01.hostedemail.com (Postfix) with ESMTP id 5D0F640009 for ; Fri, 3 May 2024 18:03:27 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=ueOhhzQV; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf01.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 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=1714759407; 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=/mvTOkUPox3UQLEmazklw6bY0HUdNk6GZHe7tbYnkqw=; b=Y5ZqxGmLmDHhzZI9ZDSQ/hOR2y0J4/kIw7RTuwl73tq9YgusahoqKBDdNgcxapk0aAiy4V zt4XTL7nD0m7Ek1UCLI2JCEIm+lJ4OxPJs0tjwX4XSg7sr1UgXO29uipuJ/O/x6yNhvIn0 10tLkQzINU0xXas2AG7oO+ytJLPIbc8= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=ueOhhzQV; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf01.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1714759407; a=rsa-sha256; cv=none; b=VEUGIBBhKZioFPC8TnO2q+o1Dul4o2Id/bY6HhS1riAEcvH1CCUc8mvALEp+aKirAIwdTz wo32fLLBRYE3V6uWg1jb093zAJsAWzkxVGdPRKTuwjKO1X6Y6QstTKjtsbSfWRj5Yvc+dv ofLufwix25j4YD7JqR6TiK6OhCE15wA= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 9B96B61DB2; Fri, 3 May 2024 18:03:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D49F2C4AF49; Fri, 3 May 2024 18:03:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714759406; bh=AS2JS3BGQVHo5RzbTVMIa5UQeXJ+fVLWbjaYsPF6V/A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ueOhhzQVHOqQWS9hYd7/BOnLu3AxufgKPocOXtiZLC21qJmV/tqXZ61UompLt/MJd +WVAZWgVSP9eVni1vx7w7nHUO/+7h6JQlu391AY1frY6stamIP3CGGUutmqakezWye s/dYRTuD9XCUL49qOm8PjT5kc3Z7DWRP4jDyjRpZsrl8J5sRKJpdMTjfA86XtGDudR QOevYHYzah/lMOmxfaYzul8yQPsENcjYKTXqc69dZfwQQRLegrgx3Af9MdlHGWpmab SWfahDGBBQdx6ypo2/1tIBOCEnouQr1GEQiSV0YRQvAW9xuSeVTo8bXLtQViTC4sYJ x0l/C9XFWnn2g== 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, stable@vger.kernel.org Subject: [PATCH 06/10] Docs/admin-guide/mm/damon/usage: fix wrong example of DAMOS filter matching sysfs file Date: Fri, 3 May 2024 11:03:14 -0700 Message-Id: <20240503180318.72798-7-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240503180318.72798-1-sj@kernel.org> References: <20240503180318.72798-1-sj@kernel.org> MIME-Version: 1.0 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 5D0F640009 X-Stat-Signature: 9nh8zx93ep5wc6g9w7bqjhfaowquh7go X-Rspam-User: X-HE-Tag: 1714759407-863235 X-HE-Meta: U2FsdGVkX1+sDRLOtz3TSLXUweBCxa1BY5a5Ahyywk3FBnaS0ZWVcQTblhgYkiKVPhPSIfTTYpz4qZDqZZlAOq8sqbY1CEWaMBma9iOe3GL5AIogUWpRiDHt8vtutCjkPqROfsFS2ojz/diwNRN01kVvGA9Pm6j9eSFdAzCTrHU2JyV9TVQQXAG4V+OWUONh9YAeuk4qH0Kg9LtAnLxGjOhGBheSTBefdnaxoNCGIW5vsj0sduTtCXRidJ83fKPX3fLF9wz7fo5hGobbMh7vHBH6gddHZh2b1dWUgT8t9KMiUR9QU0297oua2EinTCZQve+GUuBg1FfgHufKhbEzCRyy1gIubWYpBuRf5+LfjdnvOas+WT4J9LGvJ24wMLC2zsySmIa9mFLlM2e47zsZVcvEp0rGHMTmWCKvD2F8m4yFgE0ElTXYalIwlhoLgAVAgPlsaG2aMmnkbbji0gvaSOOxY48/7r2G6BgYsCbArXK9o15oFdv87lnQdH0AjmxOHG0q4fYjScDlSKIPjxbve4MzhfAWI6sSc6VRGkOSjrrIGFVHGmzAVTjB3dEZrDV+7chTHcJb0MEokZ1pX1YQ58OnvAxdjCl6e7hHHiMzjgRD6Na/cfB3EVfm+WygyBppP4krnHrbaMP6EtfnVu7QqKpHXPVO67uCGxzYtbZDY0hZf7XYej0sJXYXd2ugcXAk8P0DRnmb/cDuyAn64UpEaqnkW3MfBbNv28Yie8m1XZNCL9rIJ+em+gcMN+4lAP8oaGsSAkeWYdzn8XRHLRbLwyAo3xEC7Lvehr1m5oLMwLIPQ1MqqQdCX94JkhTtkC/xyIuVS+fCCpssjBvuhpfcGhJrWbdFvunqfPJzleuYAS4x4jzL9Ra3WKmS4aSRHsedhYs18xX7PbqLAazIp6IxrZLvpELWpU7NB8mpBQ6W7RgmwDH0bPcLTPLnuRnwId6yjOtMBokOi1pS/tpwYgU Xs2t9Qiq fh+PY6k5sBzuAJWppEMJIzyOC+bbkB+I+OKvpuf2+Pa+cgTrRXu0MY5OgZkJ5wxtRb3U7OTjaA0aVBUpLv/5eFsZUpX9eUS8U6wCAw9ahnPZiN5bNJ1L21Utgu5s4I2W21rU7ov+WN/qAdGfySOmnrvn+hj1ctlXsHunoPmNEkXGLNWptx+FueJyPXmtaTmDruzfOQ+/eolpDbr2nV7iAP3moMvqv/e32wXtqeV7JYJGZ2ho= 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: The example usage of DAMOS filter sysfs files, specifically the part of 'matching' file writing for memcg type filter, is wrong. The intention is to exclude pages of a memcg that already getting enough care from a given scheme, but the example is setting the filter to apply the scheme to only the pages of the memcg. Fix it. Fixes: 9b7f9322a530 ("Docs/admin-guide/mm/damon/usage: document DAMOS filters of sysfs") Closes: https://lore.kernel.org/r/20240317191358.97578-1-sj@kernel.org Cc: # 6.3.x Signed-off-by: SeongJae Park --- Documentation/admin-guide/mm/damon/usage.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/admin-guide/mm/damon/usage.rst b/Documentation/admin-guide/mm/damon/usage.rst index 69bc8fabf378..3ce3f0aaa1d5 100644 --- a/Documentation/admin-guide/mm/damon/usage.rst +++ b/Documentation/admin-guide/mm/damon/usage.rst @@ -434,7 +434,7 @@ pages of all memory cgroups except ``/having_care_already``.:: # # further filter out all cgroups except one at '/having_care_already' echo memcg > 1/type echo /having_care_already > 1/memcg_path - echo N > 1/matching + echo Y > 1/matching Note that ``anon`` and ``memcg`` filters are currently supported only when ``paddr`` :ref:`implementation ` is being used. From patchwork Fri May 3 18:03:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13653185 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 B4FEAC10F16 for ; Fri, 3 May 2024 18:03:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 564206B0099; Fri, 3 May 2024 14:03:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 513D36B009B; Fri, 3 May 2024 14:03:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 33D7B6B009C; Fri, 3 May 2024 14:03:30 -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 129A36B0099 for ; Fri, 3 May 2024 14:03:30 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id B4C3C41158 for ; Fri, 3 May 2024 18:03:29 +0000 (UTC) X-FDA: 82077856938.17.87AD3FB Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf28.hostedemail.com (Postfix) with ESMTP id 262D1C002A for ; Fri, 3 May 2024 18:03:27 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=RNaMciG4; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf28.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 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=1714759408; 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=VJyK1ETKN5HnPYL0DX5Fn45xVx/DlNnNoqpbx2IeSy8=; b=twthZmafLvBmLR1x7Adfn/L/E77pcPaiR4c9TGV3oYlzlwrLpXTRgUW2w1D/B6Bs/JQysH Fcyz4Qe3+4Qo1gLdvD17MS1vdAZMw68I4rVdI9vicd22NsdYVX2EgLFqDI+EK6jdKLNrGm 6IuqtY/p8ZYirB9U25WrQ7P6ANmG1gY= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=RNaMciG4; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf28.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1714759408; a=rsa-sha256; cv=none; b=u2XtAnSitmsJuhn9ZosVcgL0qg3wxhFNtSLtiUqR49Ye+Jqm/swA1WGtqiDr+dBtKagY1y +o5lGFhp7Apzvp5nBtRbETCQVSAFevGNYI4NBFNSPuvX3FZ2pds+vnc6A0wMmA9P2FWb73 xfpmPskkOcYqJdcAYcTxbrodcP1tSdo= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 66E9961DF9; Fri, 3 May 2024 18:03:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A14E9C4AF18; Fri, 3 May 2024 18:03:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714759407; bh=KPWNhDHoK1WCiSSpG+hqPSsIhkDFJ5Gj7faBmjSb9kA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RNaMciG4+Dgw2+9RRQO/lsyLSTD1cz1ayVlCpEn3dwnyprRbglpLy1lfTg7rGhZ4j bSM9JZFtnPhK9QxYb3PnrI0Ry8Tq6wJyWtpu+oLasQN27ysClArNLObWsQVzWWSidn Lp5HshD0xLuIeOqjMDAkwyoiCc1WOm2bRIekRbJN8awSmkciQlznyYd0PHIGV6Ud4z LwWIFN2MQq4Ff2wfvdUT3xD/J5oBoP7ffRBCV/EApv/tW9s2Wd1jmp8m4nSkSI61Fm RW5ugV8nhg5yAGArxE5dolr6yhf3PI12Mu5zxXfU2NMW4moeZPisjWtm2X1J7nfIEo M5vX5WxitzZSg== 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, stable@vger.kernel.org Subject: [PATCH 07/10] Docs/admin-guide/mm/damon/usage: fix wrong schemes effective quota update command Date: Fri, 3 May 2024 11:03:15 -0700 Message-Id: <20240503180318.72798-8-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240503180318.72798-1-sj@kernel.org> References: <20240503180318.72798-1-sj@kernel.org> MIME-Version: 1.0 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 262D1C002A X-Stat-Signature: d7k7878rdpez4iinyqkedcnzzaw4w71y X-Rspam-User: X-HE-Tag: 1714759407-898417 X-HE-Meta: U2FsdGVkX18kqqODjFOPbtZgm7yKkYAJnkoxpXL7iLF6CeFtNcAhDR3Vz1/itE+L8gGpZ1Xo7LiAtYv9grx7SMo3L7wkZVt0njlgpNT7gQizwfLrLw6whKrkvivGdnw9LQUUREBLsBAAyqAG/mE86n8W28qcUyf5vZw3bdpm1n08aM5AEG5N3CGHTp47OVCZbZ7Hn+sKjZ5l5jJnqQdWajJSWw1gEk57MQd19FTiJIUTecjuOpajbhKs/qo7h0Zc38fEBEFCxVLIIcrS8k5Ca3wb04tRuiV1I4IsUtsPHKxwuSz/Xz2m1CqW3OiM+iLaHHJY8A1MHReSIxDpZcz6gX1UInhwpuxM/DEJbThdpclS7h57Ra5IFulntuLn5vXb917pKeKvXvxdKLE54gvlwnBNpreGGG2KgQK2wIiATE4zBnJEExYoqczDhogD2MRE6HkXFgrLEtiQk6ScSxbrX2iTskE0Nk4TQAn//jyjmyN7+pEVVOeVDu+HLw3gYxGQpY8mLO1UhpSqa6n5FOaegtKbZSbgnoHbS+3fH1vgRU7PzfiwOAaMQRAFV9s1VpnMGJQivaKPJ91oJJvQZBaeh+bLL3bs2gNvO0vqQUKkTUEVpiokeIOLLuQhuYFMIocP96Igd+FapsP8I+5AMlpQgeklxOKOWZ6KcLx1ejb6FldxWEi3O2+nkNR1nJQWXlnHk8MkVjeYqKpwN7nzw71LdaEQ68iUcc3ifSiLJ9Et7jjJKPP67kKFk3CZJLslpyFUb4SWznUPfNTS00AGdluAiaUncAiOUYLFhVNILXQgrudv0CfXZJ0oSNtXPlR8sNHQ6DL503YG7weZ+Sk75WUI7WFPwoa0/b3OG/xEWqBO3vyRDWunlT+YoxhSSDiDydPYciBdjFXyuleVm0KNFSjUGHxEURSgUZivehlPyl+tR3+pQouFOUc/E+FqCsZZLan6UIj9BaRTiBPfvjSNro5 8M8kZD7k 6Hk0Z1bcLUXPxa5h1mMTbOxU6wiBKlo4P1J5WRd2XNQoRugtouI5e1nprczeTE8g3aTFiGmqMgOJL1k4fBpTgwsuWPTeFe54TA95P5PQkwNqX3JXepMLMon+DoJbDbf1uNj5SbcBEy2NkN7c9IKQmmd6u/NobRL9sjEB+AxZSCCG/bQqcxtrWZtmr35/3l+7Tfm7jEmFHQ26pTwDjx/42ptv7oqCastvN5HpquCa26xJs2kcIkypOvYdAtlo/5UphOSXfVpljDFFVO5ryg9bg3vAYhA== 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: To update effective size quota of DAMOS schemes on DAMON sysfs file interface, user should write 'update_schemes_effective_quotas' to the kdamond 'state' file. But the document is mistakenly saying the input string as 'update_schemes_effective_bytes'. Fix it (s/bytes/quotas/). Fixes: a6068d6dfa2f ("Docs/admin-guide/mm/damon/usage: document effective_bytes file") Cc: # 6.9.x Signed-off-by: SeongJae Park --- Documentation/admin-guide/mm/damon/usage.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/admin-guide/mm/damon/usage.rst b/Documentation/admin-guide/mm/damon/usage.rst index 3ce3f0aaa1d5..e58ceb89ea2a 100644 --- a/Documentation/admin-guide/mm/damon/usage.rst +++ b/Documentation/admin-guide/mm/damon/usage.rst @@ -153,7 +153,7 @@ Users can write below commands for the kdamond to the ``state`` file. - ``clear_schemes_tried_regions``: Clear the DAMON-based operating scheme action tried regions directory for each DAMON-based operation scheme of the kdamond. -- ``update_schemes_effective_bytes``: Update the contents of +- ``update_schemes_effective_quotas``: Update the contents of ``effective_bytes`` files for each DAMON-based operation scheme of the kdamond. For more details, refer to :ref:`quotas directory `. @@ -342,7 +342,7 @@ Based on the user-specified :ref:`goal `, the effective size quota is further adjusted. Reading ``effective_bytes`` returns the current effective size quota. The file is not updated in real time, so users should ask DAMON sysfs interface to update the content of the file for -the stats by writing a special keyword, ``update_schemes_effective_bytes`` to +the stats by writing a special keyword, ``update_schemes_effective_quotas`` to the relevant ``kdamonds//state`` file. Under ``weights`` directory, three files (``sz_permil``, From patchwork Fri May 3 18:03:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13653186 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 76E09C4345F for ; Fri, 3 May 2024 18:03:41 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C8E3F6B009B; Fri, 3 May 2024 14:03:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BF0B66B009C; Fri, 3 May 2024 14:03:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id ABA046B009D; Fri, 3 May 2024 14:03:30 -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 830E66B009B for ; Fri, 3 May 2024 14:03:30 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 3EE82A11BA for ; Fri, 3 May 2024 18:03:30 +0000 (UTC) X-FDA: 82077856980.19.C9DD7C9 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf11.hostedemail.com (Postfix) with ESMTP id 8DEAA4000D for ; Fri, 3 May 2024 18:03:28 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=J7w9nGDb; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf11.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 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=1714759408; 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=2WMwDYK3MCG3V0L+acXnRecVHzPMF83oQhOGsvA5Rck=; b=7q4tGX5HG5k4JbgnYdlAgLhn45Ztb2RkddBTSDxHRnLrYcdb41le1zbxYnHx6h6ouNY6by ns2Zta9AMzOezmX17q4zdKxfd4ckpuITy7Engf8vp/7npDrymwhNzHnxRGascPMoSaDmMV hBXHp6YaRR9j0y93VeRco5rAQ0vNGuo= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1714759408; a=rsa-sha256; cv=none; b=RsPDH7oSOp4jpX1H5EiDUcEeivyMfn3Hb57r5LElU7FHLhFuKcalgbwLQUrIgaMSv7ue81 ZMAZqAGzsf1GqyVQQACHgYe9wFdRv+UfvGmvLP4E9KZpHamSD194cE7Y4rdfCdpj/8H26B 07L8SkPgH554aNGx10sRCLaF0fgxhOQ= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=J7w9nGDb; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf11.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 2693461E1D; Fri, 3 May 2024 18:03:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D0AAC4AF19; Fri, 3 May 2024 18:03:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714759407; bh=Kr16aWsUWHmzs0T3rMgu4QN0Xzu0Ms/e3QljzklXCpY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J7w9nGDbaTbVNvv//EAR/1njh5p6lE60qGH7jBDMIDT21if4xM2hV4mOvqwVQspqI WsDHWJ4RMZ8lILUhRxAXa6KZBwXZB1jht2lDxwbn4FJ5Kgif8TlZfFBnJmtpVVXSL+ JL6RPq9/hqZHjGgDIoPUxqiB9JvYWxwqA90sLjcXJi/KZwvqOB58k9SKgWIX1hHMg9 5SgjtB0adzb/2Ubt6JS3QO2DkwLz2HxGJSUmuV8u/JnZM9WSZTGOqmAxl241tHBo7G q8VfeLPNsrd76mwdWktnd/q1Dv9RiaQPQJpZxMaaWkEo45v3Y3l3BUClaqInZxJaif 70PRjztQYcfxA== 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 08/10] Docs/mm/damon/design: use a list for supported filters Date: Fri, 3 May 2024 11:03:16 -0700 Message-Id: <20240503180318.72798-9-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240503180318.72798-1-sj@kernel.org> References: <20240503180318.72798-1-sj@kernel.org> MIME-Version: 1.0 X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 8DEAA4000D X-Stat-Signature: kyad67xgefw135dufum5jqqp9i67m7hp X-Rspam-User: X-HE-Tag: 1714759408-49888 X-HE-Meta: U2FsdGVkX18pNguSVi3XurPQjVuRSwCqxLVCR5I5gmXj0f5/7Yh6EKsv1AUj8hEy2GkmQ+UDQBOYhwdDyhNUEdBvOZ7UP7/syn+dDvOPDxcbSAI2jDtxLhqELX6AdA3vwuBg32jGJ7G0a2fSb9ztl8hl+ERNwu6JsheJlfwCYi4uJ8ACk0R/D6eDMSWQmOut/YDDYX7D4ld9IMfJ0gTwF8H3JjRKUlBtg9OF7/b1TalzhmtxiOKNd63TVxt3JrRAqTzWS/0yKTpGAI9Po3MRogeuIco8HkX549Pkxp82mHo+Baj0rzTOI+YFC27HrEEjDTJHBk5cJt3npMBVYaohmIxsYfKJd/nHMKzVnCGDXRbQcsqkB8IRK11DNu3HvibrvEfYeNW1W+HVDM3Mrnms9Fy3dd5gHSWBAC0jRYFEYrhwyx4d6Aw42uo0GhHIoe0jYYvdIHLoVXx4RXFAD0flbvxbBFBr4ZHGsSG5JY/AnGxTndzmihD6gbbB+wL2OSokslTRTa3QIkE3QM5uv9HVj3jBI8iywdK+McNzbEo0qgavOQ47sywKKiQ/h4kkCt0uPQifSlDdB18dfUDuiCbvzqNtYowmPymzgomno0Xs1xGIAbZQ8swQdtHp68Z/hPGj4qnO6gXr/1Y4AOu6lu30UBFhO0OG7tTyyyLV3iSGSNSalIX1ka4acS3YqFOBBjTmnZrwaO23WbtiOjDtleOSVrjcQ5KNLm5ptPC9lpg7xVt/V5KCA/LWgUcu69k5OQAiJtyMzaLzdfTJwWScjwbvVuaDYqZ6/PkK6xvm+Zk1nZJ0IO5Mt1aNOKaqSPhFdq64K/T1Kvj1NkmXqsnsGYm+zQX7udiHhsF+QDlHiMK6SlJUDw8yQSqmmqlo3RhqSq6W0Pu8WeWSdbT5r7X4FBTO4FJpEQq56XFkkzF70XgVVJsVD1XSelADI7rpUAJleKBU6cmAEWliLK4kI/4JZ9e AJm4W2v/ 1Hf115J1O+dbrgr6QON61ky2Z4OaOrXCstOmtR7oz1vrOIHtAJwwOvfHq77R+v9TeXk/CNB852Em+VJGzfQZ2QvNlZ++d0gMIb0wtQ+ViXW8y9X81NxkbUf085Ai6wuMPrew3nrWKmTCAmN8LDsf01IOLWQ6N0N5Yz11u/LdOJmywMtwACsDBzXdBzIa4TbC21yvGFCrAsiDY0fy2qUSzEVvb8ya8QMH8LTTYCeEhWkJMwA4EyApeAMweaw== 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: Filters section is listing currently supported filter types in a normal paragraph. Since the number of types are higher than four, it is not easy to read for only specific types. Use a list for easier finding of specific types. Signed-off-by: SeongJae Park --- Documentation/mm/damon/design.rst | 46 +++++++++++++++++-------------- 1 file changed, 26 insertions(+), 20 deletions(-) diff --git a/Documentation/mm/damon/design.rst b/Documentation/mm/damon/design.rst index f2baf617184d..1873755358af 100644 --- a/Documentation/mm/damon/design.rst +++ b/Documentation/mm/damon/design.rst @@ -461,26 +461,32 @@ 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, young page, 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 that not accessed after the last -access check from the scheme, pages that accessed after the last access check -from the scheme, 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. +For efficient handling of filters, some types of filters are handled by the +core layer, while others are handled by operations set. In the latter case, +hence, support of the filter types depends on the DAMON operations set. In +case of the core layer-handled filters, the memory regions that excluded by the +filter are 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. This difference affects the statistics. + +Below types of filters are currently supported. + +- anonymous page + - Applied to pages that containing data that not stored in files. + - Handled by operations set layer. Supported by only ``paddr`` set. +- memory cgroup + - Applied to pages that belonging to a given cgroup. + - Handled by operations set layer. Supported by only ``paddr`` set. +- young page + - Applied to pages that are accessed after the last access check from the + scheme. + - Handled by operations set layer. Supported by only ``paddr`` set. +- address range + - Applied to pages that belonging to a given address range. + - Handled by the core logic. +- DAMON monitoring target + - Applied to pages that belonging to a given DAMON monitoring target. + - Handled by the core logic. Application Programming Interface From patchwork Fri May 3 18:03:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13653188 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 B636BC4345F for ; Fri, 3 May 2024 18:03:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 91FBC6B0088; Fri, 3 May 2024 14:03:31 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 728BC6B009C; Fri, 3 May 2024 14:03:31 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 561436B009D; Fri, 3 May 2024 14:03:31 -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 327046B009C for ; Fri, 3 May 2024 14:03:31 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id D0AB541141 for ; Fri, 3 May 2024 18:03:30 +0000 (UTC) X-FDA: 82077856980.28.4AA1361 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf01.hostedemail.com (Postfix) with ESMTP id 2392740009 for ; Fri, 3 May 2024 18:03:29 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=gzzkfqr+; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf01.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 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=1714759409; 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=44VBAc1tBe5+MVKnBxzzqHHkHde1jvvzW+y9ij+Mj+E=; b=MLvK2/m+x1OLKHilpV3rRjFs4zuhufeuiQKCqbaNFQFhgtiHu8JYTzSRsPasCKIYXYmpWn GS0Y3wX93BHIRw75myzJ8fY/UW3/S8VaMRimsDXPeEw4LmkSTbKNJx2IOULffOY7lggsXx LFITe8MmWOriM+JVaaKNXq6sqYaDArk= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=gzzkfqr+; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf01.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1714759409; a=rsa-sha256; cv=none; b=vhgDMCcpCh3HqWY595saWRQ6Dao+HTaqec1eXMxXCMfcKkcN8Bffg+TGJbKnc13tYtQxAS 8wU9dUba0nyyM7xT7T1EqTuCsM7ayUBqg4RqgSJf6GUjyxxmmiP5NSSWSUWCgp62qsVoRc K8jFvIgd8sltuIl6svFdwMPsevDU8EM= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id D491661E03; Fri, 3 May 2024 18:03:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28E1BC4AF48; Fri, 3 May 2024 18:03:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714759408; bh=vvc+A8ByGJ8xt/IgKthXz7OStObcnnunoP3kVT7p2/c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gzzkfqr+kVCfXlIKoHA2gbCdNyEFbHbZh2BRCGxe0x3lv8EucgG8XZp6zvKD1iThb aOAvuMnXwXzfbJgJfGR63SjlpMHoSStan0RleGxeDpgHzHrulAsTdSc2BlsL2gYdlD d2GE25HvkZ+/cgX9u2WAmhfaTfMOHutdtvuiyCjLETlL9Yovp0As3Rdu0o1zmVp6ex S8ns2yGBVmfzM2ARcz3sXb6R/zMXo5YF6VXSb+bdslYyozEIK6ll+zCnVMgMss3wZe vz1aFxisyDfxSMLDc1FWiorLrPkx/fUvUGK7BUg8pF1E5bBh2YTjzsCJ1NRvCVnoOX ZqTqBDoSXDTdA== 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 09/10] Docs/mm/damon/maintainer-profile: change the maintainer's timezone from PST to PT Date: Fri, 3 May 2024 11:03:17 -0700 Message-Id: <20240503180318.72798-10-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240503180318.72798-1-sj@kernel.org> References: <20240503180318.72798-1-sj@kernel.org> MIME-Version: 1.0 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 2392740009 X-Stat-Signature: ojh63ekhyxip8aak915ixhkj871z6yig X-Rspam-User: X-HE-Tag: 1714759409-169575 X-HE-Meta: U2FsdGVkX1/OE2JF81gAVpkwQwIk0o8FNHBTApzHmopM4w3u8cD38QVh3fbnC4IA6POIK6k6152pT8e0qv2yeUq0CB+z3mB7oq7HZpIhpqxRdoOuUK3izjzZz0G6oNOdosAhkQJOcJHxvS50HZ32Du7fLUSBDDbOmFF7sMG0/2VTChBIn2+jNuFLjVbVV9lZ+fqeIkQXCkQstAYyOznigfS/lR6ZTvgER3Y1/UO54Ao5lr7R9ShfVgw8cM+5xvJP2hFxJPfzP7uIa6Q01OoSEkedIg5jJEMa8lJ0SEsVE3m/guFvR5it6auNf8MHIy8DxNICkUZJSyqRAb0bOk9aWWxZhG5EyRYkLqQcqpSnRuAOp3KT3dgIjxJodhgiHY/i5u+jptgM1COOQArkSFTmiDyC82fIbLSTpVDwzJx3Sp4o+fTe26f7PwrwgcfvJwHIvxF4GjdfHAKasxEccarqDHS8S9VmMT7cAzevRORtAgBF/AOvcZjFzrkxvKNdRqV2puBIc7xtGsJqvUL3IGCgV1Lu0VynZCx0x30hVPvBZTsClqQhLrwhB+upmY7hkHIDfAIGW6WfxbViqTzOCZNOvAK8a8OsceNPzng68Yz/sm4suxJPRjyovW73dIT0AmmRVyN8/nV0qW67bY+temHsjAEgTt2T2N2q+qYEyuPtDF37gSmzl2O/Yr+sx2WBUFQwUH5PtndOhpQ1/W6wMelVnyU66yTo69F9TvMA4I7jN8YYy6r5Wu28wWbZUiCUKDG10StnNtJIhm5vr/ulyBtNarlnSsoxSw1NSI74RnO+EKFEQcC9YgJ83ZiYSfCDgROdwb8737MSu9I/Zz/JnXo8axXYrvAsmu85DVBg3/kIxo+Ken/2Jy9uUOyJJ1JOnS50oEZ+7+2pEB8Eb/qWnC0hEnniXZRBVxDCLfG/3A+mOJQENg0BbOXzBxBlckpNaFfWDeMdf7mYOA9BJoiBF6E Lpo+nrnC 41FqoA7heTZG9DsjXLUyDyGaBkv3kXvD7+nChzMe2fjaaJkryIfkAeJBPKBwpYeWNxnObtdddDw6VpfoDKXqnnCeZAcxFobrXqyPSJh/kT029s7QVBCksWC3Wn8uvbjPNWpzOwSUSL3eiuHWefDyJTiwKJhzU7kV1ETHiUOHnwoD50+mmdxK1MEx0vDYdK0AzLy2j0CIvy+wySpqQMlZNjnZZNQNtCNelpEWE9oE783VqukRo4B0dOhmITw== 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: The document says the maintainer is working on only PST. The maintainer respects daylight saving system, though. Update the time zone to PT. Signed-off-by: SeongJae Park --- Documentation/mm/damon/maintainer-profile.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/mm/damon/maintainer-profile.rst b/Documentation/mm/damon/maintainer-profile.rst index 5a306e4de22e..ea42f57cf9dc 100644 --- a/Documentation/mm/damon/maintainer-profile.rst +++ b/Documentation/mm/damon/maintainer-profile.rst @@ -48,9 +48,9 @@ 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. +Mon-Fri) in PT (Pacific Time). 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 From patchwork Fri May 3 18:03:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13653189 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 48C80C4345F for ; Fri, 3 May 2024 18:03:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 22E8F6B009C; Fri, 3 May 2024 14:03:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1DE786B009D; Fri, 3 May 2024 14:03:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0A6236B009E; Fri, 3 May 2024 14:03:32 -0400 (EDT) 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 DA66B6B009C for ; Fri, 3 May 2024 14:03:31 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 84AC5A11A3 for ; Fri, 3 May 2024 18:03:31 +0000 (UTC) X-FDA: 82077857022.15.6FFA087 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf28.hostedemail.com (Postfix) with ESMTP id D59D6C0018 for ; Fri, 3 May 2024 18:03:29 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="MpCAjq/P"; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf28.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 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=1714759409; 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=INlgyg2AESuPcoYYRKDgBaqszQWZmJccK4ZKSNEea2o=; b=ZpMCe6xJJm3o+Kz7ykft4TOx7JuSgt0drPMB0CbIHfsd7JasIArnwv8v9FX+q9vh9AcZTW ZWt+lzrEKf0V6n3DtrsULz/uBHhG0tdAj24oit70qEKhHD7gUAzV/jm0GPRNEX60KYCgVG dveq33S513jWb+oSTE0aGh1M+iuONE0= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="MpCAjq/P"; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf28.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1714759409; a=rsa-sha256; cv=none; b=1oHDQBDi/QYBCEDG1FkmHu7UZnCbwmMvg1NrZznbNv7MuDaVquIzQtRaBx+sklyyurBJiA N6tJ7LL84dp+57XlbksbEVtkRMg9747Kyv9RbstGz41cNakrSmuRQGnIYWpxmYZs6PkZAI hA9vRwstrysATGDuD1yrZ6bbPqhPbKU= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 914CA61E08; Fri, 3 May 2024 18:03:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D96B5C4AF50; Fri, 3 May 2024 18:03:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714759409; bh=a02Zh+VsvTrK6WKXPgaeuspiXlSro+oRgLJGLtu2svs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MpCAjq/PwjGAnPgFL65cPmH9OKC2XvO5cfrU8CelwHa2IjOGwUR0spNoneoQ+JHve ZgAe/EcGmV3QJyTq7sRJvcm8P2lyZIS8GBZmaKK3gefvVc8Isf5nGB7VqWBWT5rQcm qMgn/KlZTV8pXq45eCEn1+waj4K/7iJwm7zKZ9Ap36o/OUKs0+rnoBrw10EFWI6kRO 4RwdQluz00sczmBT4/baD9TMPZvHAm786k1iPaJSNeYuiMTTGeFCn+nYOaWhQKV+SG H8ijK9qv6VG1m2OaOebzIHIAH93JhcP6CiPt2596d0bRT6b8/msyRk7yaZ43MSEOLz NYCe7Utr+bpzA== 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 10/10] Docs/mm/damon/maintainer-profile: allow posting patches based on damon/next tree Date: Fri, 3 May 2024 11:03:18 -0700 Message-Id: <20240503180318.72798-11-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240503180318.72798-1-sj@kernel.org> References: <20240503180318.72798-1-sj@kernel.org> MIME-Version: 1.0 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: D59D6C0018 X-Stat-Signature: yutx4bs4k35zhsg7abxzoqthpusgor9q X-Rspam-User: X-HE-Tag: 1714759409-425025 X-HE-Meta: U2FsdGVkX1+Qb4ZPhnUAwmBhticeA3HHEKReAXWUx28/FRnkfQQ24dGLQBfQeIls3RzcXRWwmSP9kjjpYRKDupFFqqsYY/6WU+NHaKrintqgD73FdirwGyULVE2JYEV6yr+Qfiiv0wZ6Zg+e6QusRG+z1jcXrI17v3XNBSoPjgAaKQFSo973k41ffTolrww3ujBGNUBycZoXeio0ggAxZ2EKVMZjJ7peRULQKANYBZLCHlsKGyn1l72EFX7KqXxlGY2gZ5SoGpUj0WghoX0InE+4Zn8H4Xj1xFhWpsVr2LAxdH0RP6bLqkw218hZAZJbB9vpkCDxsRZNXWLD4g65iY++f5JuVADKDBc7D1TppQ8mTINZf95bj88ZJx5kAK9hfNzHZxnJyb8L/7yei+6/TWl9ARs+DGA35ONRNU5sPA4R4MCkcpPthAo9tSrqLa4PXL9w7KRenBYNeKDOP4JngWCXUegLehR0XIkGNHCOs+vZzeuUva0u9KXDNDaHrxY+o0HlWNLMIIdCjGWhEfCQYTdW5uQQOm32CWNx+P+LqbEBSHRk5lSfiuciuEm2sslq7dU1SmEGSMIrb/2rUXCxCsyiCKzA4St1PMxw1hp6Xp5gGUHDUTXcovyW8FFsRYf9Vn7hnaD9bKXPZgeslitsDobbtfOLtKH4ydYJsmW5IxGCbkg9e3um01HL35WPBTNUXlE7wr46lK7En4ubjFqn7SVO5dsW3PU/3Xkf/ShblMJIrzMrDArIKaWLptUQMjY8xXw6Rkl5QNirOMsBM3WLr3JBb+5KI7y66GTG9FlRUXlskF08pjej+dnGLcSO/GHLh+NlG+/VdfvIzu2OEamw/+32tWKUwJFVFGcF+FKMuivywAG17kX4keN12nJFjMe2LBDA9mKAhtQqtHekrlPPni7qz5PeAF4y4P60W6hnxgA5AgMOWUqdprVvQkfX3yk/MwNnTqmSMFxTU3KTb2R w1dy+uCw mDEUJV2BWpixmq/Cn2sGmNhQFH6QtHrL6E9zenCZsIm6gJt5xp6U/HHscBW0uXcndHfGkO5Gy1wtAFuFTg/D7bri/QL2hX9y+ATPzo3J8757xpC0SjD5SHQuheoGCiyr4fFEbmxp9rvc/pP5T/vai9IPXGHYkkuUofCxZpwpW++yL8sgEYMDSRQPbVbGPlXlcUipDlBEPfW6Ry1sSb+UcA7Z/Fz9WZtWQ6GJhafPnTatmtvIm9hvYK9R77lmUIA8LWSOTBofp8K7EqpEm5tgelylqVBOmQzXleTOSPd5R2ff6iLc= 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: The document mentions any patches for review should based on mm-unstable instead of damon/next. It should be the recommended process, but sometimes patches based on damon/next could be posted for some reasons. Actually, the DAMON-based tiered memory management patchset[1] was written on top of 'young page' DAMOS filter patchset, which was in damon/next tree as of the writing. Allow such case and just ask such things to be clearly specified. [1] https://lore.kernel.org/20240405060858.2818-1-honggyu.kim@sk.com Signed-off-by: SeongJae Park --- Documentation/mm/damon/maintainer-profile.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Documentation/mm/damon/maintainer-profile.rst b/Documentation/mm/damon/maintainer-profile.rst index ea42f57cf9dc..8213cf61d38a 100644 --- a/Documentation/mm/damon/maintainer-profile.rst +++ b/Documentation/mm/damon/maintainer-profile.rst @@ -20,9 +20,10 @@ 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. +Note again the patches for mm-unstable tree [1]_ are queued by the memory +management subsystem maintainer. If the patches requires some patches in +damon/next tree [2]_ which not yet merged in mm-unstable, please make sure the +requirement is clearly specified. Submit checklist addendum -------------------------