Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Enze Li <lienze@kylinos.cn>
To: muchun.song@linux.dev, osalvador@suse.de, david@kernel.org,
	akpm@linux-foundation.org, corbet@lwn.net,
	danielmaraboo@gmail.com
Cc: linux-mm@kvack.org, linux-doc@vger.kernel.org,
	Enze Li <lienze@kylinos.cn>
Subject: [PATCH v2] docs: hugetlbpage.rst: clarify HugePages_Total in hugetlbpage.rst
Date: Mon, 26 Oct 2026 16:08:56 +0800	[thread overview]
Message-ID: <20261026080856.76175-1-lienze@kylinos.cn> (raw)

"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



             reply	other threads:[~2026-10-26  8:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-26  8:08 Enze Li [this message]
2026-10-26  9:53 ` [PATCH v2] docs: hugetlbpage.rst: clarify HugePages_Total in hugetlbpage.rst David Hildenbrand (Arm)
2026-10-26 13:34 ` Muchun Song

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=20261026080856.76175-1-lienze@kylinos.cn \
    --to=lienze@kylinos.cn \
    --cc=akpm@linux-foundation.org \
    --cc=corbet@lwn.net \
    --cc=danielmaraboo@gmail.com \
    --cc=david@kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=muchun.song@linux.dev \
    --cc=osalvador@suse.de \
    /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