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

git: kernel - Fix buffer cache deadlock due to multiple buffer cache sizes


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 19 Mar 2012 21:18:41 -0700 (PDT)

commit eafcc44d1aa2909f37f755dafdddf285eae7a014
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Mon Mar 19 21:14:13 2012 -0700

    kernel - Fix buffer cache deadlock due to multiple buffer cache sizes
    
    * The buffer daemon was triggering off of dirtybufspace[hw], comparing
      it against bufspace.  However, bufspace is an aggregation of the
      total buffer kva reserved, not the dirty count based on b_bufsize.
    
    * Add dirtykvasize to track the dirty space in terms of the kva reservation
      and change the buffer daemons to use that instead.
    
    * systat and other displays still use the bufsize, which is a more
      accurate indicator for human consumption.

Summary of changes:
 sys/kern/kern_iosched.c |    4 ++--
 sys/kern/vfs_bio.c      |   38 +++++++++++++++++++++++---------------
 sys/sys/buf.h           |    4 ++--
 3 files changed, 27 insertions(+), 19 deletions(-)

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


-- 
DragonFly BSD source repository



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