]> git.baikalelectronics.ru Git - kernel.git/commit
[IA64-SGI] - Reduce overhead of reading sn_topology
authorJack Steiner <steiner@sgi.com>
Sat, 22 Apr 2006 14:37:19 +0000 (09:37 -0500)
committerTony Luck <tony.luck@intel.com>
Thu, 27 Apr 2006 21:29:05 +0000 (14:29 -0700)
commit4a761605d9759c52ed3eca1e84564e2b69333911
tree94725efb2f8c1fc9272d1599bd7764bab9023228
parent76c43053de826eb8ec18d25f33dac7a85c7bc334
[IA64-SGI] - Reduce overhead of reading sn_topology

MPI programs using certain debug options have a long
startup time. This was traced to a "vmalloc/vfree" in
the code that reads /proc/sgi_sn/sn_topology. On large
systems, vfree requires an IPI to all cpus to do TLB
purging.

Replace the vmalloc/vfree with kmalloc/kfree. Although
the size of the structure being allocated is unknown, it
will not not exceed 96 bytes.

Signed-off-by: Jack Steiner <steiner@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/sn/kernel/sn2/sn_hwperf.c