Re: [PATCH v3 7/7] x86/tlb: add tlb_flushall_factor into sysfs foruser change

From: Borislav Petkov
Date: Tue May 08 2012 - 11:25:32 EST


On Tue, May 08, 2012 at 08:20:25AM -0700, H. Peter Anvin wrote:
> On 05/08/2012 08:11 AM, Peter Zijlstra wrote:
> > On Tue, 2012-05-08 at 22:03 +0800, Alex Shi wrote:
> >> kernel will replace cr3 rewrite with invlpg when
> >> tlb flush entries <= 1/tlb_flushall_factor
> >> if tlb_flushall_factor is 0, kernel won't do this replace.
> >>
> >> User can modify its value according to specific applications.
> >
> > Yay!, another useless config knob :-(
> >
>
> I think this one is mostly for benchmarking new silicon to find out the
> proper value, I'm guessing?

Yep, this was supposed to be for pinpointing the proper entries count.
I believe we don't have this thing of having code intree but not really
intree - only for testing new silicon. Maybe a debug module or add this
to debugfs?

--
Regards/Gruss,
Boris.

Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach
GM: Alberto Bozzo
Reg: Dornach, Landkreis Muenchen
HRB Nr. 43632 WEEE Registernr: 129 19551
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/