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

git: kernel - Fix degenerate cluster_write() cases


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 30 Apr 2012 15:49:54 -0700 (PDT)

commit b642a6c1f5bbb295e29522d99c65038f459288ac
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Mon Apr 30 15:44:53 2012 -0700

    kernel - Fix degenerate cluster_write() cases
    
    * cluster_write() should bdwrite() as a fallback, not bawrite().
    
      Note that cluster_awrite() always bawrite()'s or equivalent.  The
      DragonFly API split the functions out, so cluster_write() can now
      almost always bdwrite() for the non-clustered case.
    
    * Solves some serious performance and real-time disk space usage issues
      when HAMMER1 was updated to use the cluster calls.  The disk space
      would be recovered by the daily cleanup but the extra writes could
      end up being quite excessive, 25:1 unnecessary writes vs necessary
      writes.
    
    Reported-by: multiple, testing by tuxillo

Summary of changes:
 sys/kern/vfs_cluster.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

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


-- 
DragonFly BSD source repository



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