]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit62c23baefd0e09e5c05699554dd43afb0297e4c9
tree58c430e20a457b36059c983afeb08ddd712c6661
parent33bf32ca77c4057beb2019dd030ee512205d59d9
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