mm-multi-gen-lru-thrashing-prevention.patch removed from -mm tree
The quilt patch titled
Subject: mm: multi-gen LRU: thrashing prevention
has been removed from the -mm tree. Its filename was
mm-multi-gen-lru-thrashing-prevention.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Yu Zhao <[email protected]>
Subject: mm: multi-gen LRU: thrashing prevention
Date: Sun, 18 Sep 2022 02:00:08 -0600
Add /sys/kernel/mm/lru_gen/min_ttl_ms for thrashing prevention, as requested by many desktop users [1].
When set to value N, it prevents the working set of N milliseconds from getting evicted. The OOM killer is triggered if this working set cannot be kept in memory. Based on the average human detectable lag (~100ms), N=1000 usually eliminates intolerable lags due to thrashing. Larger values like N=3000 make lags less noticeable at the risk of premature OOM kills.
Compared with the size-based approach [2], this time-based approach has the following advantages:
1. It is easier to configure because it is agnostic to applications and memory sizes.
2. It is more reliable because it is directly wired to the OOM killer.
[1] https://lore.kernel.org/r/Ydza%[email protected]/
[2] https://lore.kernel.org/r/[email protected]/
---
include/linux/mmzone.h | 2 + mm/vmscan.c | 74 +++++++++++++++++++++++++++++++++++++-- 2 files changed, 73 insertions(+), 3 deletions(-)
include/linux/mmzone.h renamed from include/linux/mmzone.h~mm-multi-gen-lru-thrashing-prevention +2 -0
@@ -422,6 +422,8 @@ struct lru_gen_struct {unsigned long max_seq;/* the eviction increments the oldest generation numbers */ unsigned long min_seq[ANON_AND_FILE ]; +/* the birth time of each generation in jiffies */ +unsigned long timestamps[MAX_NR_GENS ];/* the multi-gen LRU lists, lazily sorted on eviction */ struct list_head lists[MAX_NR_GENS ][ANON_AND_FILE ][MAX_NR_ZONES ];/* the multi-gen LRU sizes, eventually consistent */
mm/vmscan.c renamed from mm/vmscan.c~mm-multi-gen-lru-thrashing-prevention +71 -3
136 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are