From patchwork Mon Feb 19 19:44:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13563020 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 465CDC48BF8 for ; Mon, 19 Feb 2024 19:45:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 515148D0006; Mon, 19 Feb 2024 14:44:53 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 44C4A8D0001; Mon, 19 Feb 2024 14:44:53 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2EE0D8D0006; Mon, 19 Feb 2024 14:44:53 -0500 (EST) 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 199BF8D0001 for ; Mon, 19 Feb 2024 14:44:53 -0500 (EST) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id EAA5B80388 for ; Mon, 19 Feb 2024 19:44:52 +0000 (UTC) X-FDA: 81809581224.03.C00842A Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf06.hostedemail.com (Postfix) with ESMTP id 51EA218001E for ; Mon, 19 Feb 2024 19:44:51 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=KqdSM2r2; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf06.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=1708371891; 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=Y/X+A7MxKLZzEOLxaIOzCd5+qV0ysfi1p0eFECsMYz0=; b=xul2/VENfqNhGSShiOYyX1KGnR37myrTP2btV5WurxIwaLm2BWivOVraF+Kv68V9PEWzV9 roxIG4JgEzqF4Hal4wJ2NNsohI9Cock0ezwi3j40/qKwJTQf6mUwZvovsxxiFnZuBA48lM Thdde795OwF0UuNs9SWhBgxyi+d/qdc= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=KqdSM2r2; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf06.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=1708371891; a=rsa-sha256; cv=none; b=7nCrDYcwzF79ylTRvAas0nu205eThPVQVcdmb8lkhFHfBY75/83Aw0P++HZR117A6gECyP mA5c6r7lwVUF088RNSH/YO3bk54clMID38xtRVWnLn1EzxjMlz5jMMcha9q5q2H5P+Nv1x 1eFp5CZJ88YbDxUH1XekpAzPoBOfBCU= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 0E8D560F6F; Mon, 19 Feb 2024 19:44:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D981C43394; Mon, 19 Feb 2024 19:44:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708371890; bh=N9nR7nwUdsukBui32rCfnM5+OryMCusxZ8X3or6m4gs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KqdSM2r2arnrE2pBIUDFF7hZiMjke6At78DYHjdLpERwp7GzGMMfZrZD/XkvVsvoL iZ0gKt+cXZC2/Q6/wDxgAXwR2lScpDLfLDBK0fbWYh8QYEaBEUqQaD8GbSEYU19OnH U++3UpC6Jpa+GOpKK5QyaegBWlVfHsoysde0a5MGIv1cNeG+RjS1KFiSJb8z408nxj LTZLeZw/EPiwFOioMXDWha/73iN4Zoz2vCX2USa/2Djbqs9MMszoIsoedfNOl1FCfS 7RKT1NeXBEKPFeYON6dpCo1wCv301lTmRD+TNX3etwdGvFarVDTz+/bbCnHbR5kJo9 LiI+VOgnX3CPg== 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 20/20] Docs/admin-guide/mm/damon/reclaim: document auto-tuning parameters Date: Mon, 19 Feb 2024 11:44:31 -0800 Message-Id: <20240219194431.159606-21-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240219194431.159606-1-sj@kernel.org> References: <20240219194431.159606-1-sj@kernel.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: 51EA218001E X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: p9ehb63w8atfxask9wriwneokkww41zf X-HE-Tag: 1708371891-351511 X-HE-Meta: U2FsdGVkX19vBSfTjaiPBuDQKEqhNLlkmEV//EVFsBeNSuRZsNBZK5+SZAbNC9wdu6WOZgGD4L1PogYtRPF8V8CSXgjOEM3pWc/rl/nDsKam5amYpMZ7ZDhmjHeCualHN6dIa7kdtPcEdiN4T9d5gRv3/+A5TX8N0hOzWgMp4VdU3KmRxf27a02YdplWPLSnk/BDQGxdPuQXVxcf9l+WIUOxsQfezvdFRjqM5BcrzillN6danzoPga/+bJIsbUt9pXKh8fdj0Dj4zbeuLpKi/sSGMWiwGtY+dAA1QDPedx4S6+lPexNnEHhA2oumyNk8AIeMdgQuW529UV+3hJTxdNiU7rzK9vw6dgCAq5aX3msoDauLDdqOj5/ZPcgh9ohH9/g//VjBDY8SZMvaowZE3poJLr9/XeKcZjUE9KPw2FpXVMN5il18As62I7FW6P1kvoPxJyO7ZwCgkKO9193hwFGUsR2LPgqrJJmdcF7ozfkDgWnRzJ7lsadEHvY/8t9ZnRyj+LYdrWegH0w1QDAV55q1FnUIfyUWrYAHXU/zkL6LNfLUEa68mgPyMssVHDwdubBUhbxvE6fN8JA16N+b7Bd8qDd38uXT6hMRYzdE9bC6fEjajO2ieqOqzqxeiHsnpOVjBNxspIu4PSVa7wkqReYYyIg5wqs2dy2LxFFtPDrxPnwrgt+wIVMRoQrABGjx9QKSo9qvYvrICojYhVGfknUKY8Ppmqs9IsiOeYuq5fyKoTdubOyIibry3B8aYhx66jeSI5/nGqkpTHDiUvUfCAyc6GQ2ERyycEj8gzuFirEFCX/40aCqf6MHuHw1eSdGybYZpBWhjrPSqSjtb2Af008jwUiUc+JW6qIyNTvczATuYk95J0ODV33dqWZCn54nnKyCpUci0VTeuduw7/vwTIk79UzDtZhUx3m3zG2dfKUlubN0qSNuomx/Bouw+bmGsah9ewLEFyrkaxejiq1 /rQf5WmH 1sXreJecWxr3s/mNb6CuVOQpYydjy2skVEQSi9Zm3ToskcPk8cZ83fYoSOSHyg9lBdNFk3cBR0n3Novd/mXsItQWbMqGr526erA4GEWwdUUndfvWASy1MvSZiVvk22pitMBC8uiiuzOb9MOf3PerL6cAIVUyAgzmMQxKgx1xKEzNedx0rlcMY9InTE5e8NBlvDPjhWH3RmCgUgze1zC4cPHJg/uQYioTFAZ36RR8wa6PaMTw= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000100, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Update DAMON_RECLAIM usage document for the user/self feedback based auto-tuning of the quota. Signed-off-by: SeongJae Park --- .../admin-guide/mm/damon/reclaim.rst | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/Documentation/admin-guide/mm/damon/reclaim.rst b/Documentation/admin-guide/mm/damon/reclaim.rst index 343e25b252f4..af05ae617018 100644 --- a/Documentation/admin-guide/mm/damon/reclaim.rst +++ b/Documentation/admin-guide/mm/damon/reclaim.rst @@ -117,6 +117,33 @@ milliseconds. 1 second by default. +quota_mem_pressure_us +--------------------- + +Desired level of memory pressure-stall time in microseconds. + +While keeping the caps that set by other quotas, DAMON_RECLAIM automatically +increases and decreases the effective level of the quota aiming this level of +memory pressure is incurred. System-wide ``some`` memory PSI in microseconds +per quota reset interval (``quota_reset_interval_ms``) is collected and +compared to this value to see if the aim is satisfied. Value zero means +disabling this auto-tuning feature. + +Disabled by default. + +quota_autotune_feedback +----------------------- + +User-specifiable feedback for auto-tuning of the effective quota. + +While keeping the caps that set by other quotas, DAMON_RECLAIM automatically +increases and decreases the effective level of the quota aiming receiving this +feedback of value ``10,000`` from the user. DAMON_RECLAIM assumes the feedback +value and the quota are positively proportional. Value zero means disabling +this auto-tuning feature. + +Disabled by default. + wmarks_interval ---------------