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

git: HAMMER VFS - Ensure sufficient free memory is available before large allocation


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 4 Mar 2010 16:09:27 -0800 (PST)

commit c652be54ae5f31f13eb03acfa533b9228843a7c0
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Thu Mar 4 16:06:53 2010 -0800

    HAMMER VFS - Ensure sufficient free memory is available before large allocation
    
    * The HAMMER rebalancing code can be a heavy user of kernel memory when
      collecting B-Tree nodes to rebalance.
    
      Call the new vm_wait_nominal() function before allocating said memory
      in an attempt to avoid VM/VFS deadlocks when memory is low.
    
    Reported-by: Francois Tigeot <ftigeot@wolfpond.org>

Summary of changes:
 sys/vfs/hammer/hammer.h           |    1 +
 sys/vfs/hammer/hammer_rebalance.c |    6 ++++++
 2 files changed, 7 insertions(+), 0 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c652be54ae5f31f13eb03acfa533b9228843a7c0


-- 
DragonFly BSD source repository



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