lkml.org 
[lkml]   [2008]   [Jan]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 11 of 11] x86: defer cr3 reload when doing pud_clear()
Andi Kleen wrote:
>
>> so INVLPG makes sense for pagetable fault realated single-address
>> flushes, but they rarely make sense for range flushes. (and that's how
>> Linux uses it)
>
> I think it would be an interesting experiment to switch flush_tlb_range()
> over to INVLPG if the length is below some threshold and see if there
> are visible effects in macro benchmarks. The main problem
> would be to determine the right threshold -- would likely be CPU dependent.
>

It would be an interesting experiment. Odds are pretty good that the
cutover is roughly linear in the TLB size.

-hpa


\
 
 \ /
  Last update: 2008-01-26 07:11    [W:0.150 / U:24.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site