]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] .text page fault SMP scalability optimization
authorAndrea Arcangeli <andrea@suse.de>
Sun, 30 Oct 2005 01:16:48 +0000 (18:16 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 30 Oct 2005 04:40:43 +0000 (21:40 -0700)
commit686ea9a580fc9d5994b156e4e4db936ddb21e699
treeb3f682ce8df89edb9740fdd5c178df5accc49736
parent6129f3de567237485f0d7048e9dd20479e0b6d2d
[PATCH] .text page fault SMP scalability optimization

We had a problem on ppc64 where with more than 4 threads a large system
wouldn't scale well while faulting in the .text (most of the time was spent
in the kernel despite it was an userland compute intensive app).  The
reason is the useless overwrite of the same pte from all cpu.

I fixed it this way (verified on an older kernel but the forward port is
almost identical).  This will benefit all archs not just ppc64.

Signed-off-by: Andrea Arcangeli <andrea@suse.de>
Cc: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/memory.c