git: hammer - Collect record statistics, implement ^T and ^C

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Aug 3 18:49:09 PDT 2011


commit e9c8ad3de06380d50c82602e718613d908c1ac59
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Aug 3 18:42:38 2011 -0700

    hammer - Collect record statistics, implement ^T and ^C
    
    * Add a check for ^C
    
    * Add a check for ^T and print statistics.
    
    * When doing the dedup for real run a pre-pass on the b-tree to count the
      number of data records present so the ^T feature can print out progress.
    
      This also has the side effect of doing locality-of-reference disk
      accesses to allow the b-tree data blocks to be cached by the kernel
      (or swapcache) before doing the real pass which will insert random data
      block reads when verifying duplicates.  Due to the efficiencies both passes
      should run faster than the original combined pass, or at least not take
      too much longer.

Summary of changes:
 sbin/hammer/cmd_dedup.c |   69 ++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 62 insertions(+), 7 deletions(-)

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


-- 
DragonFly BSD source repository





More information about the Commits mailing list