Re: [PATCH v2] sparc64: Trim page tables for 8M hugepages
From: David Miller
Date: Fri Jul 29 2016 - 14:09:16 EST
From: Nitin Gupta <nitin.m.gupta@xxxxxxxxxx>
Date: Fri, 29 Jul 2016 00:54:21 -0700
> For PMD aligned (8M) hugepages, we currently allocate
> all four page table levels which is wasteful. We now
> allocate till PMD level only which saves memory usage
> from page tables.
>
> Also, when freeing page table for 8M hugepage backed region,
> make sure we don't try to access non-existent PTE level.
>
> Orabug: 22630259
>
> Signed-off-by: Nitin Gupta <nitin.m.gupta@xxxxxxxxxx>
> ---
> Changelog v2 vs v1
> - Combine fix for page table freeing with the main trimming patch (Dave)
Applied, thanks.