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-- | 1.5 KB |
Makefile | -rw-r--r-- | 323 bytes |
acl.c | -rw-r--r-- | 6.9 KB |
acl.h | -rw-r--r-- | 825 bytes |
aops.c | -rw-r--r-- | 29.8 KB |
bmap.c | -rw-r--r-- | 31.2 KB |
bmap.h | -rw-r--r-- | 1.7 KB |
dentry.c | -rw-r--r-- | 2.7 KB |
dir.c | -rw-r--r-- | 46.5 KB |
dir.h | -rw-r--r-- | 2.1 KB |
export.c | -rw-r--r-- | 5.8 KB |
file.c | -rw-r--r-- | 19.3 KB |
gfs2.h | -rw-r--r-- | 524 bytes |
glock.c | -rw-r--r-- | 46.1 KB |
glock.h | -rw-r--r-- | 7.3 KB |
glops.c | -rw-r--r-- | 11.3 KB |
glops.h | -rw-r--r-- | 1.0 KB |
incore.h | -rw-r--r-- | 16.2 KB |
inode.c | -rw-r--r-- | 24.4 KB |
inode.h | -rw-r--r-- | 4.2 KB |
lock_dlm.c | -rw-r--r-- | 5.4 KB |
log.c | -rw-r--r-- | 23.1 KB |
log.h | -rw-r--r-- | 2.0 KB |
lops.c | -rw-r--r-- | 18.9 KB |
lops.h | -rw-r--r-- | 2.9 KB |
main.c | -rw-r--r-- | 4.8 KB |
meta_io.c | -rw-r--r-- | 10.2 KB |
meta_io.h | -rw-r--r-- | 2.5 KB |
ops_fstype.c | -rw-r--r-- | 35.3 KB |
ops_inode.c | -rw-r--r-- | 30.4 KB |
quota.c | -rw-r--r-- | 36.6 KB |
quota.h | -rw-r--r-- | 1.8 KB |
recovery.c | -rw-r--r-- | 14.3 KB |
recovery.h | -rw-r--r-- | 1.1 KB |
rgrp.c | -rw-r--r-- | 45.5 KB |
rgrp.h | -rw-r--r-- | 2.5 KB |
super.c | -rw-r--r-- | 33.1 KB |
super.h | -rw-r--r-- | 2.0 KB |
sys.c | -rw-r--r-- | 14.6 KB |
sys.h | -rw-r--r-- | 600 bytes |
trace_gfs2.h | -rw-r--r-- | 10.6 KB |
trans.c | -rw-r--r-- | 4.2 KB |
trans.h | -rw-r--r-- | 1.1 KB |
util.c | -rw-r--r-- | 8.0 KB |
util.h | -rw-r--r-- | 5.0 KB |
xattr.c | -rw-r--r-- | 33.3 KB |
xattr.h | -rw-r--r-- | 2.1 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...