Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3123103rwe; Mon, 29 Aug 2022 06:17:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR4C4JJArp5lLK+3ITdL0mRGPkwpkan+VM6z067gVnoyFNGZ0cI4iK67FhhcLF5NgVSz1hHB X-Received: by 2002:a17:907:7f20:b0:73d:d54f:6571 with SMTP id qf32-20020a1709077f2000b0073dd54f6571mr12432904ejc.315.1661779044713; Mon, 29 Aug 2022 06:17:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661779044; cv=none; d=google.com; s=arc-20160816; b=eSSN1nhWpq+Hp1KZ931F387GMk8YyFXayHMyjihPNAKNEZtZElhugDEzd9W1SdxmlW oHqlZzsP2aVZTn1vnQhKzKPBjduXd9No/XFh9dVdAp+fWK3FBkQZ/4HeybzroFtNrNCp e84TQlcTN9lGnaRr8M7CIVISjDGn+w3B6J7LRMfJe0JtrgoVag2HczqXJxIT8b/i6Afq 13qv6euwVhIkT0cb4q7quXHarz6CopxXDwyY3FvAE10xkl7kxt8RlZn2U5Jnj4aXPtRn qqPxsc63FFbYOaMfDD6oAlp7hbA1/AVlD0w3I0DvqmwZ6RzFpG1lWs2y1g4fH7xg1A/l 5y/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Vq6S9k41K0ozfm3HjX6Hm9UzfxhgAZTgGJlWKH5WN+U=; b=OHR53TzGYVkzISs1nkHlrp5lRx++azfKzL6z7VkYf1x7ncGkzSrebEJR+QkuEFCz6Y U0T0NDOsdSBj9xRrf6rHraslnPWYfdaHF/6rsjyit6KQvWYCVp71o7F6KqcIKZCqBgkp i64Kaa+Sv56pNbsZD0jsQj9Tx/zN6vaO0qfCMA4UhM/QiH/RmGEtbJph1fPktRu4E0cu CjBYna6+cwEGPuI3cyoJ7uJq9ld+tkJs6f49pAF1q+2d6Z15v2q9kupfWMdEOwMOU/nC +eOL7gTDrAShe8w/ZAzXodhlgeBxfPAKT22SW5mtFHxL/C3TMvNs3EseQ5cAjyW6fe+K jFXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=F0BxZqnq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s25-20020a50d499000000b0043dcd3625e4si6366538edi.328.2022.08.29.06.16.59; Mon, 29 Aug 2022 06:17:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=F0BxZqnq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230374AbiH2M4q (ORCPT + 99 others); Mon, 29 Aug 2022 08:56:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230188AbiH2M4W (ORCPT ); Mon, 29 Aug 2022 08:56:22 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E74C58B7B for ; Mon, 29 Aug 2022 05:48:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1661777281; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Vq6S9k41K0ozfm3HjX6Hm9UzfxhgAZTgGJlWKH5WN+U=; b=F0BxZqnqo3OTVd22nLJZAIM0z7sMtLFJux0bNpkyftO0u1K3XI200jsMBGBRyYzojvLCKU KSXyWJA2WuQaGFoH8YDflGGvgxpoK/BKeso8EI9VMy3Jw+J8XXF+vcNtujFUofSJBHW58J XvsrFGCTvYdL0oDMD7+Olag7WnC4kGM= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-206-DhFrdFW-PfKXWzBEp3mNsA-1; Mon, 29 Aug 2022 08:48:00 -0400 X-MC-Unique: DhFrdFW-PfKXWzBEp3mNsA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id BCF091C1BD28; Mon, 29 Aug 2022 12:47:58 +0000 (UTC) Received: from vbendel-laptop-2020.redhat.com (unknown [10.40.195.0]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2DC2E1415117; Mon, 29 Aug 2022 12:47:56 +0000 (UTC) From: vbendel@redhat.com To: linux-doc@vger.kernel.org Cc: Jonathan Corbet , linux-kernel@vger.kernel.org, trivial@kernel.org, Mike Rapoport , Vratislav Bendel , Jozef Bacik Subject: [PATCH] docs: mm: fix vm overcommit documentation for OVERCOMMIT_GUESS Date: Mon, 29 Aug 2022 14:46:38 +0200 Message-Id: <20220829124638.63748-1-vbendel@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vratislav Bendel 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 Signed-off-by: Vratislav Bendel --- Documentation/admin-guide/sysctl/vm.rst | 4 ++-- Documentation/mm/overcommit-accounting.rst | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Documentation/admin-guide/sysctl/vm.rst b/Documentation/admin-guide/sysctl/vm.rst index 9b833e439f09..351443427360 100644 --- a/Documentation/admin-guide/sysctl/vm.rst +++ b/Documentation/admin-guide/sysctl/vm.rst @@ -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. diff --git a/Documentation/mm/overcommit-accounting.rst b/Documentation/mm/overcommit-accounting.rst index a4895d6fc1c2..e2263477f6d5 100644 --- a/Documentation/mm/overcommit-accounting.rst +++ b/Documentation/mm/overcommit-accounting.rst @@ -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 -- 2.26.3