diff options
author | Dave Hansen <dave@sr71.net> | 2013-09-11 17:20:23 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-11 18:57:08 -0400 |
commit | 9824cf9753ecbe8f5b47aa9b2f218207defea211 (patch) | |
tree | 5baf98172d2f6bedaf83487b04bbeb579be2ff18 /include | |
parent | 822518dc56810a0de44cff0f85a227268818749c (diff) |
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/vm_event_item.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/vm_event_item.h b/include/linux/vm_event_item.h index bd6cf61142be..dc2cdf07ac14 100644 --- a/include/linux/vm_event_item.h +++ b/include/linux/vm_event_item.h | |||
@@ -70,6 +70,11 @@ enum vm_event_item { PGPGIN, PGPGOUT, PSWPIN, PSWPOUT, | |||
70 | THP_ZERO_PAGE_ALLOC, | 70 | THP_ZERO_PAGE_ALLOC, |
71 | THP_ZERO_PAGE_ALLOC_FAILED, | 71 | THP_ZERO_PAGE_ALLOC_FAILED, |
72 | #endif | 72 | #endif |
73 | NR_TLB_REMOTE_FLUSH, /* cpu tried to flush others' tlbs */ | ||
74 | NR_TLB_REMOTE_FLUSH_RECEIVED,/* cpu received ipi for flush */ | ||
75 | NR_TLB_LOCAL_FLUSH_ALL, | ||
76 | NR_TLB_LOCAL_FLUSH_ONE, | ||
77 | NR_TLB_LOCAL_FLUSH_ONE_KERNEL, | ||
73 | NR_VM_EVENT_ITEMS | 78 | NR_VM_EVENT_ITEMS |
74 | }; | 79 | }; |
75 | 80 | ||