Re: [PATCH v2 6/7] x86/mm: remove p4d_leaf definition

From: Ingo Molnar
Date: Tue Apr 01 2025 - 03:21:02 EST



* Baoquan He <bhe@xxxxxxxxxx> wrote:

> > So the above comment should have said '256 TB' pages, unless
> > there's some naming weirdness I missed.
>
> Hmm, there could be misunderstanding here. In 5-level paging, PGD is
> the highest level, P4D is the next level of PGD. You may have
> reversed their order.

Erm, yes indeed I flipped those two, so the correct table should be:

- level 0: 4K pages
- level 1: 512x 4K = 2MB 'large' pages
- level 2: 512x 2MB = 1GB 'huge' pages
- level 3: 512x 1GB = 512GB 'P4D' pages
- level 4: 512x 512GB = 256TB 'PGD' pages

I'm wondering whether 512GB pages will be called 'terapages'. ;-)

Thanks,

Ingo