linux_dsm_epyc7002/arch/ia64/mm
Chen, Kenneth W ce9eed5a98 [IA64] optimize flush_tlb_range on large numa box
It was reported from a field customer that global spin lock ptcg_lock
is giving a lot of grief on munmap performance running on a large numa
machine.  What appears to be a problem coming from flush_tlb_range(),
which currently unconditionally calls platform_global_tlb_purge().
For some of the numa machines in existence today, this function is
mapped into ia64_global_tlb_purge(), which holds ptcg_lock spin lock
while executing ptc.ga instruction.

Here is a patch that attempt to avoid global tlb purge whenever
possible.  It will use local tlb purge as much as possible. Though the
conditions to use local tlb purge is pretty restrictive.  One of the
side effect of having flush tlb range instruction on ia64 is that
kernel don't get a chance to clear out cpu_vm_mask.  On ia64, this mask
is sticky and it will accumulate if process bounces around.  Thus
diminishing the possible use of ptc.l.  Thoughts?

Signed-off-by: Ken Chen <kenneth.w.chen@intel.com>
Acked-by: Jack Steiner <steiner@sgi.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
2006-03-27 10:20:03 -08:00
..
contig.c [IA64] add init declaration to memory initialization functions 2006-03-22 16:54:15 -08:00
discontig.c [IA64] add init declaration to cpu initialization functions 2006-03-22 16:04:37 -08:00
extable.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
fault.c [PATCH] mm: ia64 use expand_upwards 2005-10-29 21:40:39 -07:00
hugetlbpage.c [IA64] fix ia64 is_hugepage_only_range 2006-03-22 14:35:08 -08:00
init.c [IA64] lazy_mmu_prot_update needs to be aware of huge pages 2006-03-27 10:15:41 -08:00
ioremap.c [PATCH] ia64: ioremap: check EFI for valid memory attributes 2006-03-26 08:56:54 -08:00
Makefile [PATCH] ia64: ioremap: check EFI for valid memory attributes 2006-03-26 08:56:54 -08:00
numa.c [PATCH] V5 ia64 SPARSEMEM - SPARSEMEM code changes 2005-10-04 13:21:38 -07:00
tlb.c [IA64] optimize flush_tlb_range on large numa box 2006-03-27 10:20:03 -08:00