Skip to content

Commit d70d2e7

Browse files
damentzintersectRaven
authored andcommitted
ZEN: Tune mgLRU to protect cache used in the last second
Although not identical to the le9 patches that protect a byte-amount of cache through tunables, multigenerational LRU now supports protecting cache accessed in the last X milliseconds. In torvalds#218, Yu recommends starting with 1000ms and tuning as needed. This looks like a safe default and turning on this feature should help users that don't know they need it.
1 parent bd3a369 commit d70d2e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/vmscan.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -4594,7 +4594,7 @@ static bool lruvec_is_reclaimable(struct lruvec *lruvec, struct scan_control *sc
45944594
}
45954595

45964596
/* to protect the working set of the last N jiffies */
4597-
static unsigned long lru_gen_min_ttl __read_mostly;
4597+
static unsigned long lru_gen_min_ttl __read_mostly = HZ;
45984598

45994599
static void lru_gen_age_node(struct pglist_data *pgdat, struct scan_control *sc)
46004600
{

0 commit comments

Comments
 (0)