summaryrefslogtreecommitdiff
path: root/mm/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'mm/Kconfig')
-rw-r--r--mm/Kconfig84
1 files changed, 83 insertions, 1 deletions
diff --git a/mm/Kconfig b/mm/Kconfig
index 5753f69b23f4..274a315e0684 100644
--- a/mm/Kconfig
+++ b/mm/Kconfig
@@ -187,7 +187,7 @@ config MEMORY_HOTPLUG
bool "Allow for memory hot-add"
depends on SPARSEMEM || X86_64_ACPI_NUMA
depends on ARCH_ENABLE_MEMORY_HOTPLUG
- depends on (IA64 || X86 || PPC_BOOK3S_64 || SUPERH || S390)
+ depends on (IA64 || X86 || PPC_BOOK3S_64 || SUPERH || S390 || ARM64)
config MEMORY_HOTPLUG_SPARSE
def_bool y
@@ -601,6 +601,16 @@ config ZSMALLOC_STAT
information to userspace via debugfs.
If unsure, say N.
+config VMAP_LAZY_PURGING_FACTOR
+ int "multiplier to the size of purged vmap areas"
+ default "8" if ARM
+ default "32"
+ help
+ It is used as a multiplier to the max VA pages purged in a
+ single attempt. For 32-bit in order to reduce fragmentation
+ of vmalloc space, we decrease the default value to "8".
+
+
config GENERIC_EARLY_IOREMAP
bool
@@ -619,6 +629,44 @@ config MAX_STACK_SIZE_MB
A sane initial value is 80 MB.
+config ZCACHE
+ bool "Compressed cache for file pages (EXPERIMENTAL)"
+ depends on CRYPTO && CLEANCACHE
+ select CRYPTO_LZO
+ select ZBUD
+ default n
+ help
+ A compressed cache for file pages.
+ It takes active file pages that are in the process of being reclaimed
+ and attempts to compress them into a dynamically allocated RAM-based
+ memory pool.
+
+ If this process is successful, when those file pages needed again, the
+ I/O reading operation was avoided. This results in a significant performance
+ gains under memory pressure for systems full with file pages.
+
+config BALANCE_ANON_FILE_RECLAIM
+ bool "During reclaim treat anon and file backed pages equally"
+ depends on SWAP
+ help
+ When performing memory reclaim treat anonymous and file backed pages
+ equally.
+ Swapping anonymous pages out to memory can be efficient enough to justify
+ treating anonymous and file backed pages equally.
+
+config KSWAPD_CPU_AFFINITY_MASK
+ string "kswapd cpu affinity mask"
+ depends on SMP
+ help
+ Set the cpu affinity for the kswapd task.
+ There can be power benefits on certain targets when limiting kswapd
+ to run only on certain cores.
+ The cpu affinity bitmask is represented by a hex string where commas
+ group hex digits into chunks. Each chunk defines exactly 32 bits of
+ the resultant bitmask.
+ For example to limit kswapd to the first 4 cores use the following:
+ CONFIG_KSWAPD_CPU_AFFINITY_MASK="f"
+
# For architectures that support deferred memory initialisation
config ARCH_SUPPORTS_DEFERRED_STRUCT_PAGE_INIT
bool
@@ -669,3 +717,37 @@ config ZONE_DEVICE
config FRAME_VECTOR
bool
+
+config FORCE_ALLOC_FROM_DMA_ZONE
+ bool "Force certain memory allocators to always return ZONE_DMA memory"
+ depends on ZONE_DMA
+ help
+ Ensure certain memory allocators always return memory from ZONE_DMA.
+ This option helps ensure that clients who require ZONE_DMA memory are
+ always using ZONE_DMA memory.
+
+ If unsure, say "n".
+
+config PROCESS_RECLAIM
+ bool "Enable process reclaim"
+ depends on PROC_FS
+ default n
+ help
+ It allows to reclaim pages of the process by /proc/pid/reclaim.
+
+ (echo file > /proc/PID/reclaim) reclaims file-backed pages only.
+ (echo anon > /proc/PID/reclaim) reclaims anonymous pages only.
+ (echo all > /proc/PID/reclaim) reclaims all pages.
+
+ (echo addr size-byte > /proc/PID/reclaim) reclaims pages in
+ (addr, addr + size-bytes) of the process.
+
+ Any other vaule is ignored.
+
+config VM_MAX_READAHEAD
+ int "default max readahead window size"
+ default 128
+ help
+ This sets the VM_MAX_READAHEAD value to allow the readahead window
+ to grow to a maximum size of configured. This will benefit sequential
+ read throughput and thus early boot performance.