DragonFly commits List (threaded) for 2013-02
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: kernel - Implementat much deeper use of shared VM object locks
commit ce94514e6b38abad5c78107e3d1ac401117df5c4
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date: Sat Feb 23 11:22:00 2013 -0800
kernel - Implementat much deeper use of shared VM object locks
* Use a shared VM object lock on terminal (and likely highly shared)
OBJT_VNODE objects. For example, binaries in the system such as
/bin/sh or /usr/bin/make.
This greatly improves fork/exec and related VM faults on concurrently
executing binaries. Most commonly, parallel builds often exec
hundreds of thousands of sh's and make's.
+50% to +100% nominal improved performance under these conditions.
+200% to +300% improved poudriere performance during the depend
stage.
* Formalize the shared VM object lock with a new API function,
vm_object_lock_maybe_shared(), which determines whether a VM
object meets the requirements for obtaining a shared lock.
* Adjust the vm_fault*() APIs to track whether the VM object is
locked shared or exclusive on entry.
* Clarify that OBJ_ONEMAPPING is only applicable to OBJT_DEFAULT
and OBJT_SWAP objects.
* Heavy work on the exec path. Somewhat lighter work on the exit
path. Tons more work could be done.
Summary of changes:
sys/kern/imgact_aout.c | 5 +++--
sys/kern/imgact_elf.c | 28 ++++++++++++++++++-------
sys/kern/lwkt_token.c | 28 +++++++++++++++++++++++++
sys/vm/swap_pager.c | 2 +-
sys/vm/vm_fault.c | 57 +++++++++++++++++++++++++++++++++++++++++++++-----
sys/vm/vm_map.c | 24 +++++++++++++++++++--
sys/vm/vm_map.h | 1 +
sys/vm/vm_object.c | 42 +++++++++++++++++++++++++++++++------
sys/vm/vm_object.h | 10 ++++++++-
sys/vm/vm_page.c | 6 +++---
sys/vm/vnode_pager.c | 2 +-
11 files changed, 177 insertions(+), 28 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ce94514e6b38abad5c78107e3d1ac401117df5c4
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]