On 7/6/2022 11:48 PM, Dave Hansen wrote:
On 7/6/22 01:59, Baolin Wang wrote:
Now we will miss to account the PUD level pagetable and kernel PTE level
pagetable, as well as missing to set the PG_table flags for these pagetable
pages, which will get an inaccurate pagetable accounting, and miss
PageTable() validation in some cases. So this patch set introduces new
helpers to help to account PUD and kernel PTE pagetable pages.
Could you explain the motivation for this series a bit more? Is there a
real-world problem that this fixes?
Not fix real problem. The motivation is that making the pagetable
accounting more accurate, which helps us to analyse the consumption of
the pagetable pages in some cases, and maybe help to do some empty
pagetable reclaiming in future.