* [PATCH v2] docs: hugetlbpage.rst: clarify HugePages_Total in hugetlbpage.rst
@ 2026-10-26 8:08 Enze Li
2026-10-26 9:53 ` David Hildenbrand (Arm)
2026-10-26 13:34 ` Muchun Song
0 siblings, 2 replies; 3+ messages in thread
From: Enze Li @ 2026-10-26 8:08 UTC (permalink / raw)
To: muchun.song, osalvador, david, akpm, corbet, danielmaraboo
Cc: linux-mm, linux-doc, Enze Li
"the size of the pool of huge pages" confused me, since it sounds like
a size in bytes. It's actually the number of huge pages of the default
size in the pool, surplus pages included. Reword it and point to
/sys/kernel/mm/hugepages for the other huge page sizes.
Suggested-by: Daniel Pereira <danielmaraboo@gmail.com>
Signed-off-by: Enze Li <lienze@kylinos.cn>
---
Changes in v2:
- Drop "persistent" from the description
- Reward the note on other sizes.
Documentation/admin-guide/mm/hugetlbpage.rst | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Documentation/admin-guide/mm/hugetlbpage.rst b/Documentation/admin-guide/mm/hugetlbpage.rst
index 2075f1f14a42..282bc420d97b 100644
--- a/Documentation/admin-guide/mm/hugetlbpage.rst
+++ b/Documentation/admin-guide/mm/hugetlbpage.rst
@@ -43,7 +43,10 @@ The output of ``cat /proc/meminfo`` will include lines like::
where:
HugePages_Total
- is the size of the pool of huge pages.
+ is the number of huge pages of the default size in the pool,
+ both persistent and surplus. Counts for the other huge page
+ sizes are available in ``/sys/kernel/mm/hugepages`` (described
+ below).
HugePages_Free
is the number of huge pages in the pool that are not yet
allocated.
base-commit: 3fdcce698abd9193752ee89fb1a440cdceb1b74a
--
2.56.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH v2] docs: hugetlbpage.rst: clarify HugePages_Total in hugetlbpage.rst
2026-10-26 8:08 [PATCH v2] docs: hugetlbpage.rst: clarify HugePages_Total in hugetlbpage.rst Enze Li
@ 2026-10-26 9:53 ` David Hildenbrand (Arm)
2026-10-26 13:34 ` Muchun Song
1 sibling, 0 replies; 3+ messages in thread
From: David Hildenbrand (Arm) @ 2026-10-26 9:53 UTC (permalink / raw)
To: Enze Li, muchun.song, osalvador, akpm, corbet, danielmaraboo
Cc: linux-mm, linux-doc
On 10/26/26 09:08, Enze Li wrote:
> "the size of the pool of huge pages" confused me, since it sounds like
> a size in bytes. It's actually the number of huge pages of the default
> size in the pool, surplus pages included. Reword it and point to
> /sys/kernel/mm/hugepages for the other huge page sizes.
>
> Suggested-by: Daniel Pereira <danielmaraboo@gmail.com>
> Signed-off-by: Enze Li <lienze@kylinos.cn>
> ---
> Changes in v2:
> - Drop "persistent" from the description
> - Reward the note on other sizes.
>
> Documentation/admin-guide/mm/hugetlbpage.rst | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/admin-guide/mm/hugetlbpage.rst b/Documentation/admin-guide/mm/hugetlbpage.rst
> index 2075f1f14a42..282bc420d97b 100644
> --- a/Documentation/admin-guide/mm/hugetlbpage.rst
> +++ b/Documentation/admin-guide/mm/hugetlbpage.rst
> @@ -43,7 +43,10 @@ The output of ``cat /proc/meminfo`` will include lines like::
> where:
>
> HugePages_Total
> - is the size of the pool of huge pages.
> + is the number of huge pages of the default size in the pool,
> + both persistent and surplus. Counts for the other huge page
> + sizes are available in ``/sys/kernel/mm/hugepages`` (described
> + below).
Reviewed-by: David Hildenbrand (Arm) <david@kernel.org>
--
Cheers,
David
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] docs: hugetlbpage.rst: clarify HugePages_Total in hugetlbpage.rst
2026-10-26 8:08 [PATCH v2] docs: hugetlbpage.rst: clarify HugePages_Total in hugetlbpage.rst Enze Li
2026-10-26 9:53 ` David Hildenbrand (Arm)
@ 2026-10-26 13:34 ` Muchun Song
1 sibling, 0 replies; 3+ messages in thread
From: Muchun Song @ 2026-10-26 13:34 UTC (permalink / raw)
To: Enze Li; +Cc: osalvador, david, akpm, corbet, danielmaraboo, linux-mm,
linux-doc
> On Oct 26, 2026, at 16:08, Enze Li <lienze@kylinos.cn> wrote:
>
> "the size of the pool of huge pages" confused me, since it sounds like
> a size in bytes. It's actually the number of huge pages of the default
> size in the pool, surplus pages included. Reword it and point to
> /sys/kernel/mm/hugepages for the other huge page sizes.
>
> Suggested-by: Daniel Pereira <danielmaraboo@gmail.com>
> Signed-off-by: Enze Li <lienze@kylinos.cn>
Reviewed-by: Muchun Song <muchun.song@linux.dev>
Thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-10-26 13:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-26 8:08 [PATCH v2] docs: hugetlbpage.rst: clarify HugePages_Total in hugetlbpage.rst Enze Li
2026-10-26 9:53 ` David Hildenbrand (Arm)
2026-10-26 13:34 ` Muchun Song
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox