cvs commit: src/sbin/hammer hammer_util.h ondisk.c src/sbin/newfs_hammer newfs_hammer.c

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Jun 1 14:00:03 PDT 2008


dillon      2008/06/01 13:59:29 PDT

DragonFly src repository

  Modified files:
    sbin/hammer          hammer_util.h ondisk.c 
    sbin/newfs_hammer    newfs_hammer.c 
  Log:
  HAMMER Utilities: Performance adjustments, bug fixes.
  
  * Newfs_hammer now pre-allocates the layer1 and layer2 blockmap blocks,
    and pre-sizes each blockmap to 4x the initial filesystem size instead
    of 100x the initial filesystem size.
  
    The blockmap can be dynamically resized at any time, given a little code.
    In addition, there is simply no need to give it a 100x initial dynamic
    range.  This only bloats the size of the layer-2 map unnecessarily.
  
  * Change alloc_blockmap() to use rootmap->next_offset for allocations
    instead of rootmap->alloc_offset and fix a bug where rootmap->phys_offset
    was improperly being incremented (it is a fixed field once set).
  
    The bug was in a code-path that could not by executed by current
    incarnations of newfs_hammer.
  
  Revision  Changes    Path
  1.16      +3 -1      src/sbin/hammer/hammer_util.h
  1.20      +91 -17    src/sbin/hammer/ondisk.c
  1.27      +26 -10    src/sbin/newfs_hammer/newfs_hammer.c


http://www.dragonflybsd.org/cvsweb/src/sbin/hammer/hammer_util.h.diff?r1=1.15&r2=1.16&f=u
http://www.dragonflybsd.org/cvsweb/src/sbin/hammer/ondisk.c.diff?r1=1.19&r2=1.20&f=u
http://www.dragonflybsd.org/cvsweb/src/sbin/newfs_hammer/newfs_hammer.c.diff?r1=1.26&r2=1.27&f=u





More information about the Commits mailing list