x86,tlb: context switch optimizations
Status from this message: The following commit has been merged into the x86/mm branch of tip:
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | x86,tlb: update mm_cpumask lazilyarch/ arch/ | +16 | 1 reply | |
| 2/2 | x86,tlb: add tracepoint for TLB flush IPI to stale CPUarch/ include/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH 0/2 v2] x86,tlb: context switch optimizations
While profiling switch_mm_irqs_off with several workloads, it appears there are two hot spots that probably don't need to be there.
The patch placing the mm_cpumask test inside the prev == next branch behind CONFIG_DEBUG_VM got merged into x86/mm already, so here are the other two.
The approach used in v2 to ensure the call to flush_mm_tlb_range() from __text_poke() remains a noop is to clear the CPU from the mm_cpumask of poke_mm. Fix suggested by Peter Zijlstra.
That way the only thing flush_mm_tlb_range() really ends up doing is increment the tlb_gen, resulting in future users of poke_mm flushing the TLB.