git: kernel - Move grow_stack code in fault path to improve fault performance

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Mar 1 16:14:02 PST 2010


commit 8d496bf981b2cacb9c21ccdb66a9991978c986ea
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Mar 1 16:09:41 2010 -0800

    kernel - Move grow_stack code in fault path to improve fault performance
    
    * grow_stack() calls were being performed unconditionally during a
      page fault.  Shift the code over to vm_fault() and only run it if
      the vm_map_lookup() call fails.
    
    * Also take this opportunity to remove trapwrite() (added by Matt).
    
    Submitted-by: Venkatesh Srinivas <me at endeavour.zapto.org>

Summary of changes:
 sys/emulation/linux/i386/linux_sysvec.c |    4 +-
 sys/platform/pc32/i386/trap.c           |   60 ------------------------------
 sys/platform/pc32/i386/vm_machdep.c     |   12 ------
 sys/platform/pc64/x86_64/trap.c         |   15 --------
 sys/platform/pc64/x86_64/vm_machdep.c   |   12 ------
 sys/platform/vkernel/i386/trap.c        |   61 -------------------------------
 sys/platform/vkernel/i386/vm_machdep.c  |   12 ------
 sys/vm/vm_extern.h                      |    1 -
 sys/vm/vm_fault.c                       |   19 ++++++++--
 9 files changed, 17 insertions(+), 179 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8d496bf981b2cacb9c21ccdb66a9991978c986ea


-- 
DragonFly BSD source repository





More information about the Commits mailing list