Re: [PATCH 00/11] Use global pages with PTI

From: Ingo Molnar
Date: Tue Mar 27 2018 - 16:07:32 EST



* Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:

> > systems. Atoms are going to be the easiest thing to get my hands on,
> > but I tend to shy away from them for performance work.
>
> What I have in mind is that I wonder whether the whole circus is worth it
> when there is no performance advantage on PCID systems.

I'd still love to:

- To see at minimum stddev numbers, to make sure we are not looking at some weird
statistical artifact. (I also outlined a more robust measurement method.)

- If the numbers are right, a CPU engineer should have a look if possible,
because frankly this effect is not expected and is not intuitive. Where global
pages can be used safely they are almost always an unconditional win.
Maybe we are missing some limitation or some interaction with PCID.

Since we'll be using PCID even on Meltdown-fixed hardware, maybe the same negative
performance effect already exists on non-PTI kernels as well, we just never
noticed?

I.e. there are multiple grounds to get to the bottom of this.

Thanks,

Ingo