1*4882a593Smuzhiyun================= 2*4882a593SmuzhiyunMemory Management 3*4882a593Smuzhiyun================= 4*4882a593Smuzhiyun 5*4882a593SmuzhiyunLinux memory management subsystem is responsible, as the name implies, 6*4882a593Smuzhiyunfor managing the memory in the system. This includes implemnetation of 7*4882a593Smuzhiyunvirtual memory and demand paging, memory allocation both for kernel 8*4882a593Smuzhiyuninternal structures and user space programms, mapping of files into 9*4882a593Smuzhiyunprocesses address space and many other cool things. 10*4882a593Smuzhiyun 11*4882a593SmuzhiyunLinux memory management is a complex system with many configurable 12*4882a593Smuzhiyunsettings. Most of these settings are available via ``/proc`` 13*4882a593Smuzhiyunfilesystem and can be quired and adjusted using ``sysctl``. These APIs 14*4882a593Smuzhiyunare described in Documentation/admin-guide/sysctl/vm.rst and in `man 5 proc`_. 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun.. _man 5 proc: http://man7.org/linux/man-pages/man5/proc.5.html 17*4882a593Smuzhiyun 18*4882a593SmuzhiyunLinux memory management has its own jargon and if you are not yet 19*4882a593Smuzhiyunfamiliar with it, consider reading 20*4882a593Smuzhiyun:ref:`Documentation/admin-guide/mm/concepts.rst <mm_concepts>`. 21*4882a593Smuzhiyun 22*4882a593SmuzhiyunHere we document in detail how to interact with various mechanisms in 23*4882a593Smuzhiyunthe Linux memory management. 24*4882a593Smuzhiyun 25*4882a593Smuzhiyun.. toctree:: 26*4882a593Smuzhiyun :maxdepth: 1 27*4882a593Smuzhiyun 28*4882a593Smuzhiyun concepts 29*4882a593Smuzhiyun cma_debugfs 30*4882a593Smuzhiyun hugetlbpage 31*4882a593Smuzhiyun idle_page_tracking 32*4882a593Smuzhiyun ksm 33*4882a593Smuzhiyun memory-hotplug 34*4882a593Smuzhiyun nommu-mmap 35*4882a593Smuzhiyun numa_memory_policy 36*4882a593Smuzhiyun numaperf 37*4882a593Smuzhiyun pagemap 38*4882a593Smuzhiyun soft-dirty 39*4882a593Smuzhiyun transhuge 40*4882a593Smuzhiyun userfaultfd 41