lkml.org 
[lkml]   [2011]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [tip:x86/mm] x86/mm: Avoid superflous leave_mm() in the TLB flush path
On Mon, Dec 5, 2011 at 9:56 AM, tip-bot for Shaohua Li
<shaohua.li@intel.com> wrote:
>
> x86/mm: Avoid superflous leave_mm() in the TLB flush path
>
> If just one page VA tlb is required to be flushed and current
> task is in lazy TLB state, doing leave_mm() is superfluous
> because it flushes the whole TLB.  This can reduce some TLB
> miss.

Are you sure this is a good idea?

We may be *much* better off leaving the VM and avoiding future IPI's
than trying to flush pages one by one over and over again.

IPI's are expensive.

I don't think you thought this through, and if you *did* think it
through and actually have numbers that it's cheaper to stay with the
MM, I think you need to show those numbers.

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2011-12-06 00:29    [W:0.125 / U:0.896 seconds]
©2003-2014 Jasper Spaans. hosted at Digital Ocean