Home
last modified time | relevance | path

Searched refs:lru_gen (Results 1 – 3 of 3) sorted by relevance

/linux-6.6.21/Documentation/admin-guide/mm/
Dmultigen_lru.rst22 ``/sys/kernel/mm/lru_gen/`` contains stable ABIs described in the
57 echo y >/sys/kernel/mm/lru_gen/enabled
58 cat /sys/kernel/mm/lru_gen/enabled
60 echo 5 >/sys/kernel/mm/lru_gen/enabled
61 cat /sys/kernel/mm/lru_gen/enabled
86 ``/sys/kernel/debug/lru_gen`` accepts commands described in the
105 When it is read, ``lru_gen`` returns a histogram of numbers of pages
122 Users can write the following command to ``lru_gen`` to create a new
146 Users can write the following command to ``lru_gen`` to evict
/linux-6.6.21/include/linux/
Dmm_types.h918 } lru_gen; member
965 INIT_LIST_HEAD(&mm->lru_gen.list); in lru_gen_init_mm()
966 mm->lru_gen.bitmap = 0; in lru_gen_init_mm()
968 mm->lru_gen.memcg = NULL; in lru_gen_init_mm()
979 WRITE_ONCE(mm->lru_gen.bitmap, -1); in lru_gen_use_mm()
/linux-6.6.21/mm/
Dvmscan.c3446 VM_WARN_ON_ONCE(!list_empty(&mm->lru_gen.list)); in lru_gen_add_mm()
3448 VM_WARN_ON_ONCE(mm->lru_gen.memcg); in lru_gen_add_mm()
3449 mm->lru_gen.memcg = memcg; in lru_gen_add_mm()
3458 lruvec->mm_state.tail = &mm->lru_gen.list; in lru_gen_add_mm()
3461 list_add_tail(&mm->lru_gen.list, &mm_list->fifo); in lru_gen_add_mm()
3472 if (list_empty(&mm->lru_gen.list)) in lru_gen_del_mm()
3476 memcg = mm->lru_gen.memcg; in lru_gen_del_mm()
3486 if (lruvec->mm_state.head == &mm->lru_gen.list) in lru_gen_del_mm()
3490 if (lruvec->mm_state.tail == &mm->lru_gen.list) in lru_gen_del_mm()
3494 list_del_init(&mm->lru_gen.list); in lru_gen_del_mm()
[all …]