From: Jack Steiner Date: Sat, 22 Apr 2006 14:37:19 +0000 (-0500) Subject: [IA64-SGI] - Reduce overhead of reading sn_topology X-Git-Tag: v2.6.17-rc4~135^2~4 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd4cb9f8ac9717c9db2b2afc5a82cb95a3d5dec3;hp=dd4cb9f8ac9717c9db2b2afc5a82cb95a3d5dec3;p=linux-2.6 [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 Signed-off-by: Tony Luck ---