docs: hugetlbpage.rst: clarify HugePages_Total in hugetlbpage.rst
Subsystems (4)
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
@@ -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
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/hugepagesfor the other huge page sizes.Suggested-by Daniel Pereira <[email protected]>Signed-off-by Enze Li <[email protected]>---
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
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
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/hugepagesfor the other huge page sizes.Suggested-by Daniel Pereira <[email protected]>Signed-off-by Enze Li <[email protected]>
Thanks