Skip to content

Commit

Permalink
feat: add multi-gen LRU kernel support
Browse files Browse the repository at this point in the history
Adds Multi-Gen LRU support to the kernel but does not enable it by
default. MG LRU is one of the most hyped features of 6.1.

Options and /sys/kernel control:
https://kernel.org/doc/html/v6.1/admin-guide/mm/multigen_lru.html
General docs:
https://kernel.org/doc/html/v6.1/mm/multigen_lru.html

Benchmarks:
https://www.phoronix.com/news/MGLRU-July-2022-Performance

TLDR presentation slides:
https://www.phoronix.com/news/MGLRU-LPC-2022

Signed-off-by: Nico Berlee <[email protected]>
Signed-off-by: Andrey Smirnov <[email protected]>
  • Loading branch information
nberlee authored and smira committed Apr 24, 2023
1 parent 988f1ec commit 3920b16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion kernel/build/config-amd64
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,8 @@ CONFIG_ARCH_HAS_PTE_SPECIAL=y
CONFIG_SECRETMEM=y
# CONFIG_ANON_VMA_NAME is not set
# CONFIG_USERFAULTFD is not set
# CONFIG_LRU_GEN is not set
CONFIG_LRU_GEN=y
# CONFIG_LRU_GEN_ENABLED is not set

#
# Data Access Monitoring
Expand Down
3 changes: 2 additions & 1 deletion kernel/build/config-arm64
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,8 @@ CONFIG_VM_EVENT_COUNTERS=y
CONFIG_ARCH_HAS_PTE_SPECIAL=y
# CONFIG_ANON_VMA_NAME is not set
# CONFIG_USERFAULTFD is not set
# CONFIG_LRU_GEN is not set
CONFIG_LRU_GEN=y
# CONFIG_LRU_GEN_ENABLED is not set

#
# Data Access Monitoring
Expand Down

0 comments on commit 3920b16

Please sign in to comment.