Re: [patch V3 06/11] x86/mm/cpa: Add large page preservation statistics

From: Dave Hansen
Date: Fri Sep 21 2018 - 15:59:42 EST


On 09/17/2018 07:29 AM, Thomas Gleixner wrote:
> The large page preservation mechanism is just magic and provides no
> information at all. Add optional statistic output in debugfs so the magic can
> be evaluated. Defaults is off.
>
> Output:
>
> 1G pages checked: 2
> 1G pages sameprot: 0
> 1G pages preserved: 0
> 2M pages checked: 540
> 2M pages sameprot: 466
> 2M pages preserved: 47
> 4K pages checked: 800770
> 4K pages set-checked: 7668

Very nice, of course.

We've all rigged one of these up as we've played with this code, and
this will certainly help the next issue that we have.

Reviewed-by: Dave Hansen <dave.hansen@xxxxxxxxx>