Kconfig (b3bbcc5d1da1b654091dad15980b3d58fdae0fc6) Kconfig (ec1c86b25f4bdd9dce6436c0539d2a6ae676e1c4)
1# SPDX-License-Identifier: GPL-2.0-only
2
3menu "Memory Management options"
4
5#
6# For some reason microblaze and nios2 hard code SWAP=n. Hopefully we can
7# add proper SWAP support to them, in which case this can be remove.
8#

--- 9 unchanged lines hidden (view full) ---

18 default y
19 help
20 This option allows you to choose whether you want to have support
21 for so called swap devices or swap files in your kernel that are
22 used to provide more virtual memory than the actual RAM present
23 in your computer. If unsure say Y.
24
25config ZSWAP
1# SPDX-License-Identifier: GPL-2.0-only
2
3menu "Memory Management options"
4
5#
6# For some reason microblaze and nios2 hard code SWAP=n. Hopefully we can
7# add proper SWAP support to them, in which case this can be remove.
8#

--- 9 unchanged lines hidden (view full) ---

18 default y
19 help
20 This option allows you to choose whether you want to have support
21 for so called swap devices or swap files in your kernel that are
22 used to provide more virtual memory than the actual RAM present
23 in your computer. If unsure say Y.
24
25config ZSWAP
26 bool "Compressed cache for swap pages (EXPERIMENTAL)"
26 bool "Compressed cache for swap pages"
27 depends on SWAP
28 select FRONTSWAP
29 select CRYPTO
30 select ZPOOL
31 help
32 A lightweight compressed cache for swap pages. It takes
33 pages that are in the process of being swapped out and attempts to
34 compress them into a dynamically allocated RAM-based memory pool.
35 This can result in a significant I/O reduction on swap device and,
36 in the case where decompressing from RAM is faster than swap device
37 reads, can also improve workload performance.
38
27 depends on SWAP
28 select FRONTSWAP
29 select CRYPTO
30 select ZPOOL
31 help
32 A lightweight compressed cache for swap pages. It takes
33 pages that are in the process of being swapped out and attempts to
34 compress them into a dynamically allocated RAM-based memory pool.
35 This can result in a significant I/O reduction on swap device and,
36 in the case where decompressing from RAM is faster than swap device
37 reads, can also improve workload performance.
38
39 This is marked experimental because it is a new feature (as of
40 v3.11) that interacts heavily with memory reclaim. While these
41 interactions don't cause any known issues on simple memory setups,
42 they have not be fully explored on the large set of potential
43 configurations and workloads that exist.
44
45config ZSWAP_DEFAULT_ON
46 bool "Enable the compressed cache for swap pages by default"
47 depends on ZSWAP
48 help
49 If selected, the compressed cache for swap pages will be enabled
50 at boot, otherwise it will be disabled.
51
52 The selection made here can be overridden by using the kernel

--- 1066 unchanged lines hidden (view full) ---

1119 depends on HAVE_ARCH_USERFAULTFD_WP
1120 select PTE_MARKER
1121
1122 help
1123 Allows to create marker PTEs for userfaultfd write protection
1124 purposes. It is required to enable userfaultfd write protection on
1125 file-backed memory types like shmem and hugetlbfs.
1126
39config ZSWAP_DEFAULT_ON
40 bool "Enable the compressed cache for swap pages by default"
41 depends on ZSWAP
42 help
43 If selected, the compressed cache for swap pages will be enabled
44 at boot, otherwise it will be disabled.
45
46 The selection made here can be overridden by using the kernel

--- 1066 unchanged lines hidden (view full) ---

1113 depends on HAVE_ARCH_USERFAULTFD_WP
1114 select PTE_MARKER
1115
1116 help
1117 Allows to create marker PTEs for userfaultfd write protection
1118 purposes. It is required to enable userfaultfd write protection on
1119 file-backed memory types like shmem and hugetlbfs.
1120
1121config LRU_GEN
1122 bool "Multi-Gen LRU"
1123 depends on MMU
1124 # make sure folio->flags has enough spare bits
1125 depends on 64BIT || !SPARSEMEM || SPARSEMEM_VMEMMAP
1126 help
1127 A high performance LRU implementation to overcommit memory.
1128
1127source "mm/damon/Kconfig"
1128
1129endmenu
1129source "mm/damon/Kconfig"
1130
1131endmenu