linux_dsm_epyc7002/arch
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
..
alpha [PATCH] bitops: alpha: use generic bitops 2006-03-26 08:57:11 -08:00
arm [PATCH] bitops: arm: use generic bitops 2006-03-26 08:57:12 -08:00
arm26 [PATCH] bitops: arm26: use generic bitops 2006-03-26 08:57:12 -08:00
cris [PATCH] bitops: cris: use generic bitops 2006-03-26 08:57:12 -08:00
frv [PATCH] bitops: frv: use generic bitops 2006-03-26 08:57:12 -08:00
h8300 [PATCH] bitops: h8300: use generic bitops 2006-03-26 08:57:12 -08:00
i386 [PATCH] bitops: i386: use generic bitops 2006-03-26 08:57:12 -08:00
ia64 [IA64] optimize flush_tlb_range on large numa box 2006-03-27 10:20:03 -08:00
m32r [PATCH] bitops: m32r: use generic bitops 2006-03-26 08:57:12 -08:00
m68k [PATCH] bitops: m68k: use generic bitops 2006-03-26 08:57:12 -08:00
m68knommu [PATCH] bitops: m68knommu: use generic bitops 2006-03-26 08:57:13 -08:00
mips [PATCH] bitops: mips: use generic bitops 2006-03-26 08:57:13 -08:00
parisc [PATCH] bitops: parisc: use generic bitops 2006-03-26 08:57:14 -08:00
powerpc [PATCH] bitops: powerpc: use generic bitops 2006-03-26 08:57:14 -08:00
ppc [PATCH] ppc: fix undefined reference to hweight32 2006-03-26 08:57:13 -08:00
s390 [PATCH] bitops: s390: use generic bitops 2006-03-26 08:57:14 -08:00
sh [PATCH] bitops: sh: use generic bitops 2006-03-26 08:57:14 -08:00
sh64 [PATCH] bitops: sh64: use generic bitops 2006-03-26 08:57:14 -08:00
sparc [PATCH] bitops: sparc: use generic bitops 2006-03-26 08:57:14 -08:00
sparc64 [PATCH] bitops: sparc64: use generic bitops 2006-03-26 08:57:14 -08:00
um [PATCH] um: fix undefined reference to hweight32 2006-03-26 08:57:09 -08:00
v850 [PATCH] bitops: v850: use generic bitops 2006-03-26 08:57:14 -08:00
x86_64 [PATCH] bitops: x86_64: use generic bitops 2006-03-26 08:57:14 -08:00
xtensa [PATCH] bitops: xtensa: use generic bitops 2006-03-26 08:57:15 -08:00