linux/mm/damon
SeongJae Park 38683e0031 mm/damon/schemes: prioritize regions within the quotas
This makes DAMON apply schemes to regions having higher priority first,
if it cannot apply schemes to all regions due to the quotas.

The prioritization function should be implemented in the monitoring
primitives.  Those would commonly calculate the priority of the region
using attributes of regions, namely 'size', 'nr_accesses', and 'age'.
For example, some primitive would calculate the priority of each region
using a weighted sum of 'nr_accesses' and 'age' of the region.

The optimal weights would depend on give environments, so this makes
those customizable.  Nevertheless, the score calculation functions are
only encouraged to respect the weights, not mandated.

Link: https://lkml.kernel.org/r/20211019150731.16699-8-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Amit Shah <amit@kernel.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: David Hildenbrand <david@redhat.com>
Cc: David Rientjes <rientjes@google.com>
Cc: David Woodhouse <dwmw@amazon.com>
Cc: Greg Thelen <gthelen@google.com>
Cc: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Leonard Foerster <foersleo@amazon.de>
Cc: Marco Elver <elver@google.com>
Cc: Markus Boehme <markubo@amazon.de>
Cc: Shakeel Butt <shakeelb@google.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-11-06 13:30:45 -07:00
..
core-test.h mm/damon/core-test: fix wrong expectations for 'damon_split_regions_of()' 2021-10-28 17:18:55 -07:00
core.c mm/damon/schemes: prioritize regions within the quotas 2021-11-06 13:30:45 -07:00
dbgfs-test.h mm/damon/dbgfs-test: add a unit test case for 'init_regions' 2021-11-06 13:30:44 -07:00
dbgfs.c mm/damon/dbgfs: support quotas of schemes 2021-11-06 13:30:45 -07:00
Kconfig mm/damon/dbgfs: support physical memory monitoring 2021-11-06 13:30:45 -07:00
Makefile mm/damon: implement primitives for physical address space monitoring 2021-11-06 13:30:45 -07:00
paddr.c mm/damon/paddr: support the pageout scheme 2021-11-06 13:30:45 -07:00
prmtv-common.c mm/damon/vaddr: separate commonly usable functions 2021-11-06 13:30:44 -07:00
prmtv-common.h mm/damon/vaddr: separate commonly usable functions 2021-11-06 13:30:44 -07:00
vaddr-test.h mm/damon: add kunit tests 2021-09-08 11:50:25 -07:00
vaddr.c mm/damon/vaddr: constify static mm_walk_ops 2021-11-06 13:30:45 -07:00