DAMON_RECLAIM provides a PSI-driven quota auto-tuning feature. Because of the DAMOS quota internal access pattern based region prioritization, it means the coldness threshold (min_age) is also auto-tuned. It is tuned off by default, though. The feature is expected to be only better to be enabled. Enable it by default. Set 0.5 milliseconds per second (0.5%) as the default auto-tuning target memory pressure ratio. Signed-off-by: SJ Park --- mm/damon/reclaim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/damon/reclaim.c b/mm/damon/reclaim.c index 2241b3e9145ef..d297b1596704b 100644 --- a/mm/damon/reclaim.c +++ b/mm/damon/reclaim.c @@ -69,9 +69,9 @@ DEFINE_DAMON_MODULES_DAMOS_QUOTAS(damon_reclaim_quota); * compared to this value to see if the aim is satisfied. Value zero means * disabling this auto-tuning feature. * - * Disabled by default. + * 500 microseconds (0.05% of default quota reset interval) by default. */ -static unsigned long quota_mem_pressure_us __read_mostly; +static unsigned long quota_mem_pressure_us __read_mostly = 500; module_param(quota_mem_pressure_us, ulong, 0600); /* -- 2.47.3