mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
mm/damon/lru_sort: consider age for quota prioritization
DAMON_LRU_SORT is doing under-quota access pattern based regions prioritization using only access frequency. Age of regions is another useful information for distinguishing hot and cold regions. Use it for prioritization, too. Link: https://lkml.kernel.org/r/20260113152717.70459-6-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Cc: David Hildenbrand <david@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Liam Howlett <liam.howlett@oracle.com> Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
80820e69fd
commit
57d96d1ad2
|
|
@ -71,7 +71,7 @@ static struct damos_quota damon_lru_sort_quota = {
|
|||
/* Within the quota, mark hotter regions accessed first. */
|
||||
.weight_sz = 0,
|
||||
.weight_nr_accesses = 1,
|
||||
.weight_age = 0,
|
||||
.weight_age = 1,
|
||||
};
|
||||
DEFINE_DAMON_MODULES_DAMOS_TIME_QUOTA(damon_lru_sort_quota);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user