From 3920b163a5c6a6d7c7969155a909a7b2122e65f6 Mon Sep 17 00:00:00 2001 From: Nico Berlee Date: Fri, 14 Apr 2023 10:31:08 +0200 Subject: [PATCH] feat: add multi-gen LRU kernel support 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 Signed-off-by: Andrey Smirnov --- kernel/build/config-amd64 | 3 ++- kernel/build/config-arm64 | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/kernel/build/config-amd64 b/kernel/build/config-amd64 index 5df1771f..fe992c93 100644 --- a/kernel/build/config-amd64 +++ b/kernel/build/config-amd64 @@ -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 diff --git a/kernel/build/config-arm64 b/kernel/build/config-arm64 index a06308a0..2a93dab1 100644 --- a/kernel/build/config-arm64 +++ b/kernel/build/config-arm64 @@ -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