Re: [PATCH 5/7] x86: mm: new tunable for single vs full TLB flush
From: Dave Hansen
Date: Fri Mar 07 2014 - 12:19:21 EST
On 03/06/2014 05:37 PM, Davidlohr Bueso wrote:
> On Wed, 2014-03-05 at 16:45 -0800, Dave Hansen wrote:
>> From: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>
>> +
>> +If you believe that invlpg is being called too often, you can
>> +lower the tunable:
>> +
>> + /sys/debug/kernel/x86/tlb_single_page_flush_ceiling
>> +
>
> Whenever this tunable needs to be updated, most users will not know what
> a invlpg is and won't think in terms of pages either. How about making
> this in units of Kb instead? But then again most of those users won't be
> looking into tlb flushing issues anyways, so...
Yeah, talking about the instruction directly in the documentation is
probably going a bit far. I'll see if I can uplevel it a bit.
It's obviously not a big deal to change it to be pages vs. kb, but for
something that's as *COMPLETELY* developer-focused, I think we can keep
it in pages. We don't want users fooling with this.
> While obvious, tt should also mention that this does not apply to
> hugepages.
Good point.
--
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/