]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
The page hold mechanism is fast but it has couple of fallouts:
authorAttilio Rao <attilio@FreeBSD.org>
Sun, 4 Aug 2013 21:07:24 +0000 (21:07 +0000)
committerAttilio Rao <attilio@FreeBSD.org>
Sun, 4 Aug 2013 21:07:24 +0000 (21:07 +0000)
commit3b6714cacb30c4ded64d5580426cf7acc9dfcd32
tree66d78aa520f99833b11e6eca180f8fa7216b21f8
parentb9fdaa9b19b3382d087c564ed1661f7581d7155e
The page hold mechanism is fast but it has couple of fallouts:
- It does not let pages respect the LRU policy
- It bloats the active/inactive queues of few pages

Try to avoid it as much as possible with the long-term target to
completely remove it.
Use the soft-busy mechanism to protect page content accesses during
short-term operations (like uiomove_fromphys()).

After this change only vm_fault_quick_hold_pages() is still using the
hold mechanism for page content access.
There is an additional complexity there as the quick path cannot
immediately access the page object to busy the page and the slow path
cannot however busy more than one page a time (to avoid deadlocks).

Fixing such primitive can bring to complete removal of the page hold
mechanism.

Sponsored by: EMC / Isilon storage division
Discussed with: alc
Reviewed by: jeff
Tested by: pho
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
sys/fs/tmpfs/tmpfs_vnops.c
sys/kern/imgact_elf.c
sys/kern/kern_exec.c
sys/kern/sys_process.c
sys/vm/vm_extern.h
sys/vm/vm_fault.c
sys/vm/vm_glue.c
sys/vm/vm_map.h