docs: mm: fix vm overcommit documentation for OVERCOMMIT_GUESS
authorVratislav Bendel <vbendel@redhat.com>
Mon, 29 Aug 2022 12:46:38 +0000 (14:46 +0200)
committerJonathan Corbet <corbet@lwn.net>
Tue, 10 Oct 2023 19:35:55 +0000 (13:35 -0600)
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
Documentation/admin-guide/sysctl/vm.rst
Documentation/mm/overcommit-accounting.rst

index 45ba1f4dc004876f16a57fbcb34debd065769bc2..c59889de122b9f928f2d515c2950bfea16bad4fb 100644 (file)
@@ -742,8 +742,8 @@ overcommit_memory
 
 This value contains a flag that enables memory overcommitment.
 
-When this flag is 0, the kernel attempts to estimate the amount
-of free memory left when userspace requests more memory.
+When this flag is 0, the kernel compares the userspace memory request
+size against total memory plus swap and rejects obvious overcommits.
 
 When this flag is 1, the kernel pretends there is always enough
 memory until it actually runs out.
index a4895d6fc1c23328a90b9306619e1e7737e5446f..e2263477f6d502e594e8b8800d26fc37aebfb482 100644 (file)
@@ -8,8 +8,7 @@ The Linux kernel supports the following overcommit handling modes
        Heuristic overcommit handling. Obvious overcommits of address
        space are refused. Used for a typical system. It ensures a
        seriously wild allocation fails while allowing overcommit to
-       reduce swap usage.  root is allowed to allocate slightly more
-       memory in this mode. This is the default.
+       reduce swap usage. This is the default.
 
 1
        Always overcommit. Appropriate for some scientific