Re: zap_page_range(): TLB flush race

From: David S. Miller (davem@redhat.com)
Date: Sat Apr 08 2000 - 18:44:14 EST


   From: kanoj@google.engr.sgi.com (Kanoj Sarcar)
   Date: Sat, 8 Apr 2000 14:11:05 -0700 (PDT)

> filemap_sync() calls flush_tlb_page() for each page, but IMHO this is a
> really bad idea, the performance will suck with multi-threaded apps on
> SMP.

   The best you can do probably is a flush_tlb_range?

People, look at the callers of filemap_sync, it does range tlb/cache
flushes so the flushes in filemap_sync_pte() are in fact spurious.

Later,
David S. Miller
davem@redhat.com

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



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:12 EST