Skip to content

x86: rework tlb range flushing code

Dave Hansen linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7x86: mm: clean up tlb flushing codearch/x86/mm/tlb.c+11 -123 replies
2/7x86: mm: rip out complicated, out-of-date, buggy TLB flushingarch/x86/include/asm/processor.h arch/x86/kernel/cpu/amd.c arch/x86/kernel/cpu/common.c +2 more+11 -1190 replies
3/7x86: mm: fix missed global TLB flush statarch/x86/mm/tlb.c+7 -80 replies
4/7x86: mm: trace tlb flushesarch/x86/include/asm/mmu_context.h arch/x86/mm/tlb.c include/linux/mm_types.h +3 more+76 -30 replies
5/7x86: mm: new tunable for single vs full TLB flushDocumentation/x86/tlb.txt arch/x86/mm/tlb.c+110 -02 replies
6/7x86: mm: set TLB flush tunable to sane valuearch/x86/mm/tlb.c+1 -13 replies
7/7big time hack: instrument flush timesarch/x86/mm/tlb.c+112 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] x86: rework tlb range flushing code

Reposting with an instrumentation patch, and a few minor tweaks. I'd love some more eyeballs on this, but I think it's ready for -mm.

I'm having it run through the LKP harness to see if any perfmance regressions (or gains) show up.

Without the last (instrumentation/debugging) patch:

 arch/x86/include/asm/mmu_context.h |    6 ++
 arch/x86/include/asm/processor.h   |    1
 arch/x86/kernel/cpu/amd.c          |    7 --
 arch/x86/kernel/cpu/common.c       |   13 -----
 arch/x86/kernel/cpu/intel.c        |   26 ----------
 arch/x86/mm/tlb.c                  |   91 +++++++++++++++----------------------
 include/linux/mm_types.h           |   10 ++++
 mm/Makefile                        |    2
 8 files changed, 58 insertions(+), 98 deletions(-)

--

I originally went to look at this becuase I realized that newer CPUs were not present in the intel_tlb_flushall_shift_set() code.

I went to try to figure out where to stick newer CPUs (do we consider them more like SandyBridge or IvyBridge), and was not able to repeat the original experiments.

Instead, this set does:
1. Rework the code a bit to ready it for tracepoints
2. Add tracepoints
3. Add a new tunable and set it to a sane value

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>