Skip to contentSkip to conversation

docs: hugetlbpage.rst: clarify HugePages_Total in hugetlbpage.rst

PATCH In review Enze Li 3 participants 3 messages Oct 26

Subsystems (4)
lore
Share & tools
lore

Enze Li

author
#0 lore raw

PATCH v2 1/1 docs: hugetlbpage.rst: clarify HugePages_Total in hugetlbpage.rst

"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.

---
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(-)
Documentation/admin-guide/mm/hugetlbpage.rst +4 -1
index 2075f1f14a42..282bc420d97b 100644
@@ -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

Signature · 1 line
2.56.0
maintainer Reviewed-by on v2 1/1
#1 lore raw
Quoted 20 lines · 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.

---
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(-)
Documentation/admin-guide/mm/hugetlbpage.rst +0 -0
index 2075f1f14a42..282bc420d97b 100644

Documentation/admin-guide/mm/hugetlbpage.rst The output of ``cat /proc/meminfo`` will include lines like:: · line 49

Quoted 8 lines
Documentation/admin-guide/mm/hugetlbpage.rst +4 -1
@@ -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).
Signature · 3 lines
Cheers,

David
maintainer Reviewed-by on v2 1/1
#2 lore raw
In reply to Enze Li
Quoted 11 lines · 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.

Thanks