From: Jinjie Ruan DAMON_RECLAIM runs its scheme only while the free memory rate is between `wmarks_low` and `wmarks_mid`. But some users want to reclaim cold pages even while the system has plenty of free memory, and it is not obvious that the existing watermarks parameters can already do that. So Document the setup. Signed-off-by: Jinjie Ruan Reviewed-by: SJ Park Signed-off-by: SJ Park --- Changes from v1 - v1: https://lore.kernel.org/20261028023628.795637-1-ruanjinjie@huawei.com - Collect R-b: from SJ. - Rebase to latest mm-new. Documentation/admin-guide/mm/damon/reclaim.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/admin-guide/mm/damon/reclaim.rst b/Documentation/admin-guide/mm/damon/reclaim.rst index ec7e3e32b4ac6..14f9b82b38ed9 100644 --- a/Documentation/admin-guide/mm/damon/reclaim.rst +++ b/Documentation/admin-guide/mm/damon/reclaim.rst @@ -193,6 +193,10 @@ DAMON_RECLAIM becomes inactive, so it does nothing but periodically checks the watermarks. In the case, the system falls back to the LRU-list based page granularity reclamation logic. +To keep DAMON_RECLAIM always active regardless of the free memory rate, set +``wmarks_high``, ``wmarks_mid`` and ``wmarks_low`` to ``1000``, ``1000`` and +``0``, respectively. + sample_interval --------------- -- 2.47.3