Skip to content

Commit d17ff43

Browse files
vbendelJonathan Corbet
authored andcommitted
docs: mm: fix vm overcommit documentation for OVERCOMMIT_GUESS
Commit 8c7829b "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: Jozef Bacik <jobacik@redhat.com> Signed-off-by: Vratislav Bendel <vbendel@redhat.com> Acked-by: Mike Rapoport <rppt@linux.ibm.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/20220829124638.63748-1-vbendel@redhat.com
1 parent a3c12cf commit d17ff43

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

Documentation/admin-guide/sysctl/vm.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -742,8 +742,8 @@ overcommit_memory
742742

743743
This value contains a flag that enables memory overcommitment.
744744

745-
When this flag is 0, the kernel attempts to estimate the amount
746-
of free memory left when userspace requests more memory.
745+
When this flag is 0, the kernel compares the userspace memory request
746+
size against total memory plus swap and rejects obvious overcommits.
747747

748748
When this flag is 1, the kernel pretends there is always enough
749749
memory until it actually runs out.

Documentation/mm/overcommit-accounting.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ The Linux kernel supports the following overcommit handling modes
88
Heuristic overcommit handling. Obvious overcommits of address
99
space are refused. Used for a typical system. It ensures a
1010
seriously wild allocation fails while allowing overcommit to
11-
reduce swap usage. root is allowed to allocate slightly more
12-
memory in this mode. This is the default.
11+
reduce swap usage. This is the default.
1312

1413
1
1514
Always overcommit. Appropriate for some scientific

0 commit comments

Comments
 (0)