Skip to content

Commit 17b6fc8

Browse files
uarif1Jonathan Corbet
authored andcommitted
docs: mm: Fix number of base pages for 1GB HugeTLB
1GB HugeTLB page consists of 262144 base pages. Signed-off-by: Usama Arif <usama.arif@bytedance.com> Reviewed-by: David Hildenbrand <david@redhat.com> Acked-by: Mike Rapoport (IBM) <rppt@kernel.org> Acked-by: Muchun Song <songmuchun@bytedance.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/20230207114456.2304801-1-usama.arif@bytedance.com
1 parent fe11859 commit 17b6fc8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Documentation/mm/vmemmap_dedup.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
.. SPDX-License-Identifier: GPL-2.0
23
34
=========================================
@@ -17,7 +18,7 @@ HugeTLB pages consist of multiple base page size pages and is supported by many
1718
architectures. See Documentation/admin-guide/mm/hugetlbpage.rst for more
1819
details. On the x86-64 architecture, HugeTLB pages of size 2MB and 1GB are
1920
currently supported. Since the base page size on x86 is 4KB, a 2MB HugeTLB page
20-
consists of 512 base pages and a 1GB HugeTLB page consists of 4096 base pages.
21+
consists of 512 base pages and a 1GB HugeTLB page consists of 262144 base pages.
2122
For each base page, there is a corresponding ``struct page``.
2223

2324
Within the HugeTLB subsystem, only the first 4 ``struct page`` are used to

0 commit comments

Comments
 (0)