From: Matthew Wilcox <willy@infradead.org>
To: Anssi Hannula <anssi.hannula@iki.fi>
Cc: Jonathan Corbet <corbet@lwn.net>,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-mm@kvack.org
Subject: Re: [PATCH] docs/vm: clarify overcommit amount sysctl behavior
Date: Sat, 11 Dec 2021 22:21:42 +0000 [thread overview]
Message-ID: <YbUkdvFBayRwV6ax@casper.infradead.org> (raw)
In-Reply-To: <20211211194159.3137362-1-anssi.hannula@iki.fi>
On Sat, Dec 11, 2021 at 09:41:59PM +0200, Anssi Hannula wrote:
> Documentation/vm/overcommit-accounting.rst says that the overcommit
> amount can be set via vm.overcommit_ratio and vm.overcommit_kbytes.
>
> Add a clarification that those only take effect in overcommit handling
> mode 2 ("Don't overcommit"), i.e. they do not act as an "additional"
> limit that is always enforced.
>
> Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi>
> ---
Simple and clear improvement, IMO. Cc'ing linux-mm to get more eyes on
it.
> I've had to look this one up in the code enough times already :)
>
>
> Documentation/vm/overcommit-accounting.rst | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/vm/overcommit-accounting.rst b/Documentation/vm/overcommit-accounting.rst
> index 0dd54bbe4afa..1addb0c374a4 100644
> --- a/Documentation/vm/overcommit-accounting.rst
> +++ b/Documentation/vm/overcommit-accounting.rst
> @@ -34,7 +34,8 @@ The Linux kernel supports the following overcommit handling modes
> The overcommit policy is set via the sysctl ``vm.overcommit_memory``.
>
> The overcommit amount can be set via ``vm.overcommit_ratio`` (percentage)
> -or ``vm.overcommit_kbytes`` (absolute value).
> +or ``vm.overcommit_kbytes`` (absolute value). These only have an effect
> +when ``vm.overcommit_memory`` is set to 2.
>
> The current overcommit limit and amount committed are viewable in
> ``/proc/meminfo`` as CommitLimit and Committed_AS respectively.
> --
> 2.31.1
>
next parent reply other threads:[~2021-12-11 22:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20211211194159.3137362-1-anssi.hannula@iki.fi>
2021-12-11 22:21 ` Matthew Wilcox [this message]
2021-12-16 11:01 ` David Hildenbrand
2021-12-16 22:53 ` Jonathan Corbet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YbUkdvFBayRwV6ax@casper.infradead.org \
--to=willy@infradead.org \
--cc=anssi.hannula@iki.fi \
--cc=corbet@lwn.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox