powerpc: Preload application text segment instead of TASK_UNMAPPED_BASE
authorAnton Blanchard <anton@samba.org>
Mon, 13 Jul 2009 20:53:53 +0000 (20:53 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 20 Aug 2009 00:12:26 +0000 (10:12 +1000)
commitde4376c2846bb5a8fc6fe8dbd0e4ff30905493e6
tree58c430e20a457b36059c983afeb08ddd712c6661
parent5eb9bac0406f2beb84b21aac6feb89d33d9f3f5c
powerpc: Preload application text segment instead of TASK_UNMAPPED_BASE

TASK_UNMAPPED_BASE is not used with the new top down mmap layout. We can
reuse this preload slot by loading in the segment at 0x10000000, where almost
all PowerPC binaries are linked at.

On a microbenchmark that bounces a token between two 64bit processes over pipes
and calls gettimeofday each iteration (to access the VDSO), both the 32bit and
64bit context switch rate improves (tested on a 4GHz POWER6):

32bit: 273k/sec -> 283k/sec
64bit: 277k/sec -> 284k/sec

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/slb.c