Home
last modified time | relevance | path

Searched refs:lrugen (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/include/linux/
Dmm_inline.h166 unsigned long max_seq = lruvec->lrugen.max_seq; in lru_gen_is_active()
181 struct lru_gen_struct *lrugen = &lruvec->lrugen; in lru_gen_update_size() local
188 WRITE_ONCE(lrugen->nr_pages[old_gen][type][zone], in lru_gen_update_size()
189 lrugen->nr_pages[old_gen][type][zone] - delta); in lru_gen_update_size()
191 WRITE_ONCE(lrugen->nr_pages[new_gen][type][zone], in lru_gen_update_size()
192 lrugen->nr_pages[new_gen][type][zone] + delta); in lru_gen_update_size()
227 struct lru_gen_struct *lrugen = &lruvec->lrugen; in lru_gen_add_folio() local
231 if (folio_test_unevictable(folio) || !lrugen->enabled) in lru_gen_add_folio()
243 seq = lrugen->max_seq; in lru_gen_add_folio()
247 seq = lrugen->min_seq[type] + 1; in lru_gen_add_folio()
[all …]
Dmmzone.h527 struct lru_gen_struct lrugen; member
/linux-6.1.9/mm/
Dworkingset.c226 struct lru_gen_struct *lrugen; in lru_gen_eviction() local
237 lrugen = &lruvec->lrugen; in lru_gen_eviction()
238 min_seq = READ_ONCE(lrugen->min_seq[type]); in lru_gen_eviction()
242 atomic_long_add(delta, &lrugen->evicted[hist][type][tier]); in lru_gen_eviction()
255 struct lru_gen_struct *lrugen; in lru_gen_refault() local
273 lrugen = &lruvec->lrugen; in lru_gen_refault()
275 min_seq = READ_ONCE(lrugen->min_seq[type]); in lru_gen_refault()
284 atomic_long_add(delta, &lrugen->refaulted[hist][type][tier]); in lru_gen_refault()
Dvmscan.c3127 unsigned long max_seq = READ_ONCE((lruvec)->lrugen.max_seq)
3131 READ_ONCE((lruvec)->lrugen.min_seq[LRU_GEN_ANON]), \
3132 READ_ONCE((lruvec)->lrugen.min_seq[LRU_GEN_FILE]), \
3174 return lruvec->lrugen.max_seq - lruvec->lrugen.min_seq[type] + 1; in get_nr_gens()
3582 struct lru_gen_struct *lrugen = &lruvec->lrugen; in read_ctrl_pos() local
3583 int hist = lru_hist_from_seq(lrugen->min_seq[type]); in read_ctrl_pos()
3585 pos->refaulted = lrugen->avg_refaulted[type][tier] + in read_ctrl_pos()
3586 atomic_long_read(&lrugen->refaulted[hist][type][tier]); in read_ctrl_pos()
3587 pos->total = lrugen->avg_total[type][tier] + in read_ctrl_pos()
3588 atomic_long_read(&lrugen->evicted[hist][type][tier]); in read_ctrl_pos()
[all …]
/linux-6.1.9/Documentation/mm/
Dmultigen_lru.rst84 ``lrugen->max_seq`` for both anon and file types as they are aged on
86 ``lrugen->min_seq[]`` separately for anon and file types as clean file
92 truncated generation number is an index to ``lrugen->lists[]``. The
96 ``lrugen->lists[]``; otherwise it stores zero.
100 generations, tiers do not have dedicated ``lrugen->lists[]``. In
130 increments ``min_seq`` when ``lrugen->lists[]`` indexed by