Re: [PATCH 0 of 8] x86/smp function calls: convert x86 tlb flushes to use function calls

From: Andi Kleen
Date: Tue Aug 05 2008 - 23:37:17 EST


On Tue, Aug 05, 2008 at 08:33:24PM -0700, Jeremy Fitzhardinge wrote:
> Andi Kleen wrote:
> >Jeremy Fitzhardinge <jeremy@xxxxxxxx> writes:
> >
> >
> >>1. use smp_call_function_mask to implement cross-cpu TLB flushes
> >>
> >
> >
> >Do you have any measurements comparing performance of the old and
> >the new call? TLB flush is quite time critical so we should be very
> >careful here.
>
> No. What benchmark would you suggest?

Micro benchmark. Just stick RDTSC around the calls and trigger
a few remote flushes by e.g. doing mmap/munmap on a multithreaded program
running on different CPUs.

-Andi
--
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/