LWN: Comments on "Reducing page structures for huge pages" https://lwn.net/Articles/839737/ This is a special feed containing comments posted to the individual LWN article titled "Reducing page structures for huge pages". en-us Tue, 04 Nov 2025 21:06:12 +0000 Tue, 04 Nov 2025 21:06:12 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Reducing page structures for huge pages https://lwn.net/Articles/840043/ https://lwn.net/Articles/840043/ geert <div class="FormattedComment"> There are actually two structures describing memory:<br> 1. The hardware page tables, used by the MMU, which already have a hierarchical structure using multiple levels,<br> 2. The kernel&#x27;s own bookkeeping, using struct page, which is what this article is discussing.<br> </div> Mon, 14 Dec 2020 12:39:49 +0000 Reducing page structures for huge pages https://lwn.net/Articles/840010/ https://lwn.net/Articles/840010/ farnz <p>That's how large pages work on x86 today. The smallest level is 4 KiB pages; 512 of these are mapped by the next level up, which can also be used to map a single 2 MiB huge page. 512 of those are mapped by the next level up, which can also be used to map a single 1 GiB huge page. In theory, Intel/AMD could expand this to let you use a single entry to map 512 GiB contiguous RAM, but that's not interested them yet. Sun, 13 Dec 2020 16:07:48 +0000 Reducing page structures for huge pages https://lwn.net/Articles/840009/ https://lwn.net/Articles/840009/ Wol <div class="FormattedComment"> I&#x27;m probably talking from a position of complete ignorance, but it just struck me - doesn&#x27;t the page table have several levels?<br> <p> Would it be possible to make the number of levels variable, such that your normal pages were in level 5 like now, but you could allocate a large page at level 4, or a huge page at level 3, something like that?<br> <p> And of course, that means you simply break a level 4 page into level 5 pages if you need them, etc etc ...<br> <p> Cheers,<br> Wol<br> </div> Sun, 13 Dec 2020 15:57:47 +0000 Reducing page structures for huge pages https://lwn.net/Articles/839985/ https://lwn.net/Articles/839985/ pixelpapst <div class="FormattedComment"> Does the memory for the &quot;struct page&quot;-filled pages have any specific constraints that make its allocation difficult, beyond needing to sit on the correct NUMA node?<br> <p> If it doesn&#x27;t, it seems trivial to allocate these structure pages directly from the set of &quot;returned&quot; pages whenever a huge page is returned. If I&#x27;m not missing anything (which I may well be), this should obviate the need for a delayed allocation in this scenario.<br> </div> Sun, 13 Dec 2020 08:15:54 +0000