Lines Matching +full:memory +full:- +full:to +full:- +full:memory

1 # SPDX-License-Identifier: GPL-2.0-only
3 menu "Memory Management options"
7 # add proper SWAP support to them, in which case this can be remove.
16 bool "Support for paging of anonymous memory (swap)"
20 This option allows you to choose whether you want to have support
22 used to provide more virtual memory than the actual RAM present
32 pages that are in the process of being swapped out and attempts to
33 compress them into a dynamically allocated RAM-based memory pool.
49 bool "Shrink the zswap pool on memory pressure"
55 written back to the backing swap device) on memory pressure.
60 and consume memory indefinitely.
71 a particular compression algorithm please refer to the benchmarks
178 It is designed to store up to two compressed pages per physical
180 deterministic reclaim properties that make it preferable to a higher
189 linux-mm@kvack.org and the zswap maintainers.
192 It is designed to store up to three compressed pages per physical
207 zsmalloc is a slab-based memory allocator designed to store
216 This option enables code in the zsmalloc to collect various
218 information to userspace via debugfs.
222 int "Maximum number of physical pages per-zspage"
246 bool "Configure for minimal memory footprint"
250 Configures the slab allocator in a way to achieve minimal memory
259 bool "Allow slab caches to be merged"
262 For reduced kernel memory fragmentation, slab caches can be
264 This carries a risk of kernel heap overflows being able to
266 cache layout), which makes such heap attacks easier to exploit
268 can usually only damage objects in the same cache. To disable
284 Many kernel heap attacks try to target slab cache metadata and
286 sacrifices to harden the kernel slab allocator against common
294 Kernel heap attacks frequently depend on being able to create
295 specifically-sized allocations with user-controlled contents
297 target object. To avoid sharing these allocation buckets,
298 provide an explicitly separated set of buckets to be used for
299 user-controlled allocations. This may very slightly increase
300 memory fragmentation, though in practice it's only a handful
301 of extra pages since the bulk of user-controlled allocations
302 are relatively long-lived.
311 The statistics are useful to debug slab allocation behavior in
312 order find ways to optimize the allocator. This should never be
315 supports the determination of the most active slabs to figure
316 out which slabs are relevant to a particular load.
317 Try running: slabinfo -DA
325 that is local to a processor at the price of more indeterminism
337 on code address, which makes the attackers more difficult to spray
338 vulnerable memory objects on the heap for the purpose of exploiting
339 memory vulnerabilities.
341 Currently the number of copies is set to 16, a reasonably large value
342 that effectively diverges the memory objects allocated for different
344 limited degree of memory and CPU overhead that relates to hardware and
354 utilization of a direct-mapped memory-side-cache. See section
355 5.2.27 Heterogeneous Memory Attribute Table (HMAT) in the ACPI
357 the presence of a memory-side-cache. There are also incidental
359 allocations to compliment SLAB_FREELIST_RANDOM, but the
378 This option changes the bootup default to heap randomization
380 /proc/sys/kernel/randomize_va_space to 2.
382 On non-ancient distros (post-2000 ones) N is usually a safe choice.
385 bool "Allow mmapped anonymous memory to be uninitialized"
389 Normally, and according to the Linux spec, anonymous memory obtained
390 from mmap() has its contents cleared before it is passed to
391 userspace. Enabling this config option allows you to request that
397 ELF-FDPIC binfmt's brk and stack allocator.
401 userspace. Since that isn't generally a problem on no-MMU systems,
402 it is normally safe to say Y here.
404 See Documentation/admin-guide/mm/nommu-mmap.rst for more information.
411 prompt "Memory model"
416 This option allows you to change some of the ways that
417 Linux manages its memory internally. Most users will
422 bool "Flat Memory"
425 This option is best suited for non-NUMA systems with
431 spaces and for features like NUMA and memory hotplug,
432 choose "Sparse Memory".
434 If unsure, choose this option (Flat Memory) over any other.
437 bool "Sparse Memory"
441 memory hot-plug systems. This is normal.
444 holes is their physical address space and allows memory
445 hot-plug and hot-remove.
447 If unsure, choose "Flat Memory" over this option.
485 bool "Sparse Memory virtual memmap"
489 SPARSEMEM_VMEMMAP uses a virtually mapped memmap to optimise
494 # to enable the feature of HugeTLB/dev_dax vmemmap optimization.
509 # Don't discard allocated memory used to track "memory" and "reserved" memblocks
510 # after early boot, so it can still be used to test for validity of memory.
511 # Also, memblocks are updated with memory hot(un)plug.
515 # Keep arch NUMA mapping infrastructure post-init.
523 # IORESOURCE_EXCLUSIVE cannot be mapped to user space, for example, via
530 # Only be set on architectures that have completely implemented memory hotplug
544 bool "Memory hotplug"
554 bool "Online the newly added memory blocks by default"
557 This option sets the default policy setting for memory hotplug
558 onlining policy (/sys/devices/system/memory/auto_online_blocks) which
559 determines what happens to newly added memory regions. Policy setting
561 See Documentation/admin-guide/mm/memory-hotplug.rst for more information.
563 Say Y here if you want all hot-plugged memory blocks to appear in
565 Say N here if you want the default policy to keep all hot-plugged
566 memory blocks in 'offline' state.
569 bool "Allow for memory hot remove"
584 # Heavily threaded applications may benefit from splitting the mm-wide
587 # Default to 4 for wider testing, though 8 might be more appropriate.
588 # ARM's adjust_pte (unused if VIPT) depends on mm-wide page_table_lock.
589 # PA-RISC 7xxx's spinlock_t would enlarge struct page from 32 to 44 bytes.
591 # a per-page lock leads to problems when multiple tables need to be locked
612 # support for memory balloon
617 # support for memory balloon compaction
619 bool "Allow for balloon memory compaction/migration"
623 Memory fragmentation introduced by ballooning might reduce
624 significantly the number of 2MB contiguous memory blocks that can be
627 by the guest workload. Allowing the compaction & migration for memory
628 pages enlisted as being part of memory balloon devices avoids the
629 scenario aforementioned and helps improving memory defragmentation.
632 # support for memory compaction
634 bool "Allow for memory compaction"
639 Compaction is the only memory management component to form
640 high order (larger physically contiguous) memory blocks
642 the lack of the feature can lead to unexpected OOM killer
643 invocations for high order memory requests. You shouldn't
645 it and then we would be really interested to hear about that at
646 linux-mm@kvack.org.
661 those pages to another entity, such as a hypervisor, so that the
662 memory can be freed within the host for other uses.
674 two situations. The first is on NUMA systems to put pages nearer
675 to the processors accessing. The second is when allocating huge
676 pages as migration can relocate pages to satisfy a huge page
691 Allows the pageblock_order value to be dynamic instead of just standard
696 clamped down to MAX_PAGE_ORDER.
702 int "Maximum scale factor of PCP (Per-CPU pageset) batch allocate/free"
706 In page allocator, PCP (Per-CPU pageset) is refilled and drained in
707 batches. The batch number is scaled automatically to improve page
709 latency. This option sets the upper limit of scale factor to limit
721 memory available to the CPU. Enabled by default when HIGHMEM is
722 selected, but you may say n to override this.
737 saving memory until one or another app needs to modify the content.
741 root has set /sys/kernel/mm/ksm/run to 1 (if CONFIG_SYSFS is set).
744 int "Low address space to protect from user allocation"
748 This is the portion of low virtual memory which should be protected
749 from userspace allocation. Keeping a user from writing to low pages
755 Programs which use vm86 functionality or have some need to map
757 protection by setting the value to 0.
768 bool "Enable recovery from hardware memory errors"
772 Enables code to recover from some memory failures on systems
773 with MCA recovery. This allows a system to continue running
774 even when some of its memory has uncorrected errors. This requires
775 special hardware support and typically ECC memory.
787 The NOMMU mmap() frequently needs to allocate large contiguous chunks
788 of memory on which to store mappings, but it can only ask the system
789 allocator for chunks in 2^N*PAGE_SIZE amounts - which is frequently
790 more than it requires. To deal with this, mmap() is able to trim off
791 the excess and return it to the allocator.
793 If trimming is enabled, the excess is trimmed off and returned to the
798 long-term mappings means that the space is wasted.
803 no trimming is to occur.
808 See Documentation/admin-guide/mm/nommu-mmap.rst for more information.
822 Transparent Hugepages allows the kernel to use huge pages and
823 huge tlb transparently to the applications whenever possible.
824 This feature can improve computing performance to certain
825 applications by speeding up page faults during memory
829 If memory constrained on embedded, you may want to say N.
844 memory footprint of applications without a guaranteed
851 performance improvement benefit to the applications using
852 madvise(MADV_HUGEPAGE) but it won't risk to increase the
853 memory footprint of applications without a guaranteed
874 bool "Read-only THP for filesystems (EXPERIMENTAL)"
878 Allow khugepaged to put read-only file-backed pages in THP.
892 # TODO: Allow to be enabled without THP
926 bool "Contiguous Memory Allocator"
931 This enables the Contiguous Memory Allocator which allows other
932 subsystems to allocate big physically-contiguous blocks of memory.
933 CMA reserves a region of memory and allows only movable pages to
934 be allocated from it. This way, the kernel can use the memory for
936 allocated pages are migrated away to serve the contiguous request.
950 This option exposes some sysfs attributes to get information
959 CMA allows to create CMA areas for particular purpose, mainly,
966 bool "Track memory changes"
970 This option enables memory changes tracking by introducing a
971 soft-dirty bit on pte-s. This bit it set when someone writes
975 See Documentation/admin-guide/mm/soft-dirty.rst for more details.
981 int "Default maximum user stack size for 32-bit processes (MB)"
986 This is the maximum stack size in Megabytes in the VM layout of 32-bit
993 bool "Defer initialisation of struct pages to kthreads"
1012 This adds PG_idle and PG_young flags to 'struct page'. PTE Accessed
1021 This feature allows to estimate the amount of user pages that have
1023 be useful to tune memory cgroup limits and/or for job placement
1026 See Documentation/admin-guide/mm/idle_page_tracking.rst for
1029 # Architectures which implement cpu_dcache_is_aliasing() to query
1031 # aliasing) need to select this.
1042 checking, an architecture-agnostic way to find the stack pointer
1063 bool "Device memory (pmem, HMM, etc...) hotplug support"
1071 Device memory hotplug support allows for establishing pmem,
1072 or other device driver discovered memory regions, in the
1074 "device-physical" addresses which is needed for using a DAX
1080 # Helpers to mirror range of the CPU page tables of a process into device page
1091 bool "Unaddressable device memory (GPU memory, ...)"
1096 Allows creation of struct pages to represent unaddressable device
1097 memory; i.e., memory that is only accessible from the device (or
1098 group of devices). You likely also want to select HMM_MIRROR.
1117 VM event counters are needed for event counts to be shown.
1123 bool "Collect percpu memory statistics"
1127 be used to help understand percpu memory usage.
1130 bool "Enable infrastructure for get_user_pages()-related unit tests"
1134 to make ioctl calls that can launch kernel-based unit tests for
1139 the non-_fast variants.
1141 There is also a sub-test that allows running dump_page() on any
1142 of up to eight pages (selected by command line args) within the
1143 range of user-space addresses. These pages are either pinned via
1149 comment "GUP_TEST needs to have DEBUG_FS enabled"
1156 tristate "Enable a module to run time tests on dma_pool"
1160 various sizes and report how long it takes. This is intended to
1161 provide a consistent way to measure how changes to the
1188 Enable the memfd_secret() system call with the ability to create
1189 memory areas visible only in the context of the owning process and
1190 not mapped to other processes and other kernel page tables.
1197 Allow naming anonymous virtual memory areas.
1199 This feature allows assigning names to virtual memory areas. Assigned
1201 and help identifying individual anonymous memory areas.
1202 Assigning a name to anonymous virtual memory area might prevent that
1203 area from being merged with adjacent virtual memory areas due to the
1220 Enable the userfaultfd() system call that allows to intercept and
1230 Allows to create marker PTEs for userfaultfd write protection
1231 purposes. It is required to enable userfaultfd write protection on
1232 file-backed memory types like shmem and hugetlbfs.
1235 # multi-gen LRU {
1237 bool "Multi-Gen LRU"
1239 # make sure folio->flags has enough spare bits
1242 A high performance LRU implementation to overcommit memory. See
1243 Documentation/admin-guide/mm/multigen_lru.rst for details.
1249 This option enables the multi-gen LRU by default.
1255 Do not enable this option unless you plan to look at historical stats
1258 This option has a per-memcg and per-node memory overhead.
1272 Allow per-vma locking during page fault handling.
1274 This feature allows locking each virtual memory area separately when