From patchwork Fri Dec 10 15:00:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 12669733 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 D277FC433F5 for ; Fri, 10 Dec 2021 15:01:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9252E6B0072; Fri, 10 Dec 2021 10:00:48 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6DD596B007E; Fri, 10 Dec 2021 10:00:48 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 59C236B007D; Fri, 10 Dec 2021 10:00:48 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0179.hostedemail.com [216.40.44.179]) by kanga.kvack.org (Postfix) with ESMTP id 3E5496B0072 for ; Fri, 10 Dec 2021 10:00:48 -0500 (EST) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 0D596894DC for ; Fri, 10 Dec 2021 15:00:38 +0000 (UTC) X-FDA: 78902196156.24.0897822 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf31.hostedemail.com (Postfix) with ESMTP id 703B120004 for ; Fri, 10 Dec 2021 15:00:34 +0000 (UTC) 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 BF53CB82873; Fri, 10 Dec 2021 15:00:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3BFCCC00446; Fri, 10 Dec 2021 15:00:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1639148432; bh=lDEGQMWVDmFWLU7nhtMBQOiC3Y2jegUWMfqbTHPUBcI=; h=From:To:Cc:Subject:Date:From; b=m6qsGWDXLfetpUQVeVeyvgWrBrVrZ/WdVSe63/I/yCxa+UUaQiSatTbM12yXBppzQ hFpsU4GaROY06GTEbCJIOXRyeiQJwzCWfJP2KmXy5P+i59QvzrmZdBH1XGYKv+0Suy 1PYGmisjTXvxFx8BJbBcwUU8xWJcMyYoPN+Bl5OS/hHkya1YG7RPtQI1cDJnxy1L89 9QpaeqsaflOTfShYSTwLHe1wYstPS2az4O5kI+ForVY5ed/rRXSSd+yINle3LUeK1w UCx0AfETdLXssihuiyXA9xtonOQ01bsJzK4sSoFR2Q5MaTOAOlzD3GEVTK5KIkokng G8cnEGTajUjPw== From: SeongJae Park To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, SeongJae Park Subject: [PATCH 0/6] mm/damon/schemes: Extend stats for better online analysis and tuning Date: Fri, 10 Dec 2021 15:00:10 +0000 Message-Id: <20211210150016.35349-1-sj@kernel.org> X-Mailer: git-send-email 2.17.1 X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 703B120004 X-Stat-Signature: 8j1jbprqpkxxwbi3j8z348ubzdjjj6kz Authentication-Results: imf31.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=m6qsGWDX; spf=pass (imf31.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 X-HE-Tag: 1639148434-61774 X-Bogosity: Ham, tests=bogofilter, spamicity=0.001357, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: To help online access pattern analysis and tuning of DAMON-based Operation Schemes (DAMOS), DAMOS provides simple statistics for each scheme. Introduction of DAMOS time/space quota further made the tuning easier by making the risk management easier. However, that also made understanding of the working schemes a little bit more difficult. For an example, progress of a given scheme can now be throttled by not only the aggressiveness of the target access pattern, but also the time/space quotas. So, when a scheme is showing unexpectedly slow progress, it's difficult to know by what the progress of the scheme is throttled, with currently provided statistics. This patchset extends the statistics to contain some metrics that can be helpful for such online schemes analysis and tuning (patches 1-2), exports those to users (patches 3 and 5), and add documents (patches 4 and 6). SeongJae Park (6): mm/damon/schemes: Account scheme actions that successfully applied mm/damon/schemes: Account how many times quota limit has exceeded mm/damon/reclaim: Provide reclamation statistics Docs/admin-guide/mm/damon/reclaim: Document statistics parameters mm/damon/dbgfs: Support all DAMOS stats Docs/admin-guide/mm/damon/usage: Update for schemes statistics .../admin-guide/mm/damon/reclaim.rst | 25 ++++++++++ Documentation/admin-guide/mm/damon/usage.rst | 9 ++-- include/linux/damon.h | 30 +++++++++--- mm/damon/core.c | 15 ++++-- mm/damon/dbgfs.c | 6 ++- mm/damon/paddr.c | 13 +++--- mm/damon/reclaim.c | 46 +++++++++++++++++++ mm/damon/vaddr.c | 30 ++++++------ 8 files changed, 136 insertions(+), 38 deletions(-)