Home
last modified time | relevance | path

Searched refs:MAX_NR_GENS (Results 1 – 6 of 6) sorted by relevance

/Linux-v6.6/include/linux/
Dmm_inline.h127 return seq % MAX_NR_GENS; in lru_gen_from_seq()
168 VM_WARN_ON_ONCE(gen >= MAX_NR_GENS); in lru_gen_is_active()
183 VM_WARN_ON_ONCE(old_gen != -1 && old_gen >= MAX_NR_GENS); in lru_gen_update_size()
184 VM_WARN_ON_ONCE(new_gen != -1 && new_gen >= MAX_NR_GENS); in lru_gen_update_size()
Dmmzone.h347 #define MAX_NR_GENS 4U macro
398 #define NR_HIST_GENS MAX_NR_GENS
422 unsigned long timestamps[MAX_NR_GENS];
424 struct list_head folios[MAX_NR_GENS][ANON_AND_FILE][MAX_NR_ZONES];
426 long nr_pages[MAX_NR_GENS][ANON_AND_FILE][MAX_NR_ZONES];
482 int nr_pages[MAX_NR_GENS][ANON_AND_FILE][MAX_NR_ZONES];
/Linux-v6.6/kernel/
Dbounds.c26 DEFINE(LRU_GEN_WIDTH, order_base_2(MAX_NR_GENS + 1)); in main()
/Linux-v6.6/Documentation/mm/
Dmultigen_lru.rst90 Generation numbers are truncated into ``order_base_2(MAX_NR_GENS+1)``
94 at most ``MAX_NR_GENS`` generations. The gen counter stores a value
95 within ``[1, MAX_NR_GENS]`` while a page is on one of
126 page mapped by this PTE to ``(max_seq%MAX_NR_GENS)+1``.
132 ``min_seq%MAX_NR_GENS`` becomes empty. To select a type and a tier to
/Linux-v6.6/mm/
Dvmscan.c3273 for ((gen) = 0; (gen) < MAX_NR_GENS; (gen)++) \
3325 get_nr_gens(lruvec, LRU_GEN_ANON) <= MAX_NR_GENS; in seq_is_valid()
3777 VM_WARN_ON_ONCE(gen >= MAX_NR_GENS); in folio_update_gen()
3811 new_gen = (old_gen + 1) % MAX_NR_GENS; in folio_inc_gen()
3832 VM_WARN_ON_ONCE(old_gen >= MAX_NR_GENS); in update_batch_size()
3833 VM_WARN_ON_ONCE(new_gen >= MAX_NR_GENS); in update_batch_size()
4449 if (get_nr_gens(lruvec, type) != MAX_NR_GENS) in inc_max_seq()
4908 VM_WARN_ON_ONCE_FOLIO(gen >= MAX_NR_GENS, folio); in sort_folio()
5950 else if (max_seq >= MAX_NR_GENS) in lru_gen_seq_show()
5951 seq = max_seq - MAX_NR_GENS + 1; in lru_gen_seq_show()
[all …]
/Linux-v6.6/Documentation/admin-guide/mm/
Dmultigen_lru.rst107 ``MAX_NR_GENS`` decides the number of bins for each histogram. The