Commit d17ff438 authored by Vratislav Bendel's avatar Vratislav Bendel Committed by Jonathan Corbet

docs: mm: fix vm overcommit documentation for OVERCOMMIT_GUESS

Commit 8c7829b0 "mm: fix false-positive OVERCOMMIT_GUESS failures"
changed the behavior of the default OVERCOMMIT_GUESS setting.
Reflect the change also in the Documentation, namely files:
    Documentation/admin-guide/sysctl/vm.rst
    Documentation/mm/overcommit-accounting.rst
Reported-by: default avatarJozef Bacik <jobacik@redhat.com>
Signed-off-by: default avatarVratislav Bendel <vbendel@redhat.com>
Acked-by: default avatarMike Rapoport <rppt@linux.ibm.com>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20220829124638.63748-1-vbendel@redhat.com
parent a3c12cf3
...@@ -742,8 +742,8 @@ overcommit_memory ...@@ -742,8 +742,8 @@ overcommit_memory
This value contains a flag that enables memory overcommitment. This value contains a flag that enables memory overcommitment.
When this flag is 0, the kernel attempts to estimate the amount When this flag is 0, the kernel compares the userspace memory request
of free memory left when userspace requests more memory. size against total memory plus swap and rejects obvious overcommits.
When this flag is 1, the kernel pretends there is always enough When this flag is 1, the kernel pretends there is always enough
memory until it actually runs out. memory until it actually runs out.
......
...@@ -8,8 +8,7 @@ The Linux kernel supports the following overcommit handling modes ...@@ -8,8 +8,7 @@ The Linux kernel supports the following overcommit handling modes
Heuristic overcommit handling. Obvious overcommits of address Heuristic overcommit handling. Obvious overcommits of address
space are refused. Used for a typical system. It ensures a space are refused. Used for a typical system. It ensures a
seriously wild allocation fails while allowing overcommit to seriously wild allocation fails while allowing overcommit to
reduce swap usage. root is allowed to allocate slightly more reduce swap usage. This is the default.
memory in this mode. This is the default.
1 1
Always overcommit. Appropriate for some scientific Always overcommit. Appropriate for some scientific
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment