]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: vmstats: tlb flush counters
authorDave Hansen <dave@sr71.net>
Thu, 18 Jul 2013 23:56:46 +0000 (09:56 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 18 Jul 2013 23:56:46 +0000 (09:56 +1000)
commitcbf922fe006439e615ed6586afaa1a03e071ebbe
tree16b20d39341bac3a9355518b56491680dfa4c5f5
parentafd83d724ca8c22bb49af51fc0d8f65e665b6230
mm: vmstats: tlb flush counters

I was investigating some TLB flush scaling issues and realized that we do
not have any good methods for figuring out how many TLB flushes we are
doing.

It would be nice to be able to do these in generic code, but the
arch-independent calls don't explicitly specify whether we actually need
to do remote flushes or not.  In the end, we really need to know if we
actually _did_ global vs.  local invalidations, so that leaves us with few
options other than to muck with the counters from arch-specific code.

Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/x86/mm/tlb.c
include/linux/vm_event_item.h
mm/vmstat.c