mm/damon/reclaim: implement memory PSI-driven quota self-tuning
authorSeongJae Park <sj@kernel.org>
Mon, 19 Feb 2024 19:44:30 +0000 (11:44 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 24 Feb 2024 01:48:30 +0000 (17:48 -0800)
commit7ce55f8ffdedc0e59d53f7003b7bd912b19918a7
treeec44d4c16b30a9cc30057e985bfb2e4237eaa322
parent58dea17d7a0f8e5dfd36d4ae26e85a26e866b0d4
mm/damon/reclaim: implement memory PSI-driven quota self-tuning

Support the PSI-driven quota self-tuning from DAMON_RECLAIM by introducing
yet another parameter, 'quota_mem_pressure_us'.  Users can set the desired
amount of memory pressure stall time per each quota reset interval using
the parameter.  Then DAMON_RECLAIM monitor the memory pressure stall time,
specifically system-wide memory 'some' PSI value that increased during the
given time interval, and self-tune the quota using the DAMOS core logic.

Link: https://lkml.kernel.org/r/20240219194431.159606-20-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/reclaim.c