Re: [PATCH, RFC] x86/mm/pat: Restore large pages after fragmentation

From: Dave Hansen
Date: Thu Apr 16 2020 - 18:38:41 EST


On 4/16/20 3:12 PM, Kirill A. Shutemov wrote:
> We already have it in kernel: CONFIG_CPA_DEBUG. It messes up with the
> mapping every 30 seconds. It is pretty good for the change too. It
> produces a lot of 2M/1G pages to be restored. I run it over night in my
> setup and it survives.

That's good for stability, and thanks for running it! (and please add
that nugget to the changelog)

It's good that you see it restoring some mappings, but, does it restore
*all* the 1G/2M pages that it started with (minus the ones that were
fractured for other reasons)? That should be pretty easy to check for.