From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pz2-f12.google.com (mail-pz2-f12.google.com [74.125.228.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1B2083B71C4 for ; Sun, 20 Sep 2026 02:31:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.228.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789871497; cv=none; b=X85PzgTWG4p8Bs/t36tZOLDPE/wTXgwTXJwHJwbj0f9w/qyA5oh1yfMnYnuvs5a00SdWBaEsTDL0pOktvj/fbNl46XpWe4XVEV64z7yX5qxcuETgKERJKRor65UDrefvyXab638+CKRrQSvEL383MOVw3URhtwdKOL7jLS8LfA8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789871497; c=relaxed/simple; bh=ta4KGzvy3+Q0Ym3V/maRaZ1/VI/KlL2UlxoFdTcXU1Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Lh15hUO/ps8AwOhnA1EcFdA9qUNpXiMe/zlid34I0mEIQp8ABz9ipvIpT2d8L7+miNzl4QhXsCieNdXm/b04zXUW3xT08yWBUjTaH8p0/vMghfA0QWPTpd9yUKLJd8UlAeeMsIEvc6b64DAdrPmahu63/HIshoiSWNy8NSDScqw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=UGPuMQSs; arc=none smtp.client-ip=74.125.228.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UGPuMQSs" Received: by mail-pz2-f12.google.com with SMTP id 41be03b00d2f7-cc1cebad4afso1362736a12.0 for ; Sat, 19 Sep 2026 19:31:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789871487; x=1790476287; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=ucMEt/HYfCdI1ngc+n5yPNtAEmxJEE4zo8QA8w8ZEKw=; b=UGPuMQSsreT6lBtWeBuTpUX9bU1+4SwI/FPnkNxAYCpaNy7qbgDlkD3ttM7VoiQ1Hi VSu82Vyd2bxCfUBc6290nfbHSRoKjz1MmFSLfPgJ+qes6rflu0gidjcJbDoezY+t/xV4 75KtSBLozerZyNQyk0+PE9dkpM2FpoQPONqL9NPrFDNQ44ZBkOt8bRQksVMyJ5bG4sWT 23stq58ffGVeei01+EB10p5SAA2ZzXlpjtoBgl6+3Nn77GVTDK8ELMFeQa7SSnW7nOkF jAoNNsRP1ahoiC9yf71cZlEcHOX4HGRIUPDElXe8KXlmpD8BRUmGgtdMEvDnGKQBKrVD 2OwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789871487; x=1790476287; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=ucMEt/HYfCdI1ngc+n5yPNtAEmxJEE4zo8QA8w8ZEKw=; b=gz/36mtQSRxyXjjNjgv9E0pDL1q9JuNjpZWW8Qf+Y61HjUTWM3Iy7SXnl9o+qSvTE+ rce1PPzGqDY3cmXlmIMSO1kYzEk1yIfUnMG8cTLwUm73XLXrxQo1l8Khr1UDQFJLlb4Q 26JkixoMhKMKSA2dq6i4Vsl1RP3B5Dz2bZW3SFjliA8VQf1DvFzIlwvNV+lCVUuGxg8U K5FN6EhvwoUHKcOx2xh8AEn3cE2sRfSsHVN5upGMbUv/X08EGcsk5wG2jJWULe7C/5PP 4aCgrw8KScbQogSpgamC2E2fLMbU7nIeNLmHT2xtL1IHulL/N83yLfif5wo+7mWaNpH+ wrgQ== X-Forwarded-Encrypted: i=1; AKwUvBw3+4/FBI5iYBeY4sjze17EFcQYUmSJ4agJtBe9QpmGPh/VYo9TtSkKS+FVg/7GR5hns15cY8j6Usk=@vger.kernel.org X-Gm-Message-State: AFuF++lipmeK6c93bvUtFmlV8DcZ5nkz/4xQAEVZz8hpW0SqKbm6DkhM SUTjVLO6wUzrdi1wjKvnRNY5R1S/rbglYJHkBeB6pstEAMrM7N9g2IM= X-Gm-Gg: AYBFou30ZahWp5B6Vh8TnA519Eb1xFP9xLrCtQq8seVLLk0QdQXQm9IUswQFA14tGew FBf0jmWfFL7Ks+lNDFWHukBGSnAizu8qm613DQaRmGtKIf6Xsn3X7Ts7oBVHc7P7QljqNUJ+IhY imDY3VAhrc6xvIKgOWKZ7NUXVIAyPqmkAV4CMuiEEROMu5gE7grltcDiYovMJtMsSJj7KMjIbqE 6RGDmuVdtUCpzCrCbKrea0sIpyCgpd9vnzdpO727p11Eogx+SK/nIrdsj6VRRcq25jHYnHcjcnv IJpMf1yePkEV9QO/n89KQiBQy1FjSyk13hvqru4jmF/h8Qm2ztKCJ8qSH5hr4s4Z06yvijQZpWE NGGJ1iqE6wtSzO6OXFy+rzq/d06U6hhSSDxjg9LmQYbo1hcHjgkqp6HdhKYhgvjFVKkeqbXO4nB 4ylGBnfKCkCCLarI+0N0KdlBOpl/NJRC9g+pIt/z/tIEv1ZxuJjvbRGf7mhkbumazBsXJCB7WPR sYfXv9CW002/+ZfhQfP4khP1EOedryVw3AQiQ== X-Received: by 2002:a05:6a20:2586:b0:3dd:85a8:4c66 with SMTP id adf61e73a8af0-3dd8c5db1e1mr10707714637.45.1789871487313; Sat, 19 Sep 2026 19:31:27 -0700 (PDT) Received: from ydg-Zenbook-14-UM3406GA ([2001:2d8:7f00:8c85:36d8:54a:e0bc:3e5e]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-cc72aee03efsm1481341a12.24.2026.09.19.19.31.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Sep 2026 19:31:26 -0700 (PDT) From: Donggeun Yoo To: SJ Park , Andrew Morton Cc: damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org, donggeunyoo.kernel@gmail.com, David Hildenbrand , Lorenzo Stoakes , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Jonathan Corbet , Shuah Khan , Randy Dunlap , linux-doc@vger.kernel.org Subject: [PATCH v2 3/3] Docs/admin-guide/mm/damon/usage: document the temporal tuner's quota limit Date: Sun, 20 Sep 2026 11:31:11 +0900 Message-ID: <20260920023111.2466265-4-donggeunyoo.kernel@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260920023111.2466265-1-donggeunyoo.kernel@gmail.com> References: <20260920023111.2466265-1-donggeunyoo.kernel@gmail.com> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The temporal goal tuner converts the size quota into basis points in an unsigned long, so a quotas/bytes above ULONG_MAX / 10000 does not fit, and is handled as if no size quota were set. On 32-bit that is 429496 bytes, well below the "echo $((1024*1024*1024)) > quotas/bytes" this document instructs. addr_unit does not raise the limit, though a larger unit does make it harder to reach. Note both in the goal_tuner description. Signed-off-by: Donggeun Yoo --- Documentation/admin-guide/mm/damon/usage.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/admin-guide/mm/damon/usage.rst b/Documentation/admin-guide/mm/damon/usage.rst index ba47255448564..ea7443b307826 100644 --- a/Documentation/admin-guide/mm/damon/usage.rst +++ b/Documentation/admin-guide/mm/damon/usage.rst @@ -455,6 +455,13 @@ the background design of the feature and the name of the selectable algorithms. Refer to :ref:`goals directory ` for the goals setup. +The ``temporal`` algorithm converts the size quota into basis points, so it +cannot represent a ``bytes`` value larger than 429496 on 32-bit kernels, or +1844674407370955 on 64-bit ones. Larger values are handled as if no size +quota were set. :ref:`addr_unit ` does not raise the +limit, but it does make the limit harder to reach: with a larger unit, the +same amount of memory is written to ``bytes`` as a smaller number. + You can set the action-failed memory quota charging ratio by writing the numerator and the denominator for the ratio to ``fail_charge_num`` and ``fail_charge_denom`` files, respectively. Reading those files will return the -- 2.53.0