Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

docs: mm: fix vm overcommit documentation for OVERCOMMIT_GUESS

Commit 8c7829b04c52 "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

authored by

Vratislav Bendel and committed by
Jonathan Corbet
d17ff438 a3c12cf3

+3 -4
+2 -2
Documentation/admin-guide/sysctl/vm.rst
··· 742 742 743 743 This value contains a flag that enables memory overcommitment. 744 744 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. 747 747 748 748 When this flag is 1, the kernel pretends there is always enough 749 749 memory until it actually runs out.
+1 -2
Documentation/mm/overcommit-accounting.rst
··· 8 8 Heuristic overcommit handling. Obvious overcommits of address 9 9 space are refused. Used for a typical system. It ensures a 10 10 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. 13 12 14 13 1 15 14 Always overcommit. Appropriate for some scientific