git: hammer2 - Micro-optimize file data allocations

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Aug 29 19:09:00 PDT 2017


commit aff729969cea3810c2aae773a210c459ffd8d2db
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Aug 29 19:04:20 2017 -0700

    hammer2 - Micro-optimize file data allocations
    
    * Micro-optimize the preferential offset within the bitmap to allocate
      a data block from.  This corrects block offsets when buffer cache
      buffers are flushed out of order, within reason.
    
    * bpref still needs a ton of work.  The current allocator localizes based
      on type (inode, directory entry, data, indirect block, etc), but does
      not separate inodes spatially so things get jumbled fairly quickly.

Summary of changes:
 sys/vfs/hammer2/hammer2_disk.h    |  4 ++
 sys/vfs/hammer2/hammer2_freemap.c | 77 ++++++++++++++++++++++++++++++++++++---
 2 files changed, 75 insertions(+), 6 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list