Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3225461rwe; Mon, 29 Aug 2022 07:56:49 -0700 (PDT) X-Google-Smtp-Source: AA6agR7O+JUOTDCOlPxjKouvgSHRV8RqOJlhfPpwUvm34WbTdfGi00VwHFANb42TvVNaCPtVrG4I X-Received: by 2002:a17:907:628a:b0:72f:678d:6047 with SMTP id nd10-20020a170907628a00b0072f678d6047mr13732433ejc.456.1661785009638; Mon, 29 Aug 2022 07:56:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661785009; cv=none; d=google.com; s=arc-20160816; b=IGXAofVxupVu8+Xwp/FE3PaH/t2Wh3ylblv5OgEWLoim/EU97xsZzTQQMMFOQemCi8 D2+6uIGHV+wgX1evCl7NaDLHdWBgbfsYev6KY46u2IqNps5IubCELsnPJUUSh2CH5H9G /J5GmaQ7lEiyf5DfjgeZNx7O9P12yfDeVDTbp4VPJ5zG/YLrthQwU9OJHuPx9vKrs9fS dsMYfM2x8OwxNdBTridzN2Y/7cGQHnPSscKa7dJ8gT6u89grEAxYj9OUu/o3oEvAe6CB Jpz3Q3fGvizxkzwj+Noe2UL3013wBUee4q/9VqfsyP+STttoM+hqWfqbL46QyQHXjFSP A+VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3FazFqksqsKODYPYkJe0bGTO+2vlvQFbw6jPJhSMNbc=; b=VXzjv3myJF9c/y8pPQXiv2D1EQgd1KlQ7bzWJz36cul3g6v+YqiU34QrbU7O8MEHx2 yGs+l5rCCm26mFovnZOdH6cz19efvbKKyyd7o5XdRFRdQK9IWNg/oewycDttx5D/tDQ3 tV4hXeCvMbXKcKUclVNYViZBOSj7wwjhwVSEt8PB8zSlqGmAvP8FwpqWUvSuRUx3+OFE BYkhUEQwEH23ld1vJjwG9iCJVTdAv7EMycBLra4av0EXfDw425mb8rbJbNco3tE3Wxb6 HZn063Z8oyz4LVxjdncnZJYRO/bwKX2AeGpWIUob02srbgxa7LcvY9Zktl4QW4Ik7MbY X3xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XQ90tDo6; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j22-20020a17090643d600b007306f35b498si5861024ejn.711.2022.08.29.07.56.24; Mon, 29 Aug 2022 07:56:49 -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=@kernel.org header.s=k20201202 header.b=XQ90tDo6; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229984AbiH2NpL (ORCPT + 99 others); Mon, 29 Aug 2022 09:45:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229696AbiH2NpJ (ORCPT ); Mon, 29 Aug 2022 09:45:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96C9313D75; Mon, 29 Aug 2022 06:45:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3584760E74; Mon, 29 Aug 2022 13:45:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57C23C433C1; Mon, 29 Aug 2022 13:45:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661780707; bh=LONhSjhioPpIGkPhDqeNiVnudsZxe58m+isbUyEv7O0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XQ90tDo6HDoMD75jr6PWzAL/zAGSGfjhEqOa9lQtC/CpioFABRMhXsWPAVSEJ+yaG KKbofGAyw/tBUqYMgAPYqdIxHZ4E2hi1xpc6rI2PmQw03cRlxfHT+qGZw22AUrNwY0 QwXMPWzCtqBP43ELOIl6zEj8v8HZpKOipp8/y5H+lfcuH0UWAbyTxe86o1Yj7fUkcO eqVvnTS7UCHGxVnQk9TxRNb+7c385AbuR6S0nsdx/74Jz8oUUvCoFiIV5TrR+DHIS+ LlFDVWCtX6sa+wTBWu6INeEyjKs7WmcyPyU4iDKokp1xJQG/sQa6N3HgxeUhAHm1J/ ssF49b2pqJWKA== Date: Mon, 29 Aug 2022 16:44:51 +0300 From: Mike Rapoport To: vbendel@redhat.com Cc: linux-doc@vger.kernel.org, Jonathan Corbet , linux-kernel@vger.kernel.org, trivial@kernel.org, Jozef Bacik Subject: Re: [PATCH] docs: mm: fix vm overcommit documentation for OVERCOMMIT_GUESS Message-ID: References: <20220829124638.63748-1-vbendel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220829124638.63748-1-vbendel@redhat.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 On Mon, Aug 29, 2022 at 02:46:38PM +0200, vbendel@redhat.com wrote: > 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 Acked-by: Mike Rapoport > --- > 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 > -- Sincerely yours, Mike.