2018-04-18 16:07:48 +08:00
|
|
|
=================
|
|
|
|
Memory Management
|
|
|
|
=================
|
|
|
|
|
|
|
|
Linux memory management subsystem is responsible, as the name implies,
|
|
|
|
for managing the memory in the system. This includes implemnetation of
|
|
|
|
virtual memory and demand paging, memory allocation both for kernel
|
|
|
|
internal structures and user space programms, mapping of files into
|
|
|
|
processes address space and many other cool things.
|
|
|
|
|
|
|
|
Linux memory management is a complex system with many configurable
|
|
|
|
settings. Most of these settings are available via ``/proc``
|
|
|
|
filesystem and can be quired and adjusted using ``sysctl``. These APIs
|
|
|
|
are described in Documentation/sysctl/vm.txt and in `man 5 proc`_.
|
|
|
|
|
|
|
|
.. _man 5 proc: http://man7.org/linux/man-pages/man5/proc.5.html
|
|
|
|
|
|
|
|
Here we document in detail how to interact with various mechanisms in
|
|
|
|
the Linux memory management.
|
2018-04-18 16:07:49 +08:00
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 1
|
|
|
|
|
|
|
|
hugetlbpage
|
|
|
|
idle_page_tracking
|
2018-04-24 14:40:28 +08:00
|
|
|
ksm
|
2018-04-18 16:07:49 +08:00
|
|
|
pagemap
|
|
|
|
soft-dirty
|
|
|
|
userfaultfd
|