diff options
author | Chen, Kenneth W <kenneth.w.chen@intel.com> | 2006-03-06 14:12:54 -0800 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2006-03-27 10:20:03 -0800 |
commit | ce9eed5a98efacb896551d3470d9d46826caaee5 (patch) | |
tree | 13752f8ae5e941b83f57ba815b1af4e7bbcff34d /arch/mips/dec/promcon.c | |
parent | 5e48521e869de7d904bb5ffe9739258ffa026927 (diff) |
[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>
Diffstat (limited to 'arch/mips/dec/promcon.c')
0 files changed, 0 insertions, 0 deletions