From: Baolin Wang <baolin.wang@linux.alibaba.com>
To: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>,
Andrew Morton <akpm@linux-foundation.org>
Cc: David Hildenbrand <david@redhat.com>, Zi Yan <ziy@nvidia.com>,
"Liam R . Howlett" <Liam.Howlett@oracle.com>,
Nico Pache <npache@redhat.com>,
Ryan Roberts <ryan.roberts@arm.com>, Dev Jain <dev.jain@arm.com>,
Barry Song <baohua@kernel.org>, Jonathan Corbet <corbet@lwn.net>,
linux-mm@kvack.org, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] docs: update THP documentation to clarify sysfs "never" setting
Date: Tue, 22 Jul 2025 13:59:42 +0800 [thread overview]
Message-ID: <bea04294-3302-42f1-ade1-e4ec6aa80b99@linux.alibaba.com> (raw)
In-Reply-To: <d54d1dfb-f06d-4979-983b-73998f05867e@lucifer.local>
On 2025/7/22 13:34, Lorenzo Stoakes wrote:
> Hi Andrew,
>
> Could you apply this fix-patch? It adds the caveat regarding MADV_COLLAPSE in a
> couple other places whwere the sysfs 'never' mode is mentioned.
>
> Thanks, Lorenzo
>
> ----8<----
> From 7c0bdda6a633bc38e7d5a3b0acf2cef7bdc961af Mon Sep 17 00:00:00 2001
> From: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
> Date: Tue, 22 Jul 2025 06:32:18 +0100
> Subject: [PATCH] docs: update admin guide transhuge page to mention
> MADV_COLLAPSE everywhere
>
> We previously missed a couple places where the 'never' mode was described,
> put the caveat regarding MADV_COLLAPSE in these locations also.
>
> Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Thanks.
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
> ---
> Documentation/admin-guide/mm/transhuge.rst | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/admin-guide/mm/transhuge.rst b/Documentation/admin-guide/mm/transhuge.rst
> index 182519197ef7..370fba113460 100644
> --- a/Documentation/admin-guide/mm/transhuge.rst
> +++ b/Documentation/admin-guide/mm/transhuge.rst
> @@ -385,7 +385,9 @@ always
> Attempt to allocate huge pages every time we need a new page;
>
> never
> - Do not allocate huge pages;
> + Do not allocate huge pages. Note that ``madvise(..., MADV_COLLAPSE)``
> + can still cause transparent huge pages to be obtained even if this mode
> + is specified everywhere;
>
> within_size
> Only allocate huge page if it will be fully within i_size.
> @@ -441,7 +443,9 @@ inherit
> have enabled="inherit" and all other hugepage sizes have enabled="never";
>
> never
> - Do not allocate <size> huge pages;
> + Do not allocate <size> huge pages. Note that ``madvise(...,
> + MADV_COLLAPSE)`` can still cause transparent huge pages to be obtained
> + even if this mode is specified everywhere;
>
> within_size
> Only allocate <size> huge page if it will be fully within i_size.
> --
> 2.50.1
next prev parent reply other threads:[~2025-07-22 5:59 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-21 15:55 [PATCH] docs: update THP documentation to clarify sysfs "never" setting Lorenzo Stoakes
2025-07-21 16:27 ` SeongJae Park
2025-07-22 1:13 ` Zi Yan
2025-07-22 1:30 ` Baolin Wang
2025-07-22 2:23 ` Barry Song
2025-07-22 2:33 ` Baolin Wang
2025-07-22 3:37 ` Barry Song
2025-07-22 5:29 ` Lorenzo Stoakes
2025-07-23 15:41 ` Lorenzo Stoakes
2025-07-22 5:24 ` Lorenzo Stoakes
2025-07-22 5:25 ` Lorenzo Stoakes
2025-07-22 5:34 ` Lorenzo Stoakes
2025-07-22 5:59 ` Baolin Wang [this message]
2025-07-22 8:19 ` Barry Song
2025-07-22 7:20 ` David Hildenbrand
2025-07-22 7:59 ` David Hildenbrand
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=bea04294-3302-42f1-ade1-e4ec6aa80b99@linux.alibaba.com \
--to=baolin.wang@linux.alibaba.com \
--cc=Liam.Howlett@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=baohua@kernel.org \
--cc=corbet@lwn.net \
--cc=david@redhat.com \
--cc=dev.jain@arm.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=lorenzo.stoakes@oracle.com \
--cc=npache@redhat.com \
--cc=ryan.roberts@arm.com \
--cc=ziy@nvidia.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.