https://github.com/torvalds/linux
Revision e8a03feb54ca7f1768bbdc2b491f9ef654e6d01d authored by Rik van Riel on 14 April 2010, 21:59:28 UTC, committed by Linus Torvalds on 19 April 2010, 23:28:20 UTC
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 <riel@redhat.com> Reviewed-by: Johannes Weiner <hannes@cmpxchg.org> Lightly-tested-by: Borislav Petkov <bp@alien8.de> Reviewed-by: Minchan Kim <minchan.kim@gmail.com> [ Edited to look nicer - Linus ] Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 9b030e2
Tip revision: e8a03feb54ca7f1768bbdc2b491f9ef654e6d01d authored by Rik van Riel on 14 April 2010, 21:59:28 UTC
rmap: add exclusively owned pages to the newest anon_vma
rmap: add exclusively owned pages to the newest anon_vma
Tip revision: e8a03fe
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 8.9 KB |
Makefile | -rw-r--r-- | 620 bytes |
acorn.c | -rw-r--r-- | 11.9 KB |
acorn.h | -rw-r--r-- | 623 bytes |
amiga.c | -rw-r--r-- | 3.4 KB |
amiga.h | -rw-r--r-- | 116 bytes |
atari.c | -rw-r--r-- | 3.8 KB |
atari.h | -rw-r--r-- | 1.1 KB |
check.c | -rw-r--r-- | 16.9 KB |
check.h | -rw-r--r-- | 551 bytes |
efi.c | -rw-r--r-- | 19.4 KB |
efi.h | -rw-r--r-- | 4.3 KB |
ibm.c | -rw-r--r-- | 6.2 KB |
ibm.h | -rw-r--r-- | 70 bytes |
karma.c | -rw-r--r-- | 1.1 KB |
karma.h | -rw-r--r-- | 151 bytes |
ldm.c | -rw-r--r-- | 43.7 KB |
ldm.h | -rw-r--r-- | 5.5 KB |
mac.c | -rw-r--r-- | 3.2 KB |
mac.h | -rw-r--r-- | 1.3 KB |
msdos.c | -rw-r--r-- | 14.5 KB |
msdos.h | -rw-r--r-- | 151 bytes |
osf.c | -rw-r--r-- | 1.7 KB |
osf.h | -rw-r--r-- | 150 bytes |
sgi.c | -rw-r--r-- | 2.2 KB |
sgi.h | -rw-r--r-- | 155 bytes |
sun.c | -rw-r--r-- | 3.8 KB |
sun.h | -rw-r--r-- | 196 bytes |
sysv68.c | -rw-r--r-- | 1.8 KB |
sysv68.h | -rw-r--r-- | 89 bytes |
ultrix.c | -rw-r--r-- | 1.2 KB |
ultrix.h | -rw-r--r-- | 117 bytes |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...