Re: [PATCH 0/3] TLB flush multiple pages per IPI v5

Dave Hansen
2015-06-08T18:21:57Z

On 06/08/2015 10:45 AM, Ingo Molnar wrote:
> As per my measurements the __flush_tlb_single() primitive (which you use in patch
> #2) is very expensive on most Intel and AMD CPUs. It barely makes sense for a 2
> pages and gets exponentially worse. It's probably done in microcode and its
> performance is horrible.

I discussed this a bit in commit a5102476a2. I'd be curious what
numbers you came up with.

But, don't we have to take in to account the cost of refilling the TLB
in addition to the cost of emptying it? The TLB size is historically
increasing on a per-core basis, so isn't this refill cost only going to
get worse?