aboutsummaryrefslogtreecommitdiff
path: root/arch/sparc/kernel/init_task.c
diff options
context:
space:
mode:
authorRik van Riel <[email protected]>2010-04-14 17:59:28 -0400
committerLinus Torvalds <[email protected]>2010-04-19 16:28:20 -0700
commite8a03feb54ca7f1768bbdc2b491f9ef654e6d01d (patch)
tree1ce113d18057e0870e0816f272e21b6716ef321f /arch/sparc/kernel/init_task.c
parent9b030e2006546366c832911ca5eb9e785408795b (diff)
rmap: add exclusively owned pages to the newest anon_vma
The recent anon_vma fixes cause many anonymous pages to end up in the parent process anon_vma, even when the page is exclusively owned by the current process. Adding exclusively owned anonymous pages to the top anon_vma reduces rmap scanning overhead, especially in workloads with forking servers. This patch adds a parameter to __page_set_anon_rmap that can be used to indicate whether or not the added page is exclusively owned by the current process. Pages added through page_add_new_anon_rmap are exclusively owned by the current process, and can be added to the top anon_vma. Pages added through page_add_anon_rmap can be either shared or exclusively owned, so we do the conservative thing and add it to the oldest anon_vma. A next step would be to add the exclusive parameter to page_add_anon_rmap, to be used from functions where we do know for sure whether a page is exclusively owned. Signed-off-by: Rik van Riel <[email protected]> Reviewed-by: Johannes Weiner <[email protected]> Lightly-tested-by: Borislav Petkov <[email protected]> Reviewed-by: Minchan Kim <[email protected]> [ Edited to look nicer - Linus ] Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'arch/sparc/kernel/init_task.c')
0 files changed, 0 insertions, 0 deletions