DragonFly BSD
DragonFly commits List (threaded) for 2013-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel - Make VM fault waits in low memory the same as other low memory waits


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 2 Mar 2013 17:17:04 -0800 (PST)

commit 3b47bfc4f83363f5a473ab71e6219ad84ebc6b77
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Sat Mar 2 17:11:19 2013 -0800

    kernel - Make VM fault waits in low memory the same as other low memory waits
    
    * Nominal memory allocations, particularly by tmpfs, allow allocations
      down to the 'min' before waiting for memory to recover to 'target'.
      The VM fault code required memory to be at or above the 'target'
      at all times.  This led to extreme starvation because other user-accessible
      subsystems could force free memory to remain below 'target'.
    
    * Change the VM code to use substantially the same down-to 'min' and
      recover-to 'target' parameters that other subsystems use.  This
      should reduce the excessive stalls under low memory conditions.
    
    * Rename vm_waitpfault() to vm_wait_pfault() to conform with other
      naming schemes in the same API.

Summary of changes:
 sys/vm/vm_fault.c   |  4 ++--
 sys/vm/vm_page.c    | 18 ++++++++++--------
 sys/vm/vm_pageout.h |  2 +-
 3 files changed, 13 insertions(+), 11 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3b47bfc4f83363f5a473ab71e6219ad84ebc6b77


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]