Skip to content
Permalink
Browse files
mm: multigenerational lru: Kconfig
Add configuration options for multigenerational lru.

Signed-off-by: Yu Zhao <yuzhao@google.com>
  • Loading branch information
yuzhaogoogle authored and intel-lab-lkp committed Mar 13, 2021
1 parent db94d3f commit 7a8b80d7f0d02852d49395fc6e035743816f6b1d
Showing 1 changed file with 29 additions and 0 deletions.
@@ -872,4 +872,33 @@ config MAPPING_DIRTY_HELPERS
config KMAP_LOCAL
bool

config LRU_GEN
bool "Multigenerational LRU"
depends on MMU
help
High performance multigenerational LRU to heavily overcommit workloads
that are not IO bound. See Documentation/vm/multigen_lru.rst for
details.

Warning: do not enable this option unless you plan to use it because
it introduces a small per-process memory overhead.

config NR_LRU_GENS
int "Max number of generations"
depends on LRU_GEN
range 4 63
default 7
help
This will use ilog2(N)+1 spare bits from page flags.

Warning: do not use numbers larger than necessary because each
generation introduces a small per-node and per-memcg memory overhead.

config LRU_GEN_ENABLED
bool "Turn on by default"
depends on LRU_GEN
help
The default value of /sys/kernel/mm/lru_gen/enabled is 0. This option
changes it to 1.

endmenu

0 comments on commit 7a8b80d

Please sign in to comment.